@box/pdfjs-dist 0.0.0-stage → 6.4.299-box.1
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/CODE_OF_CONDUCT.md +15 -0
- package/LICENSE +177 -0
- package/README.md +13 -2
- package/build/pdf.min.mjs +28 -0
- package/build/pdf.mjs +28211 -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 +34672 -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 +32 -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 +129 -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,27 @@
|
|
|
1
|
+
export class PDFPageDetailView extends BasePDFPageView {
|
|
2
|
+
constructor({ pageView }: {
|
|
3
|
+
pageView: any;
|
|
4
|
+
});
|
|
5
|
+
/**
|
|
6
|
+
* @type {boolean} True when the last rendering attempt of the view was
|
|
7
|
+
* cancelled due to a `.reset()` call. This will happen when
|
|
8
|
+
* the visible area changes so much during the rendering that
|
|
9
|
+
* we need to cancel the rendering and start over.
|
|
10
|
+
*/
|
|
11
|
+
renderingCancelled: boolean;
|
|
12
|
+
pageView: any;
|
|
13
|
+
div: any;
|
|
14
|
+
setPdfPage(pdfPage: any): void;
|
|
15
|
+
get pdfPage(): any;
|
|
16
|
+
reset({ keepCanvas }?: {
|
|
17
|
+
keepCanvas?: boolean | undefined;
|
|
18
|
+
}): void;
|
|
19
|
+
update({ visibleArea, underlyingViewUpdated }?: {
|
|
20
|
+
visibleArea?: null | undefined;
|
|
21
|
+
underlyingViewUpdated?: boolean | undefined;
|
|
22
|
+
}): void;
|
|
23
|
+
_getRenderingContext(canvas: any, transform: any): any;
|
|
24
|
+
draw(): Promise<void>;
|
|
25
|
+
#private;
|
|
26
|
+
}
|
|
27
|
+
import { BasePDFPageView } from "./base_pdf_page_view.js";
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
export type PageViewport = import("../src/display/page_viewport").PageViewport;
|
|
2
|
+
export type OptionalContentConfig = import("../src/display/optional_content_config").OptionalContentConfig;
|
|
3
|
+
export type EventBus = import("./event_utils").EventBus;
|
|
4
|
+
export type PDFRenderingQueue = import("./pdf_rendering_queue").PDFRenderingQueue;
|
|
5
|
+
export type CommentManager = import("./comment_manager.js").CommentManager;
|
|
6
|
+
export type L10n = import("./l10n.js").L10n;
|
|
7
|
+
export type PDFPageViewOptions = {
|
|
8
|
+
/**
|
|
9
|
+
* - The viewer element.
|
|
10
|
+
*/
|
|
11
|
+
container?: HTMLDivElement | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* - The application event bus.
|
|
14
|
+
*/
|
|
15
|
+
eventBus: EventBus;
|
|
16
|
+
/**
|
|
17
|
+
* - The page unique ID (normally its number).
|
|
18
|
+
*/
|
|
19
|
+
id: number;
|
|
20
|
+
/**
|
|
21
|
+
* - The page scale display.
|
|
22
|
+
*/
|
|
23
|
+
scale?: number | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* - The page viewport.
|
|
26
|
+
*/
|
|
27
|
+
defaultViewport: PageViewport;
|
|
28
|
+
/**
|
|
29
|
+
* -
|
|
30
|
+
* A promise that is resolved with an {@link OptionalContentConfig} instance.
|
|
31
|
+
* The default value is `null`.
|
|
32
|
+
*/
|
|
33
|
+
optionalContentConfigPromise?: Promise<import("../src/display/optional_content_config").OptionalContentConfig> | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* - The rendering queue object.
|
|
36
|
+
*/
|
|
37
|
+
renderingQueue?: import("./pdf_rendering_queue").PDFRenderingQueue | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* - Controls if the text layer used for
|
|
40
|
+
* selection and searching is created. The constants from {TextLayerMode}
|
|
41
|
+
* should be used. The default value is `TextLayerMode.ENABLE`.
|
|
42
|
+
*/
|
|
43
|
+
textLayerMode?: number | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* - Controls if the annotation layer is
|
|
46
|
+
* created, and if interactive form elements or `AnnotationStorage`-data are
|
|
47
|
+
* being rendered. The constants from {@link AnnotationMode} should be used;
|
|
48
|
+
* see also {@link RenderParameters} and {@link GetOperatorListParameters}.
|
|
49
|
+
* The default value is `AnnotationMode.ENABLE_FORMS`.
|
|
50
|
+
*/
|
|
51
|
+
annotationMode?: number | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* - Path for image resources, mainly
|
|
54
|
+
* for annotation icons. Include trailing slash.
|
|
55
|
+
*/
|
|
56
|
+
imageResourcesPath?: string | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* - The maximum supported canvas size in
|
|
59
|
+
* total pixels, i.e. width * height. Use `-1` for no limit, or `0` for
|
|
60
|
+
* CSS-only zooming. The default value is 4096 * 8192 (32 mega-pixels).
|
|
61
|
+
*/
|
|
62
|
+
maxCanvasPixels?: number | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* - The maximum supported canvas dimension,
|
|
65
|
+
* in either width or height. Use `-1` for no limit.
|
|
66
|
+
* The default value is 32767.
|
|
67
|
+
*/
|
|
68
|
+
maxCanvasDim?: number | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* - Cap the canvas area to the
|
|
71
|
+
* viewport increased by the value in percent. Use `-1` for no limit.
|
|
72
|
+
* The default value is 200%.
|
|
73
|
+
*/
|
|
74
|
+
capCanvasAreaFactor?: number | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* - When enabled, if the rendered
|
|
77
|
+
* pages would need a canvas that is larger than `maxCanvasPixels` or
|
|
78
|
+
* `maxCanvasDim`, it will draw a second canvas on top of the CSS-zoomed one,
|
|
79
|
+
* that only renders the part of the page that is close to the viewport.
|
|
80
|
+
* The default value is `true`.
|
|
81
|
+
*/
|
|
82
|
+
enableDetailCanvas?: boolean | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* - All images whose width and
|
|
85
|
+
* height are at least this value (in pixels) will be lazily inserted in the
|
|
86
|
+
* dom to allow right-clicking and saving them. Use `-1` to disable this.
|
|
87
|
+
*/
|
|
88
|
+
imagesRightClickMinSize?: number | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* - When enabled, renders text
|
|
91
|
+
* selections in the draw layer.
|
|
92
|
+
* The default value is `true`.
|
|
93
|
+
*/
|
|
94
|
+
enableSelectionRendering?: boolean | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* - When enabled, PDF
|
|
97
|
+
* rendering will keep track of which areas of the page each PDF operation
|
|
98
|
+
* affects. Then, when rendering a partial page (if `enableDetailCanvas` is
|
|
99
|
+
* enabled), it will only run through the operations that affect that portion.
|
|
100
|
+
* The default value is `false`.
|
|
101
|
+
*/
|
|
102
|
+
enableOptimizedPartialRendering?: boolean | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* - Overwrites background and foreground colors
|
|
105
|
+
* with user defined ones in order to improve readability in high contrast
|
|
106
|
+
* mode.
|
|
107
|
+
*/
|
|
108
|
+
pageColors?: object | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* - Localization service.
|
|
111
|
+
*/
|
|
112
|
+
l10n?: import("./l10n.js").L10n | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* - The object that is used to lookup
|
|
115
|
+
* the necessary layer-properties.
|
|
116
|
+
*/
|
|
117
|
+
layerProperties?: object | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* - Enable creation of hyperlinks from
|
|
120
|
+
* text that look like URLs. The default value is `true`.
|
|
121
|
+
*/
|
|
122
|
+
enableAutoLinking?: boolean | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* - The comment manager instance.
|
|
125
|
+
* to.
|
|
126
|
+
*/
|
|
127
|
+
commentManager?: import("./comment_manager.js").CommentManager | undefined;
|
|
128
|
+
abortSignal?: AbortSignal | undefined;
|
|
129
|
+
};
|
|
130
|
+
export class PDFPageView extends BasePDFPageView {
|
|
131
|
+
/**
|
|
132
|
+
* @param {PDFPageViewOptions} options
|
|
133
|
+
*/
|
|
134
|
+
constructor(options: PDFPageViewOptions);
|
|
135
|
+
pdfPage: any;
|
|
136
|
+
pageLabel: string | null;
|
|
137
|
+
rotation: number;
|
|
138
|
+
scale: number;
|
|
139
|
+
viewport: import("../src/display/page_viewport").PageViewport;
|
|
140
|
+
pdfPageRotate: number;
|
|
141
|
+
_optionalContentConfigPromise: Promise<import("../src/display/optional_content_config").OptionalContentConfig> | null;
|
|
142
|
+
imageResourcesPath: string;
|
|
143
|
+
enableDetailCanvas: boolean;
|
|
144
|
+
maxCanvasPixels: any;
|
|
145
|
+
maxCanvasDim: any;
|
|
146
|
+
capCanvasAreaFactor: any;
|
|
147
|
+
l10n: import("./l10n.js").L10n | undefined;
|
|
148
|
+
_isStandalone: boolean | undefined;
|
|
149
|
+
_container: HTMLDivElement | undefined;
|
|
150
|
+
_annotationCanvasMap: any;
|
|
151
|
+
annotationLayer: AnnotationLayerBuilder | null;
|
|
152
|
+
annotationEditorLayer: any;
|
|
153
|
+
textLayer: TextLayerBuilder | null;
|
|
154
|
+
xfaLayer: XfaLayerBuilder | null;
|
|
155
|
+
structTreeLayer: any;
|
|
156
|
+
drawLayer: any;
|
|
157
|
+
detailView: any;
|
|
158
|
+
div: HTMLDivElement;
|
|
159
|
+
clone(id: any): PDFPageView;
|
|
160
|
+
updatePageNumber(newPageNumber: any): void;
|
|
161
|
+
setPdfPage(pdfPage: any): void;
|
|
162
|
+
destroy(): void;
|
|
163
|
+
deleteMe(isCut: any): void;
|
|
164
|
+
hasEditableAnnotations(): boolean;
|
|
165
|
+
get _textHighlighter(): any;
|
|
166
|
+
_refreshAnnotationLayer(): void;
|
|
167
|
+
reset({ keepAnnotationLayer, keepAnnotationEditorLayer, keepXfaLayer, keepTextLayer, keepCanvasWrapper, preserveDetailViewState, }?: {
|
|
168
|
+
keepAnnotationLayer?: boolean | undefined;
|
|
169
|
+
keepAnnotationEditorLayer?: boolean | undefined;
|
|
170
|
+
keepXfaLayer?: boolean | undefined;
|
|
171
|
+
keepTextLayer?: boolean | undefined;
|
|
172
|
+
keepCanvasWrapper?: boolean | undefined;
|
|
173
|
+
preserveDetailViewState?: boolean | undefined;
|
|
174
|
+
}): void;
|
|
175
|
+
toggleEditingMode(isEditing: any): void;
|
|
176
|
+
updateVisibleArea(visibleArea: any): void;
|
|
177
|
+
/**
|
|
178
|
+
* @typedef {object} PDFPageViewUpdateParameters
|
|
179
|
+
* @property {number} [scale] The new scale, if specified.
|
|
180
|
+
* @property {number} [rotation] The new rotation, if specified.
|
|
181
|
+
* @property {Promise<OptionalContentConfig>} [optionalContentConfigPromise]
|
|
182
|
+
* A promise that is resolved with an {@link OptionalContentConfig}
|
|
183
|
+
* instance. The default value is `null`.
|
|
184
|
+
* @property {number} [drawingDelay]
|
|
185
|
+
*/
|
|
186
|
+
/**
|
|
187
|
+
* Update e.g. the scale and/or rotation of the page.
|
|
188
|
+
* @param {PDFPageViewUpdateParameters} params
|
|
189
|
+
*/
|
|
190
|
+
update({ scale, rotation, optionalContentConfigPromise, drawingDelay, }: {
|
|
191
|
+
/**
|
|
192
|
+
* The new scale, if specified.
|
|
193
|
+
*/
|
|
194
|
+
scale?: number | undefined;
|
|
195
|
+
/**
|
|
196
|
+
* The new rotation, if specified.
|
|
197
|
+
*/
|
|
198
|
+
rotation?: number | undefined;
|
|
199
|
+
/**
|
|
200
|
+
* A promise that is resolved with an {@link OptionalContentConfig}instance. The default value is `null`.
|
|
201
|
+
*/
|
|
202
|
+
optionalContentConfigPromise?: Promise<import("../src/display/optional_content_config").OptionalContentConfig> | undefined;
|
|
203
|
+
drawingDelay?: number | undefined;
|
|
204
|
+
}): void;
|
|
205
|
+
outputScale: OutputScale | undefined;
|
|
206
|
+
/**
|
|
207
|
+
* PLEASE NOTE: Most likely you want to use the `this.reset()` method,
|
|
208
|
+
* rather than calling this one directly.
|
|
209
|
+
*/
|
|
210
|
+
cancelRendering({ keepAnnotationLayer, keepAnnotationEditorLayer, keepXfaLayer, keepTextLayer, cancelExtraDelay, }?: {
|
|
211
|
+
keepAnnotationLayer?: boolean | undefined;
|
|
212
|
+
keepAnnotationEditorLayer?: boolean | undefined;
|
|
213
|
+
keepXfaLayer?: boolean | undefined;
|
|
214
|
+
keepTextLayer?: boolean | undefined;
|
|
215
|
+
cancelExtraDelay?: number | undefined;
|
|
216
|
+
}): void;
|
|
217
|
+
cssTransform({ redrawAnnotationLayer, redrawAnnotationEditorLayer, redrawXfaLayer, redrawTextLayer, hideTextLayer, }: {
|
|
218
|
+
redrawAnnotationLayer?: boolean | undefined;
|
|
219
|
+
redrawAnnotationEditorLayer?: boolean | undefined;
|
|
220
|
+
redrawXfaLayer?: boolean | undefined;
|
|
221
|
+
redrawTextLayer?: boolean | undefined;
|
|
222
|
+
hideTextLayer?: boolean | undefined;
|
|
223
|
+
}): void;
|
|
224
|
+
get width(): number;
|
|
225
|
+
get height(): number;
|
|
226
|
+
getPagePoint(x: any, y: any): any[];
|
|
227
|
+
_ensureCanvasWrapper(): null;
|
|
228
|
+
_getRenderingContext(canvas: any, transform: any, recordOperations: any, recordImages: any): {
|
|
229
|
+
canvas: any;
|
|
230
|
+
transform: any;
|
|
231
|
+
viewport: import("../src/display/page_viewport").PageViewport;
|
|
232
|
+
annotationMode: number;
|
|
233
|
+
optionalContentConfigPromise: Promise<import("../src/display/optional_content_config").OptionalContentConfig> | null;
|
|
234
|
+
annotationCanvasMap: any;
|
|
235
|
+
pageColors: null;
|
|
236
|
+
isEditing: boolean;
|
|
237
|
+
recordOperations: any;
|
|
238
|
+
recordImages: any;
|
|
239
|
+
};
|
|
240
|
+
draw(): Promise<void>;
|
|
241
|
+
/**
|
|
242
|
+
* @param {string|null} label
|
|
243
|
+
*/
|
|
244
|
+
setPageLabel(label: string | null): void;
|
|
245
|
+
/**
|
|
246
|
+
* For use by the `PDFThumbnailView.setImage`-method.
|
|
247
|
+
* @ignore
|
|
248
|
+
*/
|
|
249
|
+
get thumbnailCanvas(): null;
|
|
250
|
+
#private;
|
|
251
|
+
}
|
|
252
|
+
import { BasePDFPageView } from "./base_pdf_page_view.js";
|
|
253
|
+
import { AnnotationLayerBuilder } from "./annotation_layer_builder.js";
|
|
254
|
+
import { TextLayerBuilder } from "./text_layer_builder.js";
|
|
255
|
+
import { XfaLayerBuilder } from "./xfa_layer_builder.js";
|
|
256
|
+
import { OutputScale } from "../src/pdf.js";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export type PDFViewer = import("./pdf_viewer").PDFViewer;
|
|
2
|
+
export type PDFThumbnailViewer = import("./pdf_thumbnail_viewer").PDFThumbnailViewer;
|
|
3
|
+
export type RenderableView = import("./renderable_view").RenderableView;
|
|
4
|
+
/**
|
|
5
|
+
* Controls rendering of the views for pages and thumbnails.
|
|
6
|
+
*/
|
|
7
|
+
export class PDFRenderingQueue {
|
|
8
|
+
isThumbnailViewEnabled: boolean;
|
|
9
|
+
onIdle: null;
|
|
10
|
+
printing: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @param {PDFViewer} pdfViewer
|
|
13
|
+
*/
|
|
14
|
+
setViewer(pdfViewer: PDFViewer): void;
|
|
15
|
+
/**
|
|
16
|
+
* @param {PDFThumbnailViewer} pdfThumbnailViewer
|
|
17
|
+
*/
|
|
18
|
+
setThumbnailViewer(pdfThumbnailViewer: PDFThumbnailViewer): void;
|
|
19
|
+
/**
|
|
20
|
+
* @param {RenderableView} view
|
|
21
|
+
* @returns {boolean}
|
|
22
|
+
*/
|
|
23
|
+
isHighestPriority(view: RenderableView): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @param {object} currentlyVisiblePages
|
|
26
|
+
*/
|
|
27
|
+
renderHighestPriority(currentlyVisiblePages: object): void;
|
|
28
|
+
/**
|
|
29
|
+
* @param {object} visible
|
|
30
|
+
* @param {Array} views
|
|
31
|
+
* @param {boolean} scrolledDown
|
|
32
|
+
* @param {boolean} [preRenderExtra]
|
|
33
|
+
* @param {boolean} [ignoreDetailViews]
|
|
34
|
+
*/
|
|
35
|
+
getHighestPriority(visible: object, views: any[], scrolledDown: boolean, preRenderExtra?: boolean, ignoreDetailViews?: boolean): any;
|
|
36
|
+
/**
|
|
37
|
+
* @param {RenderableView} view
|
|
38
|
+
* @returns {boolean}
|
|
39
|
+
*/
|
|
40
|
+
isViewFinished(view: RenderableView): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Render a page or thumbnail view. This calls the appropriate function
|
|
43
|
+
* based on the views state. If the view is already rendered it will return
|
|
44
|
+
* `false`.
|
|
45
|
+
* @param {RenderableView} view
|
|
46
|
+
*/
|
|
47
|
+
renderView(view: RenderableView): boolean;
|
|
48
|
+
#private;
|
|
49
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export type EventBus = import("./event_utils").EventBus;
|
|
2
|
+
export type PDFScriptingManagerOptions = {
|
|
3
|
+
/**
|
|
4
|
+
* - The application event bus.
|
|
5
|
+
*/
|
|
6
|
+
eventBus: EventBus;
|
|
7
|
+
/**
|
|
8
|
+
* - The path and filename of the
|
|
9
|
+
* scripting bundle.
|
|
10
|
+
*/
|
|
11
|
+
sandboxBundleSrc?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* - The factory that is used when
|
|
14
|
+
* initializing scripting; must contain a `createScripting` method.
|
|
15
|
+
* PLEASE NOTE: Primarily intended for the default viewer use-case.
|
|
16
|
+
*/
|
|
17
|
+
externalServices?: object | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* - The function that is used to lookup
|
|
20
|
+
* the necessary document properties.
|
|
21
|
+
*/
|
|
22
|
+
docProperties?: Function | undefined;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @typedef {object} PDFScriptingManagerOptions
|
|
26
|
+
* @property {EventBus} eventBus - The application event bus.
|
|
27
|
+
* @property {string} [sandboxBundleSrc] - The path and filename of the
|
|
28
|
+
* scripting bundle.
|
|
29
|
+
* @property {object} [externalServices] - The factory that is used when
|
|
30
|
+
* initializing scripting; must contain a `createScripting` method.
|
|
31
|
+
* PLEASE NOTE: Primarily intended for the default viewer use-case.
|
|
32
|
+
* @property {Function} [docProperties] - The function that is used to lookup
|
|
33
|
+
* the necessary document properties.
|
|
34
|
+
*/
|
|
35
|
+
export class PDFScriptingManager {
|
|
36
|
+
/**
|
|
37
|
+
* @param {PDFScriptingManagerOptions} options
|
|
38
|
+
*/
|
|
39
|
+
constructor({ eventBus, externalServices, docProperties }: PDFScriptingManagerOptions);
|
|
40
|
+
setViewer(pdfViewer: any): void;
|
|
41
|
+
setDocument(pdfDocument: any): Promise<void>;
|
|
42
|
+
dispatchWillSave(): Promise<any>;
|
|
43
|
+
dispatchDidSave(): Promise<any>;
|
|
44
|
+
dispatchWillPrint(): Promise<void>;
|
|
45
|
+
dispatchDidPrint(): Promise<any>;
|
|
46
|
+
get destroyPromise(): any;
|
|
47
|
+
get ready(): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* @private
|
|
50
|
+
*/
|
|
51
|
+
private get _pageOpenPending();
|
|
52
|
+
/**
|
|
53
|
+
* @private
|
|
54
|
+
*/
|
|
55
|
+
private get _visitedPages();
|
|
56
|
+
#private;
|
|
57
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export type PDFThumbnailViewOptions = {
|
|
2
|
+
/**
|
|
3
|
+
* - The viewer element.
|
|
4
|
+
*/
|
|
5
|
+
container: HTMLDivElement;
|
|
6
|
+
/**
|
|
7
|
+
* - The application event bus.
|
|
8
|
+
*/
|
|
9
|
+
eventBus: EventBus;
|
|
10
|
+
/**
|
|
11
|
+
* - The thumbnail's unique ID (normally its number).
|
|
12
|
+
*/
|
|
13
|
+
id: number;
|
|
14
|
+
/**
|
|
15
|
+
* - The page viewport.
|
|
16
|
+
*/
|
|
17
|
+
defaultViewport: PageViewport;
|
|
18
|
+
/**
|
|
19
|
+
* -
|
|
20
|
+
* A promise that is resolved with an {@link OptionalContentConfig} instance.
|
|
21
|
+
* The default value is `null`.
|
|
22
|
+
*/
|
|
23
|
+
optionalContentConfigPromise?: Promise<import("../src/display/optional_content_config").OptionalContentConfig> | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* - The navigation/linking service.
|
|
26
|
+
*/
|
|
27
|
+
linkService: PDFLinkService;
|
|
28
|
+
/**
|
|
29
|
+
* - The rendering queue object.
|
|
30
|
+
*/
|
|
31
|
+
renderingQueue: PDFRenderingQueue;
|
|
32
|
+
/**
|
|
33
|
+
* - The maximum supported canvas size in
|
|
34
|
+
* total pixels, i.e. width * height. Use `-1` for no limit, or `0` for
|
|
35
|
+
* CSS-only zooming. The default value is 4096 * 8192 (32 mega-pixels).
|
|
36
|
+
*/
|
|
37
|
+
maxCanvasPixels?: number | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* - The maximum supported canvas dimension,
|
|
40
|
+
* in either width or height. Use `-1` for no limit.
|
|
41
|
+
* The default value is 32767.
|
|
42
|
+
*/
|
|
43
|
+
maxCanvasDim?: number | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* - Overwrites background and foreground colors
|
|
46
|
+
* with user defined ones in order to improve readability in high contrast
|
|
47
|
+
* mode.
|
|
48
|
+
*/
|
|
49
|
+
pageColors?: object | undefined;
|
|
50
|
+
};
|
|
51
|
+
export type OptionalContentConfig = import("../src/display/optional_content_config").OptionalContentConfig;
|
|
52
|
+
export type PageViewport = import("../src/display/page_viewport").PageViewport;
|
|
53
|
+
export type EventBus = import("./event_utils").EventBus;
|
|
54
|
+
export type PDFRenderingQueue = import("./pdf_rendering_queue").PDFRenderingQueue;
|
|
55
|
+
export class PDFThumbnailView extends RenderableView {
|
|
56
|
+
/**
|
|
57
|
+
* @param {PDFThumbnailViewOptions} options
|
|
58
|
+
*/
|
|
59
|
+
constructor({ container, eventBus, id, defaultViewport, optionalContentConfigPromise, linkService, renderingQueue, maxCanvasPixels, maxCanvasDim, pageColors, enableSplitMerge, }: PDFThumbnailViewOptions);
|
|
60
|
+
id: number;
|
|
61
|
+
pageLabel: string | null;
|
|
62
|
+
pdfPage: any;
|
|
63
|
+
rotation: number;
|
|
64
|
+
viewport: import("../src/display/page_viewport").PageViewport;
|
|
65
|
+
pdfPageRotate: number;
|
|
66
|
+
_optionalContentConfigPromise: Promise<import("../src/display/optional_content_config").OptionalContentConfig> | null;
|
|
67
|
+
maxCanvasPixels: any;
|
|
68
|
+
maxCanvasDim: any;
|
|
69
|
+
pageColors: object | null;
|
|
70
|
+
eventBus: import("./event_utils").EventBus;
|
|
71
|
+
linkService: PDFLinkService;
|
|
72
|
+
renderingQueue: import("./pdf_rendering_queue").PDFRenderingQueue;
|
|
73
|
+
placeholder: any;
|
|
74
|
+
div: HTMLDivElement;
|
|
75
|
+
imageContainer: HTMLDivElement;
|
|
76
|
+
image: HTMLImageElement;
|
|
77
|
+
checkbox: HTMLInputElement | undefined;
|
|
78
|
+
pasteButton: HTMLButtonElement | null;
|
|
79
|
+
clone(container: any, id: any): PDFThumbnailView;
|
|
80
|
+
addPasteButton(pasteCallback: any): void;
|
|
81
|
+
prevPasteButton: Node | null | undefined;
|
|
82
|
+
removePasteButton(): void;
|
|
83
|
+
toggleSelected(isSelected: any): void;
|
|
84
|
+
updateId(newId: any): void;
|
|
85
|
+
canvasWidth: number | undefined;
|
|
86
|
+
canvasHeight: number | undefined;
|
|
87
|
+
scale: number | undefined;
|
|
88
|
+
setPdfPage(pdfPage: any): void;
|
|
89
|
+
reset(): void;
|
|
90
|
+
destroy(): void;
|
|
91
|
+
update({ rotation }: {
|
|
92
|
+
rotation?: null | undefined;
|
|
93
|
+
}): void;
|
|
94
|
+
toggleCurrent(isCurrent: any): void;
|
|
95
|
+
/**
|
|
96
|
+
* PLEASE NOTE: Most likely you want to use the `this.reset()` method,
|
|
97
|
+
* rather than calling this one directly.
|
|
98
|
+
*/
|
|
99
|
+
cancelRendering(): void;
|
|
100
|
+
draw(): Promise<void>;
|
|
101
|
+
setImage(pageView: any): void;
|
|
102
|
+
/**
|
|
103
|
+
* @param {string|null} label
|
|
104
|
+
*/
|
|
105
|
+
setPageLabel(label: string | null): void;
|
|
106
|
+
#private;
|
|
107
|
+
}
|
|
108
|
+
import { RenderableView } from "./renderable_view.js";
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
export type PDFDocumentProxy = import("../src/display/api").PDFDocumentProxy;
|
|
2
|
+
export type PDFPageProxy = import("../src/display/api").PDFPageProxy;
|
|
3
|
+
export type EventBus = import("./event_utils").EventBus;
|
|
4
|
+
export type PDFRenderingQueue = import("./pdf_rendering_queue").PDFRenderingQueue;
|
|
5
|
+
export type PDFLinkService = import("./pdf_link_service.js").PDFLinkService;
|
|
6
|
+
export type PDFThumbnailViewerOptions = {
|
|
7
|
+
/**
|
|
8
|
+
* - The container for the thumbnail
|
|
9
|
+
* elements.
|
|
10
|
+
*/
|
|
11
|
+
container: HTMLDivElement;
|
|
12
|
+
/**
|
|
13
|
+
* - The application event bus.
|
|
14
|
+
*/
|
|
15
|
+
eventBus: EventBus;
|
|
16
|
+
/**
|
|
17
|
+
* - The navigation/linking service.
|
|
18
|
+
*/
|
|
19
|
+
linkService: PDFLinkService;
|
|
20
|
+
/**
|
|
21
|
+
* - The rendering queue object.
|
|
22
|
+
*/
|
|
23
|
+
renderingQueue: PDFRenderingQueue;
|
|
24
|
+
/**
|
|
25
|
+
* - The maximum supported canvas size in
|
|
26
|
+
* total pixels, i.e. width * height. Use `-1` for no limit, or `0` for
|
|
27
|
+
* CSS-only zooming. The default value is 4096 * 8192 (32 mega-pixels).
|
|
28
|
+
*/
|
|
29
|
+
maxCanvasPixels?: number | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* - The maximum supported canvas dimension,
|
|
32
|
+
* in either width or height. Use `-1` for no limit.
|
|
33
|
+
* The default value is 32767.
|
|
34
|
+
*/
|
|
35
|
+
maxCanvasDim?: number | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* - Overwrites background and foreground colors
|
|
38
|
+
* with user defined ones in order to improve readability in high contrast
|
|
39
|
+
* mode.
|
|
40
|
+
*/
|
|
41
|
+
pageColors?: object | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* - The AbortSignal for the window
|
|
44
|
+
* events.
|
|
45
|
+
*/
|
|
46
|
+
abortSignal?: AbortSignal | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* - Enables the "new" badge for the split
|
|
49
|
+
* and merge features.
|
|
50
|
+
*/
|
|
51
|
+
enableNewBadge?: boolean | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* - Enables the merge feature.
|
|
54
|
+
* The default value is `false`.
|
|
55
|
+
*/
|
|
56
|
+
enableMerge?: boolean | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* - Enables split and merge features.
|
|
59
|
+
* The default value is `false`.
|
|
60
|
+
*/
|
|
61
|
+
enableSplitMerge?: boolean | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* - The status bar elements to manage the status
|
|
64
|
+
* label and action when editing pages.
|
|
65
|
+
*/
|
|
66
|
+
statusBar?: object | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* - The undo bar elements to manage the undo
|
|
69
|
+
* action.
|
|
70
|
+
*/
|
|
71
|
+
undoBar?: object | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* - The menu elements to manage saving edited
|
|
74
|
+
* PDF.
|
|
75
|
+
*/
|
|
76
|
+
manageMenu?: object | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* - The waiting bar elements shown during
|
|
79
|
+
* long-running operations.
|
|
80
|
+
*/
|
|
81
|
+
waitingBar?: object | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* - The file picker and button used to
|
|
84
|
+
* add one or more PDF files to merge with the current one.
|
|
85
|
+
*/
|
|
86
|
+
addFileComponent?: object | undefined;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* @typedef {object} PDFThumbnailViewerOptions
|
|
90
|
+
* @property {HTMLDivElement} container - The container for the thumbnail
|
|
91
|
+
* elements.
|
|
92
|
+
* @property {EventBus} eventBus - The application event bus.
|
|
93
|
+
* @property {PDFLinkService} linkService - The navigation/linking service.
|
|
94
|
+
* @property {PDFRenderingQueue} renderingQueue - The rendering queue object.
|
|
95
|
+
* @property {number} [maxCanvasPixels] - The maximum supported canvas size in
|
|
96
|
+
* total pixels, i.e. width * height. Use `-1` for no limit, or `0` for
|
|
97
|
+
* CSS-only zooming. The default value is 4096 * 8192 (32 mega-pixels).
|
|
98
|
+
* @property {number} [maxCanvasDim] - The maximum supported canvas dimension,
|
|
99
|
+
* in either width or height. Use `-1` for no limit.
|
|
100
|
+
* The default value is 32767.
|
|
101
|
+
* @property {object} [pageColors] - Overwrites background and foreground colors
|
|
102
|
+
* with user defined ones in order to improve readability in high contrast
|
|
103
|
+
* mode.
|
|
104
|
+
* @property {AbortSignal} [abortSignal] - The AbortSignal for the window
|
|
105
|
+
* events.
|
|
106
|
+
* @property {boolean} [enableNewBadge] - Enables the "new" badge for the split
|
|
107
|
+
* and merge features.
|
|
108
|
+
* @property {boolean} [enableMerge] - Enables the merge feature.
|
|
109
|
+
* The default value is `false`.
|
|
110
|
+
* @property {boolean} [enableSplitMerge] - Enables split and merge features.
|
|
111
|
+
* The default value is `false`.
|
|
112
|
+
* @property {object} [statusBar] - The status bar elements to manage the status
|
|
113
|
+
* label and action when editing pages.
|
|
114
|
+
* @property {object} [undoBar] - The undo bar elements to manage the undo
|
|
115
|
+
* action.
|
|
116
|
+
* @property {object} [manageMenu] - The menu elements to manage saving edited
|
|
117
|
+
* PDF.
|
|
118
|
+
* @property {object} [waitingBar] - The waiting bar elements shown during
|
|
119
|
+
* long-running operations.
|
|
120
|
+
* @property {object} [addFileComponent] - The file picker and button used to
|
|
121
|
+
* add one or more PDF files to merge with the current one.
|
|
122
|
+
*/
|
|
123
|
+
/**
|
|
124
|
+
* Viewer control to display thumbnails for pages in a PDF document.
|
|
125
|
+
*/
|
|
126
|
+
export class PDFThumbnailViewer {
|
|
127
|
+
static #draggingScaleFactor: number;
|
|
128
|
+
static #getScaleFactor(image: any): number;
|
|
129
|
+
static #fitImageDimensions(width: any, height: any, { minSide, maxSide }: {
|
|
130
|
+
minSide?: number | undefined;
|
|
131
|
+
maxSide: any;
|
|
132
|
+
}): {
|
|
133
|
+
width: any;
|
|
134
|
+
height: any;
|
|
135
|
+
};
|
|
136
|
+
static #fileToImageBitmap(file: any): Promise<ImageBitmap>;
|
|
137
|
+
/**
|
|
138
|
+
* @param {PDFThumbnailViewerOptions} options
|
|
139
|
+
*/
|
|
140
|
+
constructor({ container, eventBus, linkService, renderingQueue, maxCanvasPixels, maxCanvasDim, pageColors, abortSignal, enableMerge, enableSplitMerge, enableNewBadge, statusBar, undoBar, waitingBar, manageMenu, addFileComponent, }: PDFThumbnailViewerOptions);
|
|
141
|
+
scrollableContainer: HTMLElement | null;
|
|
142
|
+
container: HTMLDivElement;
|
|
143
|
+
eventBus: import("./event_utils").EventBus;
|
|
144
|
+
linkService: import("./pdf_link_service.js").PDFLinkService;
|
|
145
|
+
renderingQueue: import("./pdf_rendering_queue").PDFRenderingQueue;
|
|
146
|
+
maxCanvasPixels: number | undefined;
|
|
147
|
+
maxCanvasDim: number | undefined;
|
|
148
|
+
pageColors: object | null;
|
|
149
|
+
_manageMenu: Menu | undefined;
|
|
150
|
+
scroll: {
|
|
151
|
+
right: boolean;
|
|
152
|
+
down: boolean;
|
|
153
|
+
lastX: any;
|
|
154
|
+
lastY: any;
|
|
155
|
+
};
|
|
156
|
+
getThumbnail(index: any): any;
|
|
157
|
+
_currentPageNumber: any;
|
|
158
|
+
scrollThumbnailIntoView(pageNumber: any): void;
|
|
159
|
+
set pagesRotation(rotation: any);
|
|
160
|
+
get pagesRotation(): any;
|
|
161
|
+
_pagesRotation: any;
|
|
162
|
+
cleanup(): void;
|
|
163
|
+
_thumbnails: any[] | undefined;
|
|
164
|
+
_pageLabels: any[] | null | undefined;
|
|
165
|
+
/**
|
|
166
|
+
* @param {PDFDocumentProxy} pdfDocument
|
|
167
|
+
*/
|
|
168
|
+
setDocument(pdfDocument: PDFDocumentProxy): void;
|
|
169
|
+
pdfDocument: import("../src/display/api").PDFDocumentProxy | undefined;
|
|
170
|
+
/**
|
|
171
|
+
* @param {Array|null} labels
|
|
172
|
+
*/
|
|
173
|
+
setPageLabels(labels: any[] | null): void;
|
|
174
|
+
forceRendering(): boolean;
|
|
175
|
+
hasStructuralChanges(): any;
|
|
176
|
+
getStructuralChanges(): any;
|
|
177
|
+
#private;
|
|
178
|
+
}
|
|
179
|
+
import { Menu } from "./menu.js";
|