1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-29 15:47:57 +02:00
pdf.js/test/unit
Jonas Jenwald b05652ca97 [api-minor] Let getAnnotations fetch all annotations by default, unless an intent is specified
Currently `getAnnotations` will *only* fetch annotations that are either `viewable` or `printable`. This is "hidden" inside the `core.js` file, meaning that API consumers might be confused as to why they are not recieving *all* the annotations present for a page.

I thus think that the API should, by default, return *all* available annotations unless specifically told otherwise. In e.g. the default viewer, we obviously only want to display annotations that are `viewable`, hence this patch adds an `intent` parameter to `getAnnotations` that makes it possible to decide if only `viewable` or `printable` annotations should be fetched.
2015-11-22 15:51:37 +01:00
..
annotation_layer_spec.js Refactor annotation flags code 2015-11-22 01:06:37 +01:00
api_spec.js [api-minor] Let getAnnotations fetch all annotations by default, unless an intent is specified 2015-11-22 15:51:37 +01:00
cmap_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
crypto_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
evaluator_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
font_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
function_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
metadata_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
obj_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
parser_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
stream_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
testreporter.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
ui_utils_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30
unit_test.html Move text layer building logic into src/display/text_layer.js 2015-11-19 10:50:27 -06:00
util_spec.js Uses editorconfig to maintain consistent coding styles 2015-11-14 07:32:18 +05:30