1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 07:08:08 +02:00
pdf.js/src
Tim van der Meij 0991c06395 Refactor annotation flags code
This patch makes it possible to set and get all possible flags that the PDF specification defines. Even though we do not support all possible annotation types and not all possible annotation flags yet, this general framework makes it easy to access all flags for each annotation such that annotation type implementations can use this information.

We add constants for all possible annotation flags such that we do not need to hardcode the flags in the code anymore. The `isViewable()` and `isPrintable()` methods are now easier to read. Additionally, unit tests have been added to ensure correct behavior.

This is another part of #5218.
2015-11-22 01:06:37 +01:00
..
core Refactor annotation flags code 2015-11-22 01:06:37 +01:00
display Move text layer building logic into src/display/text_layer.js 2015-11-19 10:50:27 -06:00
images Vectorize the logo. 2012-10-29 14:08:52 -04:00
shared Refactor annotation flags code 2015-11-22 01:06:37 +01:00
doc_helper.js Creates make.js code to build jsdoc. 2014-04-13 15:54:24 -05:00
pdf.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
worker_loader.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30