311bac3ebb
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.) |
||
---|---|---|
.. | ||
annotation_layer.js | ||
api_compatibility.js | ||
api.js | ||
canvas.js | ||
content_disposition.js | ||
display_utils.js | ||
fetch_stream.js | ||
font_loader.js | ||
metadata.js | ||
network_utils.js | ||
network.js | ||
node_stream.js | ||
pattern_helper.js | ||
svg.js | ||
text_layer.js | ||
transport_stream.js | ||
webgl.js | ||
worker_options.js | ||
xml_parser.js |