pdf.js/src
Tim van der Meij 576f742047 Improve the structure for widget annotations
Currently, we only support text widget annotations (field type 'Tx')
partially. However, the current code does not make this entirely clear
and does not provide a warning when an unsupported field type is
encountered, making it harder to determine why rendering fails.

Moreover, in the display layer we make no distinction between the
various types of widget annotations, causing the code for text widget
annotations to also be executed for other types of widget annotations in
a fallback situation.

This patch improves the structure of the widget annotation code. In the
core layer, we use the same structure we use for non-widget annotations
in the factory and provide a clear warning when an unsupported type is
encountered. In the display layer, we do the same and split the
`WidgetAnnotationElement` class into two classes, namely
`TextWidgetAnnotationElement` for text widget annotations and
`WidgetAnnotationElement` for other unsupported annotations as a
fallback. From this it clear that we only support text widget
annotations and nothing else.
2016-09-06 00:26:05 +02:00
..
core Improve the structure for widget annotations 2016-09-06 00:26:05 +02:00
display Improve the structure for widget annotations 2016-09-06 00:26:05 +02:00
images Vectorize the logo. 2012-10-29 14:08:52 -04:00
shared Replace div.dataset with a WeakMap in text_layer.js 2016-09-03 20:06:42 +02:00
doc_helper.js Proxy global PDFJS.verbosity to properly configure shared/util. 2016-03-23 19:24:37 -05:00
frameworks.js Merge pull request #7189 from yurydelendik/webpack-browserify-love 2016-04-13 08:42:11 -05:00
main_loader.js Exposes all functional members via lib exports and use them in viewer. 2016-04-07 13:46:07 -05:00
pdf.js Exposes all functional members via lib exports and use them in viewer. 2016-04-07 13:46:07 -05:00
pdf.worker.entry.js Removing "entry-loader" dependency from webpack. 2016-04-13 08:24:25 -05:00
worker_loader.js Improve work-around for importScripts bug. 2016-02-03 23:30:27 +01:00