@box/pdfjs-dist 0.0.0-stage → 6.4.299-box.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/CODE_OF_CONDUCT.md +15 -0
- package/LICENSE +177 -0
- package/README.md +23 -2
- package/build/pdf.min.mjs +28 -0
- package/build/pdf.mjs +28336 -0
- package/build/pdf.mjs.map +1 -0
- package/build/pdf.sandbox.min.mjs +28 -0
- package/build/pdf.sandbox.mjs +211 -0
- package/build/pdf.sandbox.mjs.map +1 -0
- package/build/pdf.worker.min.mjs +28 -0
- package/build/pdf.worker.mjs +64908 -0
- package/build/pdf.worker.mjs.map +1 -0
- package/cmaps/78-EUC-H.bcmap +0 -0
- package/cmaps/78-EUC-V.bcmap +0 -0
- package/cmaps/78-H.bcmap +0 -0
- package/cmaps/78-RKSJ-H.bcmap +0 -0
- package/cmaps/78-RKSJ-V.bcmap +0 -0
- package/cmaps/78-V.bcmap +0 -0
- package/cmaps/78ms-RKSJ-H.bcmap +0 -0
- package/cmaps/78ms-RKSJ-V.bcmap +0 -0
- package/cmaps/83pv-RKSJ-H.bcmap +0 -0
- package/cmaps/90ms-RKSJ-H.bcmap +0 -0
- package/cmaps/90ms-RKSJ-V.bcmap +0 -0
- package/cmaps/90msp-RKSJ-H.bcmap +0 -0
- package/cmaps/90msp-RKSJ-V.bcmap +0 -0
- package/cmaps/90pv-RKSJ-H.bcmap +0 -0
- package/cmaps/90pv-RKSJ-V.bcmap +0 -0
- package/cmaps/Add-H.bcmap +0 -0
- package/cmaps/Add-RKSJ-H.bcmap +0 -0
- package/cmaps/Add-RKSJ-V.bcmap +0 -0
- package/cmaps/Add-V.bcmap +0 -0
- package/cmaps/Adobe-CNS1-0.bcmap +0 -0
- package/cmaps/Adobe-CNS1-1.bcmap +0 -0
- package/cmaps/Adobe-CNS1-2.bcmap +0 -0
- package/cmaps/Adobe-CNS1-3.bcmap +0 -0
- package/cmaps/Adobe-CNS1-4.bcmap +0 -0
- package/cmaps/Adobe-CNS1-5.bcmap +0 -0
- package/cmaps/Adobe-CNS1-6.bcmap +0 -0
- package/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
- package/cmaps/Adobe-GB1-0.bcmap +0 -0
- package/cmaps/Adobe-GB1-1.bcmap +0 -0
- package/cmaps/Adobe-GB1-2.bcmap +0 -0
- package/cmaps/Adobe-GB1-3.bcmap +0 -0
- package/cmaps/Adobe-GB1-4.bcmap +0 -0
- package/cmaps/Adobe-GB1-5.bcmap +0 -0
- package/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
- package/cmaps/Adobe-Japan1-0.bcmap +0 -0
- package/cmaps/Adobe-Japan1-1.bcmap +0 -0
- package/cmaps/Adobe-Japan1-2.bcmap +0 -0
- package/cmaps/Adobe-Japan1-3.bcmap +0 -0
- package/cmaps/Adobe-Japan1-4.bcmap +0 -0
- package/cmaps/Adobe-Japan1-5.bcmap +0 -0
- package/cmaps/Adobe-Japan1-6.bcmap +0 -0
- package/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
- package/cmaps/Adobe-Korea1-0.bcmap +0 -0
- package/cmaps/Adobe-Korea1-1.bcmap +0 -0
- package/cmaps/Adobe-Korea1-2.bcmap +0 -0
- package/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
- package/cmaps/B5-H.bcmap +0 -0
- package/cmaps/B5-V.bcmap +0 -0
- package/cmaps/B5pc-H.bcmap +0 -0
- package/cmaps/B5pc-V.bcmap +0 -0
- package/cmaps/CNS-EUC-H.bcmap +0 -0
- package/cmaps/CNS-EUC-V.bcmap +0 -0
- package/cmaps/CNS1-H.bcmap +0 -0
- package/cmaps/CNS1-V.bcmap +0 -0
- package/cmaps/CNS2-H.bcmap +0 -0
- package/cmaps/CNS2-V.bcmap +3 -0
- package/cmaps/ETHK-B5-H.bcmap +0 -0
- package/cmaps/ETHK-B5-V.bcmap +0 -0
- package/cmaps/ETen-B5-H.bcmap +0 -0
- package/cmaps/ETen-B5-V.bcmap +0 -0
- package/cmaps/ETenms-B5-H.bcmap +3 -0
- package/cmaps/ETenms-B5-V.bcmap +0 -0
- package/cmaps/EUC-H.bcmap +0 -0
- package/cmaps/EUC-V.bcmap +0 -0
- package/cmaps/Ext-H.bcmap +0 -0
- package/cmaps/Ext-RKSJ-H.bcmap +0 -0
- package/cmaps/Ext-RKSJ-V.bcmap +0 -0
- package/cmaps/Ext-V.bcmap +0 -0
- package/cmaps/GB-EUC-H.bcmap +0 -0
- package/cmaps/GB-EUC-V.bcmap +0 -0
- package/cmaps/GB-H.bcmap +4 -0
- package/cmaps/GB-V.bcmap +0 -0
- package/cmaps/GBK-EUC-H.bcmap +0 -0
- package/cmaps/GBK-EUC-V.bcmap +0 -0
- package/cmaps/GBK2K-H.bcmap +0 -0
- package/cmaps/GBK2K-V.bcmap +0 -0
- package/cmaps/GBKp-EUC-H.bcmap +0 -0
- package/cmaps/GBKp-EUC-V.bcmap +0 -0
- package/cmaps/GBT-EUC-H.bcmap +0 -0
- package/cmaps/GBT-EUC-V.bcmap +0 -0
- package/cmaps/GBT-H.bcmap +0 -0
- package/cmaps/GBT-V.bcmap +0 -0
- package/cmaps/GBTpc-EUC-H.bcmap +0 -0
- package/cmaps/GBTpc-EUC-V.bcmap +0 -0
- package/cmaps/GBpc-EUC-H.bcmap +0 -0
- package/cmaps/GBpc-EUC-V.bcmap +0 -0
- package/cmaps/H.bcmap +0 -0
- package/cmaps/HKdla-B5-H.bcmap +0 -0
- package/cmaps/HKdla-B5-V.bcmap +0 -0
- package/cmaps/HKdlb-B5-H.bcmap +0 -0
- package/cmaps/HKdlb-B5-V.bcmap +0 -0
- package/cmaps/HKgccs-B5-H.bcmap +0 -0
- package/cmaps/HKgccs-B5-V.bcmap +0 -0
- package/cmaps/HKm314-B5-H.bcmap +0 -0
- package/cmaps/HKm314-B5-V.bcmap +0 -0
- package/cmaps/HKm471-B5-H.bcmap +0 -0
- package/cmaps/HKm471-B5-V.bcmap +0 -0
- package/cmaps/HKscs-B5-H.bcmap +0 -0
- package/cmaps/HKscs-B5-V.bcmap +0 -0
- package/cmaps/Hankaku.bcmap +0 -0
- package/cmaps/Hiragana.bcmap +0 -0
- package/cmaps/KSC-EUC-H.bcmap +0 -0
- package/cmaps/KSC-EUC-V.bcmap +0 -0
- package/cmaps/KSC-H.bcmap +0 -0
- package/cmaps/KSC-Johab-H.bcmap +0 -0
- package/cmaps/KSC-Johab-V.bcmap +0 -0
- package/cmaps/KSC-V.bcmap +0 -0
- package/cmaps/KSCms-UHC-H.bcmap +0 -0
- package/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
- package/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
- package/cmaps/KSCms-UHC-V.bcmap +0 -0
- package/cmaps/KSCpc-EUC-H.bcmap +0 -0
- package/cmaps/KSCpc-EUC-V.bcmap +0 -0
- package/cmaps/Katakana.bcmap +0 -0
- package/cmaps/LICENSE +36 -0
- package/cmaps/NWP-H.bcmap +0 -0
- package/cmaps/NWP-V.bcmap +0 -0
- package/cmaps/RKSJ-H.bcmap +0 -0
- package/cmaps/RKSJ-V.bcmap +0 -0
- package/cmaps/Roman.bcmap +0 -0
- package/cmaps/UniCNS-UCS2-H.bcmap +0 -0
- package/cmaps/UniCNS-UCS2-V.bcmap +0 -0
- package/cmaps/UniCNS-UTF16-H.bcmap +0 -0
- package/cmaps/UniCNS-UTF16-V.bcmap +0 -0
- package/cmaps/UniCNS-UTF32-H.bcmap +0 -0
- package/cmaps/UniCNS-UTF32-V.bcmap +0 -0
- package/cmaps/UniCNS-UTF8-H.bcmap +0 -0
- package/cmaps/UniCNS-UTF8-V.bcmap +0 -0
- package/cmaps/UniGB-UCS2-H.bcmap +0 -0
- package/cmaps/UniGB-UCS2-V.bcmap +0 -0
- package/cmaps/UniGB-UTF16-H.bcmap +0 -0
- package/cmaps/UniGB-UTF16-V.bcmap +0 -0
- package/cmaps/UniGB-UTF32-H.bcmap +0 -0
- package/cmaps/UniGB-UTF32-V.bcmap +0 -0
- package/cmaps/UniGB-UTF8-H.bcmap +0 -0
- package/cmaps/UniGB-UTF8-V.bcmap +0 -0
- package/cmaps/UniJIS-UCS2-H.bcmap +0 -0
- package/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
- package/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
- package/cmaps/UniJIS-UCS2-V.bcmap +0 -0
- package/cmaps/UniJIS-UTF16-H.bcmap +0 -0
- package/cmaps/UniJIS-UTF16-V.bcmap +0 -0
- package/cmaps/UniJIS-UTF32-H.bcmap +0 -0
- package/cmaps/UniJIS-UTF32-V.bcmap +0 -0
- package/cmaps/UniJIS-UTF8-H.bcmap +0 -0
- package/cmaps/UniJIS-UTF8-V.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
- package/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
- package/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
- package/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
- package/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
- package/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
- package/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
- package/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
- package/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
- package/cmaps/UniKS-UCS2-H.bcmap +0 -0
- package/cmaps/UniKS-UCS2-V.bcmap +0 -0
- package/cmaps/UniKS-UTF16-H.bcmap +0 -0
- package/cmaps/UniKS-UTF16-V.bcmap +0 -0
- package/cmaps/UniKS-UTF32-H.bcmap +0 -0
- package/cmaps/UniKS-UTF32-V.bcmap +0 -0
- package/cmaps/UniKS-UTF8-H.bcmap +0 -0
- package/cmaps/UniKS-UTF8-V.bcmap +0 -0
- package/cmaps/V.bcmap +0 -0
- package/cmaps/WP-Symbol.bcmap +0 -0
- package/iccs/CGATS001Compat-v2-micro.icc +0 -0
- package/iccs/LICENSE +116 -0
- package/image_decoders/pdf.image_decoders.min.mjs +28 -0
- package/image_decoders/pdf.image_decoders.mjs +5378 -0
- package/image_decoders/pdf.image_decoders.mjs.map +1 -0
- package/legacy/build/pdf.d.mts +1 -0
- package/legacy/build/pdf.min.mjs +27 -0
- package/legacy/build/pdf.mjs +34799 -0
- package/legacy/build/pdf.mjs.map +1 -0
- package/legacy/build/pdf.sandbox.min.mjs +27 -0
- package/legacy/build/pdf.sandbox.mjs +2502 -0
- package/legacy/build/pdf.sandbox.mjs.map +1 -0
- package/legacy/build/pdf.worker.min.mjs +27 -0
- package/legacy/build/pdf.worker.mjs +71124 -0
- package/legacy/build/pdf.worker.mjs.map +1 -0
- package/legacy/image_decoders/pdf.image_decoders.min.mjs +27 -0
- package/legacy/image_decoders/pdf.image_decoders.mjs +9845 -0
- package/legacy/image_decoders/pdf.image_decoders.mjs.map +1 -0
- package/legacy/web/images/altText_add.svg +3 -0
- package/legacy/web/images/altText_disclaimer.svg +3 -0
- package/legacy/web/images/altText_done.svg +3 -0
- package/legacy/web/images/altText_spinner.svg +30 -0
- package/legacy/web/images/altText_warning.svg +3 -0
- package/legacy/web/images/annotation-check.svg +11 -0
- package/legacy/web/images/annotation-comment.svg +16 -0
- package/legacy/web/images/annotation-help.svg +26 -0
- package/legacy/web/images/annotation-insert.svg +10 -0
- package/legacy/web/images/annotation-key.svg +11 -0
- package/legacy/web/images/annotation-newparagraph.svg +11 -0
- package/legacy/web/images/annotation-noicon.svg +7 -0
- package/legacy/web/images/annotation-note.svg +42 -0
- package/legacy/web/images/annotation-paperclip.svg +6 -0
- package/legacy/web/images/annotation-paragraph.svg +16 -0
- package/legacy/web/images/annotation-pushpin.svg +7 -0
- package/legacy/web/images/checkmark.svg +5 -0
- package/legacy/web/images/comment-actionsButton.svg +3 -0
- package/legacy/web/images/comment-closeButton.svg +3 -0
- package/legacy/web/images/comment-editButton.svg +8 -0
- package/legacy/web/images/comment-popup-editButton.svg +5 -0
- package/legacy/web/images/cursor-editorFreeHighlight.svg +6 -0
- package/legacy/web/images/cursor-editorFreeText.svg +3 -0
- package/legacy/web/images/cursor-editorInk.svg +4 -0
- package/legacy/web/images/cursor-editorTextHighlight.svg +8 -0
- package/legacy/web/images/editor-toolbar-delete.svg +5 -0
- package/legacy/web/images/editor-toolbar-edit.svg +3 -0
- package/legacy/web/images/findbarButton-next.svg +3 -0
- package/legacy/web/images/findbarButton-previous.svg +3 -0
- package/legacy/web/images/gv-toolbarButton-download.svg +3 -0
- package/legacy/web/images/loading-icon.gif +0 -0
- package/legacy/web/images/loading.svg +1 -0
- package/legacy/web/images/messageBar_closingButton.svg +3 -0
- package/legacy/web/images/messageBar_info.svg +3 -0
- package/legacy/web/images/messageBar_warning.svg +3 -0
- package/legacy/web/images/pages_closeButton.svg +3 -0
- package/legacy/web/images/pages_selected.svg +7 -0
- package/legacy/web/images/pages_viewArrow.svg +3 -0
- package/legacy/web/images/pages_viewButton.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-documentProperties.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-firstPage.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-handTool.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-lastPage.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-rotateCcw.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-rotateCw.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-scrollHorizontal.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-scrollPage.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-scrollVertical.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-scrollWrapped.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-selectTool.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-spreadEven.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-spreadNone.svg +3 -0
- package/legacy/web/images/secondaryToolbarButton-spreadOdd.svg +3 -0
- package/legacy/web/images/signature-properties-row-check.svg +4 -0
- package/legacy/web/images/toolbarButton-bookmark.svg +3 -0
- package/legacy/web/images/toolbarButton-currentOutlineItem.svg +3 -0
- package/legacy/web/images/toolbarButton-download.svg +4 -0
- package/legacy/web/images/toolbarButton-editorFreeText.svg +5 -0
- package/legacy/web/images/toolbarButton-editorHighlight.svg +6 -0
- package/legacy/web/images/toolbarButton-editorInk.svg +4 -0
- package/legacy/web/images/toolbarButton-editorSignature.svg +6 -0
- package/legacy/web/images/toolbarButton-editorStamp.svg +8 -0
- package/legacy/web/images/toolbarButton-menuArrow.svg +3 -0
- package/legacy/web/images/toolbarButton-menuArrowNova.svg +3 -0
- package/legacy/web/images/toolbarButton-openFile.svg +3 -0
- package/legacy/web/images/toolbarButton-pageDown.svg +3 -0
- package/legacy/web/images/toolbarButton-pageUp.svg +3 -0
- package/legacy/web/images/toolbarButton-presentationMode.svg +3 -0
- package/legacy/web/images/toolbarButton-print.svg +3 -0
- package/legacy/web/images/toolbarButton-search.svg +3 -0
- package/legacy/web/images/toolbarButton-secondaryToolbarToggle.svg +3 -0
- package/legacy/web/images/toolbarButton-signaturePropertiesError.svg +7 -0
- package/legacy/web/images/toolbarButton-signaturePropertiesVerified.svg +7 -0
- package/legacy/web/images/toolbarButton-viewAttachments.svg +3 -0
- package/legacy/web/images/toolbarButton-viewLayers.svg +3 -0
- package/legacy/web/images/toolbarButton-viewOutline.svg +3 -0
- package/legacy/web/images/toolbarButton-viewThumbnail.svg +3 -0
- package/legacy/web/images/toolbarButton-viewsManagerToggle.svg +3 -0
- package/legacy/web/images/toolbarButton-zoomIn.svg +3 -0
- package/legacy/web/images/toolbarButton-zoomOut.svg +3 -0
- package/legacy/web/images/treeitem-collapsed.svg +1 -0
- package/legacy/web/images/treeitem-expanded.svg +1 -0
- package/legacy/web/pdf_viewer.css +6463 -0
- package/legacy/web/pdf_viewer.d.mts +1 -0
- package/legacy/web/pdf_viewer.mjs +14798 -0
- package/legacy/web/pdf_viewer.mjs.map +1 -0
- package/legacy/webpack.mjs +26 -0
- package/package.json +33 -4
- package/standard_fonts/FoxitDingbats.pfb +0 -0
- package/standard_fonts/FoxitFixed.pfb +0 -0
- package/standard_fonts/FoxitFixedBold.pfb +0 -0
- package/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
- package/standard_fonts/FoxitFixedItalic.pfb +0 -0
- package/standard_fonts/FoxitSerif.pfb +0 -0
- package/standard_fonts/FoxitSerifBold.pfb +0 -0
- package/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
- package/standard_fonts/FoxitSerifItalic.pfb +0 -0
- package/standard_fonts/FoxitSymbol.pfb +0 -0
- package/standard_fonts/LICENSE_FOXIT +27 -0
- package/standard_fonts/LICENSE_LIBERATION +363 -0
- package/standard_fonts/LiberationSans-Bold.ttf +0 -0
- package/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
- package/standard_fonts/LiberationSans-Italic.ttf +0 -0
- package/standard_fonts/LiberationSans-Regular.ttf +0 -0
- package/types/external/brotli/decode.d.ts +5 -0
- package/types/external/jbig2/jbig2.d.ts +2 -0
- package/types/external/openjpeg/openjpeg.d.ts +2 -0
- package/types/external/qcms/qcms.d.ts +96 -0
- package/types/external/qcms/qcms_utils.d.ts +9 -0
- package/types/src/core/ascii_85_stream.d.ts +7 -0
- package/types/src/core/ascii_hex_stream.d.ts +7 -0
- package/types/src/core/base_stream.d.ts +52 -0
- package/types/src/core/brotli_stream.d.ts +9 -0
- package/types/src/core/calculate_md5.d.ts +1 -0
- package/types/src/core/calculate_sha256.d.ts +1 -0
- package/types/src/core/calculate_sha_other.d.ts +2 -0
- package/types/src/core/catalog.d.ts +169 -0
- package/types/src/core/ccitt_stream.d.ts +18 -0
- package/types/src/core/cleanup_helper.d.ts +1 -0
- package/types/src/core/colorspace.d.ts +168 -0
- package/types/src/core/colorspace_utils.d.ts +21 -0
- package/types/src/core/core_utils.d.ts +136 -0
- package/types/src/core/crypto.d.ts +135 -0
- package/types/src/core/decode_stream.d.ts +32 -0
- package/types/src/core/decrypt_stream.d.ts +9 -0
- package/types/src/core/file_spec.d.ts +67 -0
- package/types/src/core/flate_stream.d.ts +14 -0
- package/types/src/core/icc_colorspace.d.ts +21 -0
- package/types/src/core/image_resizer.d.ts +24 -0
- package/types/src/core/image_utils.d.ts +52 -0
- package/types/src/core/jbig2_ccittFax.d.ts +13 -0
- package/types/src/core/jbig2_stream.d.ts +17 -0
- package/types/src/core/jpeg_stream.d.ts +24 -0
- package/types/src/core/jpg.d.ts +58 -0
- package/types/src/core/jpx.d.ts +24 -0
- package/types/src/core/jpx_stream.d.ts +15 -0
- package/types/src/core/lzw_stream.d.ts +19 -0
- package/types/src/core/metadata_parser.d.ts +13 -0
- package/types/src/core/name_number_tree.d.ts +21 -0
- package/types/src/core/parser.d.ts +119 -0
- package/types/src/core/pattern.d.ts +61 -0
- package/types/src/core/predictor_stream.d.ts +14 -0
- package/types/src/core/primitives.d.ts +95 -0
- package/types/src/core/run_length_stream.d.ts +6 -0
- package/types/src/core/sasl_prep.d.ts +1 -0
- package/types/src/core/sound.d.ts +39 -0
- package/types/src/core/stream.d.ts +20 -0
- package/types/src/core/string_utils.d.ts +5 -0
- package/types/src/core/struct_tree.d.ts +93 -0
- package/types/src/core/unicode.d.ts +5 -0
- package/types/src/core/wasm_image.d.ts +21 -0
- package/types/src/core/xml_parser.d.ts +78 -0
- package/types/src/core/xref.d.ts +39 -0
- package/types/src/display/annotation_layer.d.ts +265 -0
- package/types/src/display/annotation_storage.d.ts +94 -0
- package/types/src/display/api.d.ts +1693 -0
- package/types/src/display/api_utils.d.ts +13 -0
- package/types/src/display/binary_data_factory.d.ts +22 -0
- package/types/src/display/canvas.d.ts +257 -0
- package/types/src/display/canvas_dependency_tracker.d.ts +221 -0
- package/types/src/display/canvas_factory.d.ts +29 -0
- package/types/src/display/content_disposition.d.ts +6 -0
- package/types/src/display/display_utils.d.ts +172 -0
- package/types/src/display/draw_layer.d.ts +143 -0
- package/types/src/display/editor/alt_text.d.ts +34 -0
- package/types/src/display/editor/annotation_editor_layer.d.ts +226 -0
- package/types/src/display/editor/color_picker.d.ts +40 -0
- package/types/src/display/editor/comment.d.ts +59 -0
- package/types/src/display/editor/draw.d.ts +175 -0
- package/types/src/display/editor/drawers/contour.d.ts +3 -0
- package/types/src/display/editor/drawers/freedraw.d.ts +34 -0
- package/types/src/display/editor/drawers/highlight.d.ts +120 -0
- package/types/src/display/editor/drawers/inkdraw.d.ts +134 -0
- package/types/src/display/editor/drawers/outline.d.ts +81 -0
- package/types/src/display/editor/drawers/signaturedraw.d.ts +79 -0
- package/types/src/display/editor/editor.d.ts +581 -0
- package/types/src/display/editor/freetext.d.ts +63 -0
- package/types/src/display/editor/highlight.d.ts +85 -0
- package/types/src/display/editor/ink.d.ts +49 -0
- package/types/src/display/editor/signature.d.ts +77 -0
- package/types/src/display/editor/stamp.d.ts +49 -0
- package/types/src/display/editor/toolbar.d.ts +26 -0
- package/types/src/display/editor/tools.d.ts +503 -0
- package/types/src/display/fetch_stream.d.ts +7 -0
- package/types/src/display/filter_factory.d.ts +53 -0
- package/types/src/display/font_loader.d.ts +52 -0
- package/types/src/display/metadata.d.ts +10 -0
- package/types/src/display/network.d.ts +20 -0
- package/types/src/display/network_stream.d.ts +2 -0
- package/types/src/display/network_utils.d.ts +16 -0
- package/types/src/display/node_stream.d.ts +4 -0
- package/types/src/display/node_utils.d.ts +18 -0
- package/types/src/display/obj_bin_transform_display.d.ts +50 -0
- package/types/src/display/optional_content_config.d.ts +28 -0
- package/types/src/display/page_viewport.d.ts +137 -0
- package/types/src/display/pages_mapper.d.ts +78 -0
- package/types/src/display/pattern_helper.d.ts +88 -0
- package/types/src/display/pdf_objects.d.ts +38 -0
- package/types/src/display/svg_factory.d.ts +14 -0
- package/types/src/display/text_layer.d.ts +93 -0
- package/types/src/display/text_layer_images.d.ts +10 -0
- package/types/src/display/touch_manager.d.ts +55 -0
- package/types/src/display/transport_stream.d.ts +11 -0
- package/types/src/display/webgpu.d.ts +11 -0
- package/types/src/display/worker_options.d.ts +25 -0
- package/types/src/display/xfa_layer.d.ts +49 -0
- package/types/src/display/xfa_text.d.ts +18 -0
- package/types/src/pdf.d.ts +69 -0
- package/types/src/shared/base_pdf_stream.d.ts +120 -0
- package/types/src/shared/css_utils.d.ts +8 -0
- package/types/src/shared/image_utils.d.ts +28 -0
- package/types/src/shared/internal_evt.d.ts +7 -0
- package/types/src/shared/math_clamp.d.ts +1 -0
- package/types/src/shared/message_handler.d.ts +39 -0
- package/types/src/shared/murmurhash3.d.ts +7 -0
- package/types/src/shared/obj_bin_transform_utils.d.ts +27 -0
- package/types/src/shared/scripting_utils.d.ts +18 -0
- package/types/src/shared/util.d.ts +433 -0
- package/types/web/annotation_editor_layer_builder.d.ts +66 -0
- package/types/web/annotation_layer_builder.d.ts +107 -0
- package/types/web/app_options.d.ts +16 -0
- package/types/web/autolinker.d.ts +29 -0
- package/types/web/base_download_manager.d.ts +24 -0
- package/types/web/base_pdf_page_view.d.ts +29 -0
- package/types/web/comment_manager.d.ts +20 -0
- package/types/web/download_manager.d.ts +4 -0
- package/types/web/draw_layer_builder.d.ts +64 -0
- package/types/web/event_utils.d.ts +68 -0
- package/types/web/generic_scripting.d.ts +8 -0
- package/types/web/genericl10n.d.ts +18 -0
- package/types/web/internal_evt.d.ts +7 -0
- package/types/web/l10n.d.ts +31 -0
- package/types/web/menu.d.ts +11 -0
- package/types/web/pdf_find_controller.d.ts +142 -0
- package/types/web/pdf_find_utils.d.ts +10 -0
- package/types/web/pdf_history.d.ts +116 -0
- package/types/web/pdf_link_service.d.ts +148 -0
- package/types/web/pdf_page_detail_view.d.ts +27 -0
- package/types/web/pdf_page_view.d.ts +256 -0
- package/types/web/pdf_rendering_queue.d.ts +49 -0
- package/types/web/pdf_scripting_manager.component.d.ts +5 -0
- package/types/web/pdf_scripting_manager.d.ts +57 -0
- package/types/web/pdf_single_page_viewer.d.ts +7 -0
- package/types/web/pdf_thumbnail_view.d.ts +108 -0
- package/types/web/pdf_thumbnail_viewer.d.ts +179 -0
- package/types/web/pdf_viewer.component.d.ts +23 -0
- package/types/web/pdf_viewer.d.ts +653 -0
- package/types/web/renderable_view.d.ts +33 -0
- package/types/web/sidebar.d.ts +65 -0
- package/types/web/struct_tree_layer_builder.d.ts +39 -0
- package/types/web/text_accessibility.d.ts +46 -0
- package/types/web/text_highlighter.d.ts +62 -0
- package/types/web/text_layer_builder.d.ts +70 -0
- package/types/web/ui_utils.d.ts +260 -0
- package/types/web/xfa_layer_builder.d.ts +50 -0
- package/wasm/LICENSE_JBIG2 +196 -0
- package/wasm/LICENSE_OPENJPEG +39 -0
- package/wasm/LICENSE_PDFJS_JBIG2 +13 -0
- package/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
- package/wasm/LICENSE_PDFJS_QCMS +19 -0
- package/wasm/LICENSE_QCMS +21 -0
- package/wasm/jbig2.wasm +0 -0
- package/wasm/jbig2_nowasm_fallback.js +15 -0
- package/wasm/openjpeg.wasm +0 -0
- package/wasm/openjpeg_nowasm_fallback.js +17 -0
- package/wasm/qcms_bg.wasm +0 -0
- package/wasm/quickjs-eval.js +16 -0
- package/wasm/quickjs-eval.wasm +0 -0
- package/web/images/altText_add.svg +3 -0
- package/web/images/altText_disclaimer.svg +3 -0
- package/web/images/altText_done.svg +3 -0
- package/web/images/altText_spinner.svg +30 -0
- package/web/images/altText_warning.svg +3 -0
- package/web/images/annotation-check.svg +11 -0
- package/web/images/annotation-comment.svg +16 -0
- package/web/images/annotation-help.svg +26 -0
- package/web/images/annotation-insert.svg +10 -0
- package/web/images/annotation-key.svg +11 -0
- package/web/images/annotation-newparagraph.svg +11 -0
- package/web/images/annotation-noicon.svg +7 -0
- package/web/images/annotation-note.svg +42 -0
- package/web/images/annotation-paperclip.svg +6 -0
- package/web/images/annotation-paragraph.svg +16 -0
- package/web/images/annotation-pushpin.svg +7 -0
- package/web/images/checkmark.svg +5 -0
- package/web/images/comment-actionsButton.svg +3 -0
- package/web/images/comment-closeButton.svg +3 -0
- package/web/images/comment-editButton.svg +8 -0
- package/web/images/comment-popup-editButton.svg +5 -0
- package/web/images/cursor-editorFreeHighlight.svg +6 -0
- package/web/images/cursor-editorFreeText.svg +3 -0
- package/web/images/cursor-editorInk.svg +4 -0
- package/web/images/cursor-editorTextHighlight.svg +8 -0
- package/web/images/editor-toolbar-delete.svg +5 -0
- package/web/images/editor-toolbar-edit.svg +3 -0
- package/web/images/findbarButton-next.svg +3 -0
- package/web/images/findbarButton-previous.svg +3 -0
- package/web/images/gv-toolbarButton-download.svg +3 -0
- package/web/images/loading-icon.gif +0 -0
- package/web/images/loading.svg +1 -0
- package/web/images/messageBar_closingButton.svg +3 -0
- package/web/images/messageBar_info.svg +3 -0
- package/web/images/messageBar_warning.svg +3 -0
- package/web/images/pages_closeButton.svg +3 -0
- package/web/images/pages_selected.svg +7 -0
- package/web/images/pages_viewArrow.svg +3 -0
- package/web/images/pages_viewButton.svg +3 -0
- package/web/images/secondaryToolbarButton-documentProperties.svg +3 -0
- package/web/images/secondaryToolbarButton-firstPage.svg +3 -0
- package/web/images/secondaryToolbarButton-handTool.svg +3 -0
- package/web/images/secondaryToolbarButton-lastPage.svg +3 -0
- package/web/images/secondaryToolbarButton-rotateCcw.svg +3 -0
- package/web/images/secondaryToolbarButton-rotateCw.svg +3 -0
- package/web/images/secondaryToolbarButton-scrollHorizontal.svg +3 -0
- package/web/images/secondaryToolbarButton-scrollPage.svg +3 -0
- package/web/images/secondaryToolbarButton-scrollVertical.svg +3 -0
- package/web/images/secondaryToolbarButton-scrollWrapped.svg +3 -0
- package/web/images/secondaryToolbarButton-selectTool.svg +3 -0
- package/web/images/secondaryToolbarButton-spreadEven.svg +3 -0
- package/web/images/secondaryToolbarButton-spreadNone.svg +3 -0
- package/web/images/secondaryToolbarButton-spreadOdd.svg +3 -0
- package/web/images/signature-properties-row-check.svg +4 -0
- package/web/images/toolbarButton-bookmark.svg +3 -0
- package/web/images/toolbarButton-currentOutlineItem.svg +3 -0
- package/web/images/toolbarButton-download.svg +4 -0
- package/web/images/toolbarButton-editorFreeText.svg +5 -0
- package/web/images/toolbarButton-editorHighlight.svg +6 -0
- package/web/images/toolbarButton-editorInk.svg +4 -0
- package/web/images/toolbarButton-editorSignature.svg +6 -0
- package/web/images/toolbarButton-editorStamp.svg +8 -0
- package/web/images/toolbarButton-menuArrow.svg +3 -0
- package/web/images/toolbarButton-menuArrowNova.svg +3 -0
- package/web/images/toolbarButton-openFile.svg +3 -0
- package/web/images/toolbarButton-pageDown.svg +3 -0
- package/web/images/toolbarButton-pageUp.svg +3 -0
- package/web/images/toolbarButton-presentationMode.svg +3 -0
- package/web/images/toolbarButton-print.svg +3 -0
- package/web/images/toolbarButton-search.svg +3 -0
- package/web/images/toolbarButton-secondaryToolbarToggle.svg +3 -0
- package/web/images/toolbarButton-signaturePropertiesError.svg +7 -0
- package/web/images/toolbarButton-signaturePropertiesVerified.svg +7 -0
- package/web/images/toolbarButton-viewAttachments.svg +3 -0
- package/web/images/toolbarButton-viewLayers.svg +3 -0
- package/web/images/toolbarButton-viewOutline.svg +3 -0
- package/web/images/toolbarButton-viewThumbnail.svg +3 -0
- package/web/images/toolbarButton-viewsManagerToggle.svg +3 -0
- package/web/images/toolbarButton-zoomIn.svg +3 -0
- package/web/images/toolbarButton-zoomOut.svg +3 -0
- package/web/images/treeitem-collapsed.svg +1 -0
- package/web/images/treeitem-expanded.svg +1 -0
- package/web/pdf_viewer.css +6463 -0
- package/web/pdf_viewer.d.mts +1 -0
- package/web/pdf_viewer.mjs +9811 -0
- package/web/pdf_viewer.mjs.map +1 -0
- package/webpack.mjs +26 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AnnotationLayerBuilder } from "./annotation_layer_builder.js";
|
|
2
|
+
import { DownloadManager } from "./download_manager.js";
|
|
3
|
+
import { EventBus } from "./event_utils.js";
|
|
4
|
+
import { FindState } from "./pdf_find_controller.js";
|
|
5
|
+
import { GenericL10n } from "./genericl10n.js";
|
|
6
|
+
import { LinkTarget } from "./pdf_link_service.js";
|
|
7
|
+
import { parseQueryString } from "./ui_utils.js";
|
|
8
|
+
import { PDFFindController } from "./pdf_find_controller.js";
|
|
9
|
+
import { PDFHistory } from "./pdf_history.js";
|
|
10
|
+
import { PDFLinkService } from "./pdf_link_service.js";
|
|
11
|
+
import { PDFPageView } from "./pdf_page_view.js";
|
|
12
|
+
import { PDFScriptingManager } from "./pdf_scripting_manager.component.js";
|
|
13
|
+
import { PDFSinglePageViewer } from "./pdf_single_page_viewer.js";
|
|
14
|
+
import { PDFViewer } from "./pdf_viewer.js";
|
|
15
|
+
import { ProgressBar } from "./ui_utils.js";
|
|
16
|
+
import { RenderingStates } from "./renderable_view.js";
|
|
17
|
+
import { ScrollMode } from "./ui_utils.js";
|
|
18
|
+
import { SimpleLinkService } from "./pdf_link_service.js";
|
|
19
|
+
import { SpreadMode } from "./ui_utils.js";
|
|
20
|
+
import { StructTreeLayerBuilder } from "./struct_tree_layer_builder.js";
|
|
21
|
+
import { TextLayerBuilder } from "./text_layer_builder.js";
|
|
22
|
+
import { XfaLayerBuilder } from "./xfa_layer_builder.js";
|
|
23
|
+
export { AnnotationLayerBuilder, DownloadManager, EventBus, FindState, GenericL10n, LinkTarget, parseQueryString, PDFFindController, PDFHistory, PDFLinkService, PDFPageView, PDFScriptingManager, PDFSinglePageViewer, PDFViewer, ProgressBar, RenderingStates, ScrollMode, SimpleLinkService, SpreadMode, StructTreeLayerBuilder, TextLayerBuilder, XfaLayerBuilder };
|
|
@@ -0,0 +1,653 @@
|
|
|
1
|
+
export type PDFDocumentProxy = import("../src/display/api").PDFDocumentProxy;
|
|
2
|
+
export type PDFPageProxy = import("../src/display/api").PDFPageProxy;
|
|
3
|
+
export type PageViewport = import("../src/display/page_viewport").PageViewport;
|
|
4
|
+
export type OptionalContentConfig = import("../src/display/optional_content_config").OptionalContentConfig;
|
|
5
|
+
export type EventBus = import("./event_utils").EventBus;
|
|
6
|
+
export type PDFFindController = import("./pdf_find_controller").PDFFindController;
|
|
7
|
+
export type PDFScriptingManager = import("./pdf_scripting_manager").PDFScriptingManager;
|
|
8
|
+
export type PDFLinkService = import("./pdf_link_service.js").PDFLinkService;
|
|
9
|
+
export type BaseDownloadManager = import("./base_download_manager.js").BaseDownloadManager;
|
|
10
|
+
export type L10n = import("./l10n.js").L10n;
|
|
11
|
+
export type PDFViewerOptions = {
|
|
12
|
+
/**
|
|
13
|
+
* - The container for the viewer element.
|
|
14
|
+
*/
|
|
15
|
+
container: HTMLDivElement;
|
|
16
|
+
/**
|
|
17
|
+
* - The viewer element.
|
|
18
|
+
*/
|
|
19
|
+
viewer?: HTMLDivElement | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* - The application event bus.
|
|
22
|
+
*/
|
|
23
|
+
eventBus: EventBus;
|
|
24
|
+
/**
|
|
25
|
+
* - The navigation/linking service.
|
|
26
|
+
*/
|
|
27
|
+
linkService?: import("./pdf_link_service.js").PDFLinkService | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* - The download manager
|
|
30
|
+
* component.
|
|
31
|
+
*/
|
|
32
|
+
downloadManager?: import("./base_download_manager.js").BaseDownloadManager | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* - The find controller
|
|
35
|
+
* component.
|
|
36
|
+
*/
|
|
37
|
+
findController?: import("./pdf_find_controller").PDFFindController | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* - The scripting manager
|
|
40
|
+
* component.
|
|
41
|
+
*/
|
|
42
|
+
scriptingManager?: import("./pdf_scripting_manager").PDFScriptingManager | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* - The rendering queue object.
|
|
45
|
+
*/
|
|
46
|
+
renderingQueue?: PDFRenderingQueue | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* - Removes the border shadow around
|
|
49
|
+
* the pages. The default value is `false`.
|
|
50
|
+
*/
|
|
51
|
+
removePageBorders?: boolean | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* - Controls if the text layer used for
|
|
54
|
+
* selection and searching is created. The constants from {TextLayerMode}
|
|
55
|
+
* should be used. The default value is `TextLayerMode.ENABLE`.
|
|
56
|
+
*/
|
|
57
|
+
textLayerMode?: number | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* - Controls if the annotation layer is
|
|
60
|
+
* created, and if interactive form elements or `AnnotationStorage`-data are
|
|
61
|
+
* being rendered. The constants from {@link AnnotationMode} should be used;
|
|
62
|
+
* see also {@link RenderParameters} and {@link GetOperatorListParameters}.
|
|
63
|
+
* The default value is `AnnotationMode.ENABLE_FORMS`.
|
|
64
|
+
*/
|
|
65
|
+
annotationMode?: number | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* - Enables the creation and editing
|
|
68
|
+
* of new Annotations. The constants from {@link AnnotationEditorType} should
|
|
69
|
+
* be used. The default value is `AnnotationEditorType.NONE`.
|
|
70
|
+
*/
|
|
71
|
+
annotationEditorMode?: number | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* - A comma separated list
|
|
74
|
+
* of colors to propose to highlight some text in the pdf.
|
|
75
|
+
*/
|
|
76
|
+
annotationEditorHighlightColors?: string | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* - Path for image resources, mainly
|
|
79
|
+
* mainly for annotation icons. Include trailing slash.
|
|
80
|
+
*/
|
|
81
|
+
imageResourcesPath?: string | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* - Enables automatic rotation of
|
|
84
|
+
* landscape pages upon printing. The default is `false`.
|
|
85
|
+
*/
|
|
86
|
+
enablePrintAutoRotate?: boolean | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* - The maximum supported canvas size in
|
|
89
|
+
* total pixels, i.e. width * height. Use `-1` for no limit, or `0` for
|
|
90
|
+
* CSS-only zooming. The default value is 4096 * 8192 (32 mega-pixels).
|
|
91
|
+
*/
|
|
92
|
+
maxCanvasPixels?: number | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* - The maximum supported canvas dimension,
|
|
95
|
+
* in either width or height. Use `-1` for no limit.
|
|
96
|
+
* The default value is 32767.
|
|
97
|
+
*/
|
|
98
|
+
maxCanvasDim?: number | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* - Cap the canvas area to the
|
|
101
|
+
* viewport increased by the value in percent. Use `-1` for no limit.
|
|
102
|
+
* The default value is 200%.
|
|
103
|
+
*/
|
|
104
|
+
capCanvasAreaFactor?: number | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* - When enabled, if the rendered
|
|
107
|
+
* pages would need a canvas that is larger than `maxCanvasPixels` or
|
|
108
|
+
* `maxCanvasDim`, it will draw a second canvas on top of the CSS-zoomed one,
|
|
109
|
+
* that only renders the part of the page that is close to the viewport.
|
|
110
|
+
* The default value is `true`.
|
|
111
|
+
*/
|
|
112
|
+
enableDetailCanvas?: boolean | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* - Enables rendering of text
|
|
115
|
+
* selections in the draw layer.
|
|
116
|
+
* The default value is `true`.
|
|
117
|
+
*/
|
|
118
|
+
enableSelectionRendering?: boolean | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* - All images whose width and
|
|
121
|
+
* height are at least this value (in pixels) will be lazily inserted in the
|
|
122
|
+
* dom to allow right-clicking and saving them. Use `-1` to disable this.
|
|
123
|
+
*/
|
|
124
|
+
imagesRightClickMinSize?: number | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* - When enabled, PDF
|
|
127
|
+
* rendering will keep track of which areas of the page each PDF operation
|
|
128
|
+
* affects. Then, when rendering a partial page (if `enableDetailCanvas` is
|
|
129
|
+
* enabled), it will only run through the operations that affect that portion.
|
|
130
|
+
*/
|
|
131
|
+
enableOptimizedPartialRendering?: boolean | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* - Localization service.
|
|
134
|
+
*/
|
|
135
|
+
l10n?: import("./l10n.js").L10n | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* - Enables PDF document permissions,
|
|
138
|
+
* when they exist. The default value is `false`.
|
|
139
|
+
*/
|
|
140
|
+
enablePermissions?: boolean | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* - Overwrites background and foreground colors
|
|
143
|
+
* with user defined ones in order to improve readability in high contrast
|
|
144
|
+
* mode.
|
|
145
|
+
*/
|
|
146
|
+
pageColors?: object | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* - Enable zooming on pinch gesture.
|
|
149
|
+
* The default value is `true`.
|
|
150
|
+
*/
|
|
151
|
+
supportsPinchToZoom?: boolean | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* - Enable creation of hyperlinks from
|
|
154
|
+
* text that look like URLs. The default value is `true`.
|
|
155
|
+
*/
|
|
156
|
+
enableAutoLinking?: boolean | undefined;
|
|
157
|
+
/**
|
|
158
|
+
* - Minimum duration to wait
|
|
159
|
+
* before updating the canvas. The default value is `500`.
|
|
160
|
+
*/
|
|
161
|
+
minDurationToUpdateCanvas?: number | undefined;
|
|
162
|
+
};
|
|
163
|
+
export namespace PagesCountLimit {
|
|
164
|
+
let FORCE_SCROLL_MODE_PAGE: number;
|
|
165
|
+
let FORCE_LAZY_PAGE_INIT: number;
|
|
166
|
+
let PAUSE_EAGER_PAGE_INIT: number;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* @typedef {object} PDFViewerOptions
|
|
170
|
+
* @property {HTMLDivElement} container - The container for the viewer element.
|
|
171
|
+
* @property {HTMLDivElement} [viewer] - The viewer element.
|
|
172
|
+
* @property {EventBus} eventBus - The application event bus.
|
|
173
|
+
* @property {PDFLinkService} [linkService] - The navigation/linking service.
|
|
174
|
+
* @property {BaseDownloadManager} [downloadManager] - The download manager
|
|
175
|
+
* component.
|
|
176
|
+
* @property {PDFFindController} [findController] - The find controller
|
|
177
|
+
* component.
|
|
178
|
+
* @property {PDFScriptingManager} [scriptingManager] - The scripting manager
|
|
179
|
+
* component.
|
|
180
|
+
* @property {PDFRenderingQueue} [renderingQueue] - The rendering queue object.
|
|
181
|
+
* @property {boolean} [removePageBorders] - Removes the border shadow around
|
|
182
|
+
* the pages. The default value is `false`.
|
|
183
|
+
* @property {number} [textLayerMode] - Controls if the text layer used for
|
|
184
|
+
* selection and searching is created. The constants from {TextLayerMode}
|
|
185
|
+
* should be used. The default value is `TextLayerMode.ENABLE`.
|
|
186
|
+
* @property {number} [annotationMode] - Controls if the annotation layer is
|
|
187
|
+
* created, and if interactive form elements or `AnnotationStorage`-data are
|
|
188
|
+
* being rendered. The constants from {@link AnnotationMode} should be used;
|
|
189
|
+
* see also {@link RenderParameters} and {@link GetOperatorListParameters}.
|
|
190
|
+
* The default value is `AnnotationMode.ENABLE_FORMS`.
|
|
191
|
+
* @property {number} [annotationEditorMode] - Enables the creation and editing
|
|
192
|
+
* of new Annotations. The constants from {@link AnnotationEditorType} should
|
|
193
|
+
* be used. The default value is `AnnotationEditorType.NONE`.
|
|
194
|
+
* @property {string} [annotationEditorHighlightColors] - A comma separated list
|
|
195
|
+
* of colors to propose to highlight some text in the pdf.
|
|
196
|
+
* @property {string} [imageResourcesPath] - Path for image resources, mainly
|
|
197
|
+
* mainly for annotation icons. Include trailing slash.
|
|
198
|
+
* @property {boolean} [enablePrintAutoRotate] - Enables automatic rotation of
|
|
199
|
+
* landscape pages upon printing. The default is `false`.
|
|
200
|
+
* @property {number} [maxCanvasPixels] - The maximum supported canvas size in
|
|
201
|
+
* total pixels, i.e. width * height. Use `-1` for no limit, or `0` for
|
|
202
|
+
* CSS-only zooming. The default value is 4096 * 8192 (32 mega-pixels).
|
|
203
|
+
* @property {number} [maxCanvasDim] - The maximum supported canvas dimension,
|
|
204
|
+
* in either width or height. Use `-1` for no limit.
|
|
205
|
+
* The default value is 32767.
|
|
206
|
+
* @property {number} [capCanvasAreaFactor] - Cap the canvas area to the
|
|
207
|
+
* viewport increased by the value in percent. Use `-1` for no limit.
|
|
208
|
+
* The default value is 200%.
|
|
209
|
+
* @property {boolean} [enableDetailCanvas] - When enabled, if the rendered
|
|
210
|
+
* pages would need a canvas that is larger than `maxCanvasPixels` or
|
|
211
|
+
* `maxCanvasDim`, it will draw a second canvas on top of the CSS-zoomed one,
|
|
212
|
+
* that only renders the part of the page that is close to the viewport.
|
|
213
|
+
* The default value is `true`.
|
|
214
|
+
* @property {boolean} [enableSelectionRendering] - Enables rendering of text
|
|
215
|
+
* selections in the draw layer.
|
|
216
|
+
* The default value is `true`.
|
|
217
|
+
* @property {number} [imagesRightClickMinSize] - All images whose width and
|
|
218
|
+
* height are at least this value (in pixels) will be lazily inserted in the
|
|
219
|
+
* dom to allow right-clicking and saving them. Use `-1` to disable this.
|
|
220
|
+
* @property {boolean} [enableOptimizedPartialRendering] - When enabled, PDF
|
|
221
|
+
* rendering will keep track of which areas of the page each PDF operation
|
|
222
|
+
* affects. Then, when rendering a partial page (if `enableDetailCanvas` is
|
|
223
|
+
* enabled), it will only run through the operations that affect that portion.
|
|
224
|
+
* @property {L10n} [l10n] - Localization service.
|
|
225
|
+
* @property {boolean} [enablePermissions] - Enables PDF document permissions,
|
|
226
|
+
* when they exist. The default value is `false`.
|
|
227
|
+
* @property {object} [pageColors] - Overwrites background and foreground colors
|
|
228
|
+
* with user defined ones in order to improve readability in high contrast
|
|
229
|
+
* mode.
|
|
230
|
+
* @property {boolean} [supportsPinchToZoom] - Enable zooming on pinch gesture.
|
|
231
|
+
* The default value is `true`.
|
|
232
|
+
* @property {boolean} [enableAutoLinking] - Enable creation of hyperlinks from
|
|
233
|
+
* text that look like URLs. The default value is `true`.
|
|
234
|
+
* @property {number} [minDurationToUpdateCanvas] - Minimum duration to wait
|
|
235
|
+
* before updating the canvas. The default value is `500`.
|
|
236
|
+
*/
|
|
237
|
+
export class PDFPageViewBuffer {
|
|
238
|
+
constructor(size: any);
|
|
239
|
+
push(view: any): void;
|
|
240
|
+
/**
|
|
241
|
+
* After calling resize, the size of the buffer will be `newSize`.
|
|
242
|
+
* The optional parameter `idsToKeep` is, if present, a Set of page-ids to
|
|
243
|
+
* push to the back of the buffer, delaying their destruction. The size of
|
|
244
|
+
* `idsToKeep` has no impact on the final size of the buffer; if `idsToKeep`
|
|
245
|
+
* is larger than `newSize`, some of those pages will be destroyed anyway.
|
|
246
|
+
*/
|
|
247
|
+
resize(newSize: any, idsToKeep?: null): void;
|
|
248
|
+
has(view: any): boolean;
|
|
249
|
+
[Symbol.iterator](): SetIterator<any>;
|
|
250
|
+
#private;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Simple viewer control to display PDF content/pages.
|
|
254
|
+
*/
|
|
255
|
+
export class PDFViewer {
|
|
256
|
+
/**
|
|
257
|
+
* @param {PDFViewerOptions} options
|
|
258
|
+
*/
|
|
259
|
+
constructor(options: PDFViewerOptions);
|
|
260
|
+
container: HTMLDivElement;
|
|
261
|
+
viewer: Element | null;
|
|
262
|
+
eventBus: import("./event_utils").EventBus;
|
|
263
|
+
linkService: import("./pdf_link_service.js").PDFLinkService;
|
|
264
|
+
downloadManager: import("./base_download_manager.js").BaseDownloadManager | null;
|
|
265
|
+
findController: import("./pdf_find_controller").PDFFindController | null;
|
|
266
|
+
_scriptingManager: import("./pdf_scripting_manager").PDFScriptingManager | null;
|
|
267
|
+
imageResourcesPath: string;
|
|
268
|
+
enablePrintAutoRotate: boolean;
|
|
269
|
+
removePageBorders: boolean | undefined;
|
|
270
|
+
maxCanvasPixels: number | undefined;
|
|
271
|
+
maxCanvasDim: number | undefined;
|
|
272
|
+
capCanvasAreaFactor: number | undefined;
|
|
273
|
+
enableDetailCanvas: boolean;
|
|
274
|
+
enableOptimizedPartialRendering: boolean;
|
|
275
|
+
enableSelectionRendering: boolean;
|
|
276
|
+
imagesRightClickMinSize: number;
|
|
277
|
+
l10n: import("./l10n.js").L10n | undefined;
|
|
278
|
+
pageColors: object | null;
|
|
279
|
+
defaultRenderingQueue: boolean;
|
|
280
|
+
renderingQueue: PDFRenderingQueue | undefined;
|
|
281
|
+
scroll: {
|
|
282
|
+
right: boolean;
|
|
283
|
+
down: boolean;
|
|
284
|
+
lastX: any;
|
|
285
|
+
lastY: any;
|
|
286
|
+
};
|
|
287
|
+
presentationModeState: number;
|
|
288
|
+
get printingAllowed(): boolean;
|
|
289
|
+
get pagesCount(): number;
|
|
290
|
+
getPageView(index: any): any;
|
|
291
|
+
getCachedPageViews(): Set<any>;
|
|
292
|
+
/**
|
|
293
|
+
* @type {boolean} - True if all {PDFPageView} objects are initialized.
|
|
294
|
+
*/
|
|
295
|
+
get pageViewsReady(): boolean;
|
|
296
|
+
/**
|
|
297
|
+
* Clear text selections within the viewer.
|
|
298
|
+
*/
|
|
299
|
+
clearSelection(): void;
|
|
300
|
+
/**
|
|
301
|
+
* @type {boolean}
|
|
302
|
+
*/
|
|
303
|
+
get renderForms(): boolean;
|
|
304
|
+
/**
|
|
305
|
+
* @type {boolean}
|
|
306
|
+
*/
|
|
307
|
+
get enableScripting(): boolean;
|
|
308
|
+
/**
|
|
309
|
+
* @param {number} val - The page number.
|
|
310
|
+
*/
|
|
311
|
+
set currentPageNumber(val: number);
|
|
312
|
+
/**
|
|
313
|
+
* @type {number}
|
|
314
|
+
*/
|
|
315
|
+
get currentPageNumber(): number;
|
|
316
|
+
/**
|
|
317
|
+
* @returns {boolean} Whether the pageNumber is valid (within bounds).
|
|
318
|
+
* @private
|
|
319
|
+
*/
|
|
320
|
+
private _setCurrentPageNumber;
|
|
321
|
+
_currentPageNumber: any;
|
|
322
|
+
/**
|
|
323
|
+
* @param {string} val - The page label.
|
|
324
|
+
*/
|
|
325
|
+
set currentPageLabel(val: string);
|
|
326
|
+
/**
|
|
327
|
+
* @type {string|null} Returns the current page label, or `null` if no page
|
|
328
|
+
* labels exist.
|
|
329
|
+
*/
|
|
330
|
+
get currentPageLabel(): string | null;
|
|
331
|
+
/**
|
|
332
|
+
* @param {number} val - Scale of the pages in percents.
|
|
333
|
+
*/
|
|
334
|
+
set currentScale(val: number);
|
|
335
|
+
/**
|
|
336
|
+
* @type {number}
|
|
337
|
+
*/
|
|
338
|
+
get currentScale(): number;
|
|
339
|
+
/**
|
|
340
|
+
* @param {string} val - The scale of the pages (in percent or predefined
|
|
341
|
+
* value).
|
|
342
|
+
*/
|
|
343
|
+
set currentScaleValue(val: string);
|
|
344
|
+
/**
|
|
345
|
+
* @type {string}
|
|
346
|
+
*/
|
|
347
|
+
get currentScaleValue(): string;
|
|
348
|
+
/**
|
|
349
|
+
* @param {number} rotation - The rotation of the pages (0, 90, 180, 270).
|
|
350
|
+
*/
|
|
351
|
+
set pagesRotation(rotation: number);
|
|
352
|
+
/**
|
|
353
|
+
* @type {number}
|
|
354
|
+
*/
|
|
355
|
+
get pagesRotation(): number;
|
|
356
|
+
_pagesRotation: any;
|
|
357
|
+
get firstPagePromise(): any;
|
|
358
|
+
get onePageRendered(): any;
|
|
359
|
+
get pagesPromise(): any;
|
|
360
|
+
get _layerProperties(): any;
|
|
361
|
+
getAllText(interruptSignal?: null): Promise<string | null>;
|
|
362
|
+
/**
|
|
363
|
+
* @param {PDFDocumentProxy|null} pdfDocument
|
|
364
|
+
*/
|
|
365
|
+
setDocument(pdfDocument: PDFDocumentProxy | null): void;
|
|
366
|
+
pdfDocument: import("../src/display/api").PDFDocumentProxy | null | undefined;
|
|
367
|
+
_scrollMode: any;
|
|
368
|
+
_optionalContentConfigPromise: Promise<import("../src/display/optional_content_config").OptionalContentConfig> | null | undefined;
|
|
369
|
+
onPagesEdited({ pagesMapper, type, hasBeenCut, pageNumbers }: {
|
|
370
|
+
pagesMapper: any;
|
|
371
|
+
type: any;
|
|
372
|
+
hasBeenCut: any;
|
|
373
|
+
pageNumbers: any;
|
|
374
|
+
}): void;
|
|
375
|
+
_pages: any[] | undefined;
|
|
376
|
+
/**
|
|
377
|
+
* @param {Array|null} labels
|
|
378
|
+
*/
|
|
379
|
+
setPageLabels(labels: any[] | null): void;
|
|
380
|
+
_pageLabels: any[] | null | undefined;
|
|
381
|
+
_resetView(): void;
|
|
382
|
+
_currentScale: any;
|
|
383
|
+
_currentScaleValue: any;
|
|
384
|
+
_location: {
|
|
385
|
+
pageNumber: any;
|
|
386
|
+
scale: any;
|
|
387
|
+
top: any;
|
|
388
|
+
left: any;
|
|
389
|
+
rotation: any;
|
|
390
|
+
pdfOpenParams: string;
|
|
391
|
+
} | null | undefined;
|
|
392
|
+
_firstPageCapability: any;
|
|
393
|
+
_onePageRenderedCapability: any;
|
|
394
|
+
_pagesCapability: any;
|
|
395
|
+
_previousScrollMode: any;
|
|
396
|
+
_spreadMode: any;
|
|
397
|
+
_scrollUpdate(): void;
|
|
398
|
+
/**
|
|
399
|
+
* Scroll the viewer by the given gesture deltas: like `GrabToPan` does, the
|
|
400
|
+
* content follows the gesture.
|
|
401
|
+
* @param {number} dx - Horizontal delta.
|
|
402
|
+
* @param {number} dy - Vertical delta.
|
|
403
|
+
*/
|
|
404
|
+
panBy(dx: number, dy: number): void;
|
|
405
|
+
/**
|
|
406
|
+
* @param {string} label - The page label.
|
|
407
|
+
* @returns {number|null} The page number corresponding to the page label,
|
|
408
|
+
* or `null` when no page labels exist and/or the input is invalid.
|
|
409
|
+
*/
|
|
410
|
+
pageLabelToPageNumber(label: string): number | null;
|
|
411
|
+
/**
|
|
412
|
+
* @typedef {object} ScrollPageIntoViewParameters
|
|
413
|
+
* @property {number} pageNumber - The page number.
|
|
414
|
+
* @property {Array} [destArray] - The original PDF destination array, in the
|
|
415
|
+
* format: <page-ref> </XYZ|/FitXXX> <args..>
|
|
416
|
+
* @property {boolean} [allowNegativeOffset] - Allow negative page offsets.
|
|
417
|
+
* The default value is `false`.
|
|
418
|
+
* @property {boolean} [ignoreDestinationZoom] - Ignore the zoom argument in
|
|
419
|
+
* the destination array. The default value is `false`.
|
|
420
|
+
* @property {string} [center] - Center the view on the specified coordinates.
|
|
421
|
+
* The default value is `null`. Possible values are: `null` (don't center),
|
|
422
|
+
* `horizontal`, `vertical` and `both`.
|
|
423
|
+
*/
|
|
424
|
+
/**
|
|
425
|
+
* Scrolls page into view.
|
|
426
|
+
* @param {ScrollPageIntoViewParameters} params
|
|
427
|
+
*/
|
|
428
|
+
scrollPageIntoView({ pageNumber, destArray, allowNegativeOffset, ignoreDestinationZoom, center, }: {
|
|
429
|
+
/**
|
|
430
|
+
* - The page number.
|
|
431
|
+
*/
|
|
432
|
+
pageNumber: number;
|
|
433
|
+
/**
|
|
434
|
+
* - The original PDF destination array, in the
|
|
435
|
+
* format: <page-ref> </XYZ|/FitXXX> <args..>
|
|
436
|
+
*/
|
|
437
|
+
destArray?: any[] | undefined;
|
|
438
|
+
/**
|
|
439
|
+
* - Allow negative page offsets.
|
|
440
|
+
* The default value is `false`.
|
|
441
|
+
*/
|
|
442
|
+
allowNegativeOffset?: boolean | undefined;
|
|
443
|
+
/**
|
|
444
|
+
* - Ignore the zoom argument in
|
|
445
|
+
* the destination array. The default value is `false`.
|
|
446
|
+
*/
|
|
447
|
+
ignoreDestinationZoom?: boolean | undefined;
|
|
448
|
+
/**
|
|
449
|
+
* - Center the view on the specified coordinates.
|
|
450
|
+
* The default value is `null`. Possible values are: `null` (don't center),
|
|
451
|
+
* `horizontal`, `vertical` and `both`.
|
|
452
|
+
*/
|
|
453
|
+
center?: string | undefined;
|
|
454
|
+
}): void;
|
|
455
|
+
_updateLocation(firstPage: any): void;
|
|
456
|
+
update(): void;
|
|
457
|
+
containsElement(element: any): boolean;
|
|
458
|
+
focus(): void;
|
|
459
|
+
get _isContainerRtl(): boolean;
|
|
460
|
+
get isInPresentationMode(): boolean;
|
|
461
|
+
get isChangingPresentationMode(): boolean;
|
|
462
|
+
get isHorizontalScrollbarEnabled(): boolean;
|
|
463
|
+
get isVerticalScrollbarEnabled(): boolean;
|
|
464
|
+
_getVisiblePages(): object;
|
|
465
|
+
cleanup(): void;
|
|
466
|
+
/**
|
|
467
|
+
* @private
|
|
468
|
+
*/
|
|
469
|
+
private _cancelRendering;
|
|
470
|
+
forceRendering(currentlyVisiblePages: any): boolean;
|
|
471
|
+
/**
|
|
472
|
+
* @type {boolean} Whether all pages of the PDF document have identical
|
|
473
|
+
* widths and heights.
|
|
474
|
+
*/
|
|
475
|
+
get hasEqualPageSizes(): boolean;
|
|
476
|
+
/**
|
|
477
|
+
* Returns sizes of the pages.
|
|
478
|
+
* @returns {Array} Array of objects with width/height/rotation fields.
|
|
479
|
+
*/
|
|
480
|
+
getPagesOverview(): any[];
|
|
481
|
+
/**
|
|
482
|
+
* @param {Promise<OptionalContentConfig>} promise - A promise that is
|
|
483
|
+
* resolved with an {@link OptionalContentConfig} instance.
|
|
484
|
+
*/
|
|
485
|
+
set optionalContentConfigPromise(promise: Promise<OptionalContentConfig>);
|
|
486
|
+
/**
|
|
487
|
+
* @type {Promise<OptionalContentConfig | null>}
|
|
488
|
+
*/
|
|
489
|
+
get optionalContentConfigPromise(): Promise<OptionalContentConfig | null>;
|
|
490
|
+
/**
|
|
491
|
+
* @param {number} mode - The direction in which the document pages should be
|
|
492
|
+
* laid out within the scrolling container.
|
|
493
|
+
* The constants from {ScrollMode} should be used.
|
|
494
|
+
*/
|
|
495
|
+
set scrollMode(mode: number);
|
|
496
|
+
/**
|
|
497
|
+
* @type {number} One of the values in {ScrollMode}.
|
|
498
|
+
*/
|
|
499
|
+
get scrollMode(): number;
|
|
500
|
+
_updateScrollMode(pageNumber?: null): void;
|
|
501
|
+
/**
|
|
502
|
+
* @param {number} mode - Group the pages in spreads, starting with odd- or
|
|
503
|
+
* even-number pages (unless `SpreadMode.NONE` is used).
|
|
504
|
+
* The constants from {SpreadMode} should be used.
|
|
505
|
+
*/
|
|
506
|
+
set spreadMode(mode: number);
|
|
507
|
+
/**
|
|
508
|
+
* @type {number} One of the values in {SpreadMode}.
|
|
509
|
+
*/
|
|
510
|
+
get spreadMode(): number;
|
|
511
|
+
_updateSpreadMode(pageNumber?: null): void;
|
|
512
|
+
/**
|
|
513
|
+
* Go to the next page, taking scroll/spread-modes into account.
|
|
514
|
+
* @returns {boolean} Whether navigation occurred.
|
|
515
|
+
*/
|
|
516
|
+
nextPage(): boolean;
|
|
517
|
+
/**
|
|
518
|
+
* Go to the previous page, taking scroll/spread-modes into account.
|
|
519
|
+
* @returns {boolean} Whether navigation occurred.
|
|
520
|
+
*/
|
|
521
|
+
previousPage(): boolean;
|
|
522
|
+
/**
|
|
523
|
+
* @typedef {object} ChangeScaleOptions
|
|
524
|
+
* @property {number} [drawingDelay]
|
|
525
|
+
* @property {number} [scaleFactor]
|
|
526
|
+
* @property {number} [steps]
|
|
527
|
+
* @property {Array} [origin] x and y coordinates of the scale
|
|
528
|
+
* transformation origin.
|
|
529
|
+
* @property {Array<number>} [pan] - Horizontal and vertical gesture deltas.
|
|
530
|
+
*/
|
|
531
|
+
/**
|
|
532
|
+
* Changes the current zoom level by the specified amount.
|
|
533
|
+
* @param {ChangeScaleOptions} [options]
|
|
534
|
+
*/
|
|
535
|
+
updateScale({ drawingDelay, scaleFactor, steps, origin, pan, }?: {
|
|
536
|
+
drawingDelay?: number | undefined;
|
|
537
|
+
scaleFactor?: number | undefined;
|
|
538
|
+
steps?: number | undefined;
|
|
539
|
+
/**
|
|
540
|
+
* x and y coordinates of the scale
|
|
541
|
+
* transformation origin.
|
|
542
|
+
*/
|
|
543
|
+
origin?: any[] | undefined;
|
|
544
|
+
/**
|
|
545
|
+
* - Horizontal and vertical gesture deltas.
|
|
546
|
+
*/
|
|
547
|
+
pan?: number[] | undefined;
|
|
548
|
+
}): void;
|
|
549
|
+
/**
|
|
550
|
+
* Increase the current zoom level one, or more, times.
|
|
551
|
+
* @param {ChangeScaleOptions} [options]
|
|
552
|
+
*/
|
|
553
|
+
increaseScale(options?: {
|
|
554
|
+
drawingDelay?: number | undefined;
|
|
555
|
+
scaleFactor?: number | undefined;
|
|
556
|
+
steps?: number | undefined;
|
|
557
|
+
/**
|
|
558
|
+
* x and y coordinates of the scale
|
|
559
|
+
* transformation origin.
|
|
560
|
+
*/
|
|
561
|
+
origin?: any[] | undefined;
|
|
562
|
+
/**
|
|
563
|
+
* - Horizontal and vertical gesture deltas.
|
|
564
|
+
*/
|
|
565
|
+
pan?: number[] | undefined;
|
|
566
|
+
}): void;
|
|
567
|
+
/**
|
|
568
|
+
* Decrease the current zoom level one, or more, times.
|
|
569
|
+
* @param {ChangeScaleOptions} [options]
|
|
570
|
+
*/
|
|
571
|
+
decreaseScale(options?: {
|
|
572
|
+
drawingDelay?: number | undefined;
|
|
573
|
+
scaleFactor?: number | undefined;
|
|
574
|
+
steps?: number | undefined;
|
|
575
|
+
/**
|
|
576
|
+
* x and y coordinates of the scale
|
|
577
|
+
* transformation origin.
|
|
578
|
+
*/
|
|
579
|
+
origin?: any[] | undefined;
|
|
580
|
+
/**
|
|
581
|
+
* - Horizontal and vertical gesture deltas.
|
|
582
|
+
*/
|
|
583
|
+
pan?: number[] | undefined;
|
|
584
|
+
}): void;
|
|
585
|
+
get containerTopLeft(): number[];
|
|
586
|
+
/**
|
|
587
|
+
* @typedef {object} AnnotationEditorModeOptions
|
|
588
|
+
* @property {number} mode - The editor mode (none, FreeText, ink, ...).
|
|
589
|
+
* @property {string|null} [editId] - ID of the existing annotation to edit.
|
|
590
|
+
* @property {boolean} [isFromKeyboard] - True if the mode change is due to a
|
|
591
|
+
* keyboard action.
|
|
592
|
+
* @property {boolean} [mustEnterInEditMode] - True if the editor must enter
|
|
593
|
+
* edit mode.
|
|
594
|
+
* @property {boolean} [editComment] - True if the editor must enter
|
|
595
|
+
* comment edit mode.
|
|
596
|
+
*/
|
|
597
|
+
/**
|
|
598
|
+
* @param {AnnotationEditorModeOptions} options
|
|
599
|
+
*/
|
|
600
|
+
set annotationEditorMode({ mode, editId, isFromKeyboard, mustEnterInEditMode, editComment, }: {
|
|
601
|
+
/**
|
|
602
|
+
* - The editor mode (none, FreeText, ink, ...).
|
|
603
|
+
*/
|
|
604
|
+
mode: number;
|
|
605
|
+
/**
|
|
606
|
+
* - ID of the existing annotation to edit.
|
|
607
|
+
*/
|
|
608
|
+
editId?: string | null | undefined;
|
|
609
|
+
/**
|
|
610
|
+
* - True if the mode change is due to a
|
|
611
|
+
* keyboard action.
|
|
612
|
+
*/
|
|
613
|
+
isFromKeyboard?: boolean | undefined;
|
|
614
|
+
/**
|
|
615
|
+
* - True if the editor must enter
|
|
616
|
+
* edit mode.
|
|
617
|
+
*/
|
|
618
|
+
mustEnterInEditMode?: boolean | undefined;
|
|
619
|
+
/**
|
|
620
|
+
* - True if the editor must enter
|
|
621
|
+
* comment edit mode.
|
|
622
|
+
*/
|
|
623
|
+
editComment?: boolean | undefined;
|
|
624
|
+
});
|
|
625
|
+
get annotationEditorMode(): {
|
|
626
|
+
/**
|
|
627
|
+
* - The editor mode (none, FreeText, ink, ...).
|
|
628
|
+
*/
|
|
629
|
+
mode: number;
|
|
630
|
+
/**
|
|
631
|
+
* - ID of the existing annotation to edit.
|
|
632
|
+
*/
|
|
633
|
+
editId?: string | null | undefined;
|
|
634
|
+
/**
|
|
635
|
+
* - True if the mode change is due to a
|
|
636
|
+
* keyboard action.
|
|
637
|
+
*/
|
|
638
|
+
isFromKeyboard?: boolean | undefined;
|
|
639
|
+
/**
|
|
640
|
+
* - True if the editor must enter
|
|
641
|
+
* edit mode.
|
|
642
|
+
*/
|
|
643
|
+
mustEnterInEditMode?: boolean | undefined;
|
|
644
|
+
/**
|
|
645
|
+
* - True if the editor must enter
|
|
646
|
+
* comment edit mode.
|
|
647
|
+
*/
|
|
648
|
+
editComment?: boolean | undefined;
|
|
649
|
+
};
|
|
650
|
+
refresh(noUpdate?: boolean, updateArgs?: any): void;
|
|
651
|
+
#private;
|
|
652
|
+
}
|
|
653
|
+
import { PDFRenderingQueue } from "./pdf_rendering_queue.js";
|