pdf.js/src/display
Jonas Jenwald 311bac3ebb [api-minor] Add support for ViewerPreferences in the API (issue 10736)
Please see the specification, https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/PDF32000_2008.pdf#M11.9.12864.1Heading.71.Viewer.Preferences

Furthermore, note that this patch *only* adds API support and unit-tests but does not attempt to integrate e.g. the `ViewerPreferences -> Direction` property into the viewer (which would be necessary to address issue 10736).
The reason for this is that it's not entirely clear to me exactly if/how that could be implemented; e.g. would it be as simple as setting the `dir` attribute on the `viewerContainer` DOM element, or will it be more complicated?
There's also the question of how the `ViewerPreferences -> Direction` value interacts with the `PageMode`, and this will generally require a fair bit of manual testing. Since the direction of the *entire* viewer depends on the browser locale, there's also a somewhat open question regarding what default value to use for different locales.
Finally, if the viewer supports `ViewerPreferences -> Direction` then I'm assuming that it will be necessary to allow users to override the default value, which will require (most likely) new `SecondaryToolbar` buttons and icons for those etc.

Hence this patch only lays the necessary foundation for eventually addressing issue 10736, but defers the actual implementation until later. (Time permitting, I'll try to look into the viewer part later.)
2019-04-14 14:20:52 +02:00
..
annotation_layer.js Implement free text annotations 2019-04-13 18:45:22 +02:00
api_compatibility.js removed safari compatibility check 2018-06-21 12:57:56 +03:00
api.js [api-minor] Add support for ViewerPreferences in the API (issue 10736) 2019-04-14 14:20:52 +02:00
canvas.js Implement setRenderingIntent and setFlatness for the SVG backend 2019-04-06 16:57:30 +02:00
content_disposition.js Add an Array.from polyfill, using core-js, and remove some compatibility hacks from the src/display/content_disposition.js file 2019-01-20 08:49:20 +01:00
display_utils.js Remove the src attribute from Image objects used with natively supported JPEG images, when pages are cleaned-up/destroyed 2019-03-15 15:25:48 +01:00
fetch_stream.js Avoid dispatching range requests to fetch PDF data that's already loaded with streaming (PR 10675 follow-up) 2019-04-13 00:26:13 +02:00
font_loader.js Fallback to the built-in font renderer when font loading fails 2019-02-11 10:27:08 +01:00
metadata.js When parsing Metadata, attempt to remove "junk" before the first tag (PR 10398 follow-up) 2019-01-16 12:44:27 +01:00
network_utils.js set returnValues.suggestedLength to Content-Length if integer 2018-10-07 13:26:29 -04:00
network.js Remove moz-chunked-arraybuffer support, and related code, from src/display/network.js 2019-04-01 20:48:51 +02:00
node_stream.js Avoid dispatching range requests to fetch PDF data that's already loaded with streaming (PR 10675 follow-up) 2019-04-13 00:26:13 +02:00
pattern_helper.js TilingPattern: Add comment to explain the implementation 2019-03-27 17:50:46 +01:00
svg.js Optimize convertOpList in svg.js by computing the operator ID mapping only once 2019-04-06 16:57:31 +02:00
text_layer.js Zero the width/height of the temporary canvas used during TextLayer rendering 2019-03-01 04:05:37 +01:00
transport_stream.js Merge pull request #10694 from Snuffleupagus/main-thread-progressiveDataLength 2019-04-13 17:15:01 +02:00
webgl.js Update the ESLint dependencies, and also tweak the no-multiple-empty-lines rules 2018-01-03 13:32:57 +01:00
worker_options.js Introduce a GlobalWorkerOptions object for (basic) Worker configuration 2018-02-16 13:22:35 +01:00
xml_parser.js Prevent errors, in SimpleXMLParser.onEndElement, when the stack has already been completely parsed (issue 10410) 2019-01-05 11:15:34 +01:00