@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,119 @@
|
|
|
1
|
+
export type Streams = Ascii85Stream | AsciiHexStream | BaseStream | BrotliStream | CCITTFaxStream | FlateStream | Jbig2Stream | JpegStream | JpxStream | LZWStream | NullStream | PredictorStream | RunLengthStream;
|
|
2
|
+
export class Lexer {
|
|
3
|
+
constructor(stream: any, knownCommands?: null);
|
|
4
|
+
stream: any;
|
|
5
|
+
strBuf: any[];
|
|
6
|
+
knownCommands: any;
|
|
7
|
+
_hexStringNumWarn: number;
|
|
8
|
+
beginInlineImagePos: number;
|
|
9
|
+
nextChar(): any;
|
|
10
|
+
currentChar: any;
|
|
11
|
+
peekChar(): any;
|
|
12
|
+
getNumber(): number;
|
|
13
|
+
getString(): string;
|
|
14
|
+
getName(): any;
|
|
15
|
+
/**
|
|
16
|
+
* @private
|
|
17
|
+
*/
|
|
18
|
+
private _hexStringWarn;
|
|
19
|
+
getHexString(): string;
|
|
20
|
+
getObj(): any;
|
|
21
|
+
skipToNextLine(): void;
|
|
22
|
+
}
|
|
23
|
+
export class Linearization {
|
|
24
|
+
static create(stream: any): {
|
|
25
|
+
length: any;
|
|
26
|
+
hints: any[];
|
|
27
|
+
objectNumberFirst: any;
|
|
28
|
+
endFirst: any;
|
|
29
|
+
numPages: any;
|
|
30
|
+
mainXRefEntriesOffset: any;
|
|
31
|
+
pageFirst: any;
|
|
32
|
+
} | null;
|
|
33
|
+
}
|
|
34
|
+
export class Parser {
|
|
35
|
+
constructor({ lexer, xref, allowStreams, recoveryMode }: {
|
|
36
|
+
lexer: any;
|
|
37
|
+
xref: any;
|
|
38
|
+
allowStreams?: boolean | undefined;
|
|
39
|
+
recoveryMode?: boolean | undefined;
|
|
40
|
+
});
|
|
41
|
+
lexer: any;
|
|
42
|
+
xref: any;
|
|
43
|
+
allowStreams: boolean;
|
|
44
|
+
recoveryMode: boolean;
|
|
45
|
+
refill(): void;
|
|
46
|
+
buf1: any;
|
|
47
|
+
buf2: any;
|
|
48
|
+
shift(): void;
|
|
49
|
+
tryShift(): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* @param {CipherTransform | null} cipherTransform
|
|
52
|
+
* Cipher transform for decryption.
|
|
53
|
+
* @returns {unknown}
|
|
54
|
+
*/
|
|
55
|
+
getObj(cipherTransform?: CipherTransform | null): unknown;
|
|
56
|
+
/**
|
|
57
|
+
* Find the end of the stream by searching for the /EI\s/.
|
|
58
|
+
* @returns {number} The inline stream length.
|
|
59
|
+
*/
|
|
60
|
+
findDefaultInlineStreamEnd(stream: any): number;
|
|
61
|
+
/**
|
|
62
|
+
* Find the EOI (end-of-image) marker 0xFFD9 of the stream.
|
|
63
|
+
* @returns {number} The inline stream length.
|
|
64
|
+
*/
|
|
65
|
+
findDCTDecodeInlineStreamEnd(stream: any): number;
|
|
66
|
+
/**
|
|
67
|
+
* Find the EOD (end-of-data) marker '~>' (i.e. TILDE + GT) of the stream.
|
|
68
|
+
* @returns {number} The inline stream length.
|
|
69
|
+
*/
|
|
70
|
+
findASCII85DecodeInlineStreamEnd(stream: any): number;
|
|
71
|
+
/**
|
|
72
|
+
* Find the EOD (end-of-data) marker '>' (i.e. GT) of the stream.
|
|
73
|
+
* @returns {number} The inline stream length.
|
|
74
|
+
*/
|
|
75
|
+
findASCIIHexDecodeInlineStreamEnd(stream: any): number;
|
|
76
|
+
/**
|
|
77
|
+
* Skip over the /EI/ for streams where we search for an EOD marker.
|
|
78
|
+
*/
|
|
79
|
+
inlineStreamSkipEI(stream: any): void;
|
|
80
|
+
/**
|
|
81
|
+
* @param {CipherTransform | null} cipherTransform
|
|
82
|
+
* @returns {Streams}
|
|
83
|
+
*/
|
|
84
|
+
makeInlineImage(cipherTransform: CipherTransform | null): Streams;
|
|
85
|
+
makeStream(dict: any, cipherTransform: any): any;
|
|
86
|
+
/**
|
|
87
|
+
* @param {Streams} stream
|
|
88
|
+
* @param {Dict} dict
|
|
89
|
+
* @param {number | null} length
|
|
90
|
+
* @param {CipherTransform | null} cipherTransform
|
|
91
|
+
* @returns {Streams}
|
|
92
|
+
*/
|
|
93
|
+
filter(stream: Streams, dict: Dict, length: number | null, cipherTransform?: CipherTransform | null): Streams;
|
|
94
|
+
/**
|
|
95
|
+
* @param {Streams} stream
|
|
96
|
+
* @param {string} name
|
|
97
|
+
* @param {number | null} maybeLength
|
|
98
|
+
* @param {Dict | null} params
|
|
99
|
+
* @param {CipherTransform | null | undefined} [cipherTransform]
|
|
100
|
+
* @returns {Streams}
|
|
101
|
+
*/
|
|
102
|
+
makeFilter(stream: Streams, name: string, maybeLength: number | null, params: Dict | null, cipherTransform?: CipherTransform | null | undefined): Streams;
|
|
103
|
+
#private;
|
|
104
|
+
}
|
|
105
|
+
import { Ascii85Stream } from "./ascii_85_stream.js";
|
|
106
|
+
import { AsciiHexStream } from "./ascii_hex_stream.js";
|
|
107
|
+
import type { BaseStream } from "./base_stream.js";
|
|
108
|
+
import { BrotliStream } from "./brotli_stream.js";
|
|
109
|
+
import { CCITTFaxStream } from "./ccitt_stream.js";
|
|
110
|
+
import { FlateStream } from "./flate_stream.js";
|
|
111
|
+
import { Jbig2Stream } from "./jbig2_stream.js";
|
|
112
|
+
import { JpegStream } from "./jpeg_stream.js";
|
|
113
|
+
import { JpxStream } from "./jpx_stream.js";
|
|
114
|
+
import { LZWStream } from "./lzw_stream.js";
|
|
115
|
+
import { NullStream } from "./stream.js";
|
|
116
|
+
import { PredictorStream } from "./predictor_stream.js";
|
|
117
|
+
import { RunLengthStream } from "./run_length_stream.js";
|
|
118
|
+
import type { CipherTransform } from "./crypto.js";
|
|
119
|
+
import { Dict } from "./primitives.js";
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export function clearPatternCaches(): void;
|
|
2
|
+
export function getTilingPatternIR(operatorList: any, dict: any, color: any, needsIsolation?: boolean): any[];
|
|
3
|
+
export class Pattern {
|
|
4
|
+
static #hasGPU: boolean;
|
|
5
|
+
static setOptions({ hasGPU }: {
|
|
6
|
+
hasGPU: any;
|
|
7
|
+
}): void;
|
|
8
|
+
static parseShading(shading: any, xref: any, res: any, pdfFunctionFactory: any, globalColorSpaceCache: any, localColorSpaceCache: any): FunctionBasedShading | RadialAxialShading | MeshShading | DummyShading;
|
|
9
|
+
}
|
|
10
|
+
declare class FunctionBasedShading extends BaseShading {
|
|
11
|
+
static MAX_STEP_COUNT: number;
|
|
12
|
+
constructor(dict: any, xref: any, resources: any, pdfFunctionFactory: any, globalColorSpaceCache: any, localColorSpaceCache: any);
|
|
13
|
+
bbox: any;
|
|
14
|
+
background: any;
|
|
15
|
+
bounds: number[];
|
|
16
|
+
coords: Float32Array<ArrayBuffer>;
|
|
17
|
+
colors: Uint8ClampedArray<ArrayBuffer>;
|
|
18
|
+
figures: {
|
|
19
|
+
type: number;
|
|
20
|
+
coords: Uint32Array<ArrayBuffer>;
|
|
21
|
+
colors: Uint32Array<ArrayBuffer>;
|
|
22
|
+
verticesPerRow: number;
|
|
23
|
+
}[];
|
|
24
|
+
getIR(): any[];
|
|
25
|
+
}
|
|
26
|
+
declare class RadialAxialShading extends BaseShading {
|
|
27
|
+
constructor(dict: any, xref: any, resources: any, pdfFunctionFactory: any, globalColorSpaceCache: any, localColorSpaceCache: any);
|
|
28
|
+
shadingType: any;
|
|
29
|
+
coordsArr: any;
|
|
30
|
+
bbox: any;
|
|
31
|
+
colorStops: any[];
|
|
32
|
+
getIR(): any[];
|
|
33
|
+
}
|
|
34
|
+
declare class MeshShading extends BaseShading {
|
|
35
|
+
static MIN_SPLIT_PATCH_CHUNKS_AMOUNT: number;
|
|
36
|
+
static MAX_SPLIT_PATCH_CHUNKS_AMOUNT: number;
|
|
37
|
+
static TRIANGLE_DENSITY: number;
|
|
38
|
+
constructor(stream: any, xref: any, resources: any, pdfFunctionFactory: any, globalColorSpaceCache: any, localColorSpaceCache: any);
|
|
39
|
+
shadingType: any;
|
|
40
|
+
bbox: any;
|
|
41
|
+
background: any;
|
|
42
|
+
coords: any[];
|
|
43
|
+
colors: any[];
|
|
44
|
+
figures: any[];
|
|
45
|
+
_decodeType4Shading(reader: any): void;
|
|
46
|
+
_decodeType5Shading(reader: any, verticesPerRow: any): void;
|
|
47
|
+
_decodeType6Shading(reader: any): void;
|
|
48
|
+
_decodeType7Shading(reader: any): void;
|
|
49
|
+
_buildFigureFromPatch(index: any): void;
|
|
50
|
+
_updateBounds(): void;
|
|
51
|
+
_packData(): void;
|
|
52
|
+
getIR(): any[];
|
|
53
|
+
}
|
|
54
|
+
declare class DummyShading extends BaseShading {
|
|
55
|
+
getIR(): string[];
|
|
56
|
+
}
|
|
57
|
+
declare class BaseShading {
|
|
58
|
+
static SMALL_NUMBER: number;
|
|
59
|
+
getIR(): void;
|
|
60
|
+
}
|
|
61
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class PredictorStream extends DecodeStream {
|
|
2
|
+
constructor(str: any, maybeLength: any, params: any);
|
|
3
|
+
predictor: any;
|
|
4
|
+
stream: any;
|
|
5
|
+
dict: any;
|
|
6
|
+
colors: any;
|
|
7
|
+
bits: any;
|
|
8
|
+
columns: any;
|
|
9
|
+
pixBytes: number | undefined;
|
|
10
|
+
rowBytes: number | undefined;
|
|
11
|
+
readBlockTiff(): void;
|
|
12
|
+
readBlockPng(): void;
|
|
13
|
+
}
|
|
14
|
+
import { DecodeStream } from "./decode_stream.js";
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export const CIRCULAR_REF: unique symbol;
|
|
2
|
+
export function clearPrimitiveCaches(): void;
|
|
3
|
+
export class Cmd {
|
|
4
|
+
/**
|
|
5
|
+
* NOTE: This method is invoked a lot, hence `getOrInsertComputed` is
|
|
6
|
+
* purposely *not* used to avoid creating unneeded callback functions.
|
|
7
|
+
*/
|
|
8
|
+
static get(cmd: any): any;
|
|
9
|
+
constructor(cmd: any);
|
|
10
|
+
cmd: any;
|
|
11
|
+
}
|
|
12
|
+
export class Dict {
|
|
13
|
+
static get empty(): any;
|
|
14
|
+
static merge({ xref, dictArray, mergeSubDicts }: {
|
|
15
|
+
xref: any;
|
|
16
|
+
dictArray: any;
|
|
17
|
+
mergeSubDicts?: boolean | undefined;
|
|
18
|
+
}): any;
|
|
19
|
+
constructor(xref?: null);
|
|
20
|
+
__nonSerializable__: () => /*elided*/ any;
|
|
21
|
+
objId: null;
|
|
22
|
+
suppressEncryption: boolean;
|
|
23
|
+
xref: any;
|
|
24
|
+
assignXref(newXref: any): void;
|
|
25
|
+
get size(): number;
|
|
26
|
+
get(key1: any, key2: any): any;
|
|
27
|
+
getAsync(key1: any, key2: any): Promise<any>;
|
|
28
|
+
getArray(key1: any, key2: any): any;
|
|
29
|
+
getRaw(key: any): any;
|
|
30
|
+
getKeys(): MapIterator<any>;
|
|
31
|
+
getRawValues(): MapIterator<any>;
|
|
32
|
+
getRawEntries(): MapIterator<[any, any]>;
|
|
33
|
+
set(key: any, value: any): void;
|
|
34
|
+
setIfNotExists(key: any, value: any): void;
|
|
35
|
+
setIfNumber(key: any, value: any): void;
|
|
36
|
+
setIfArray(key: any, value: any): void;
|
|
37
|
+
setIfDefined(key: any, value: any): void;
|
|
38
|
+
setIfName(key: any, value: any): void;
|
|
39
|
+
setIfDict(key: any, value: any): void;
|
|
40
|
+
has(key: any): boolean;
|
|
41
|
+
clone(): Dict;
|
|
42
|
+
delete(key: any): void;
|
|
43
|
+
[Symbol.iterator](): Generator<any[], void, unknown>;
|
|
44
|
+
#private;
|
|
45
|
+
}
|
|
46
|
+
export const EOF: unique symbol;
|
|
47
|
+
export function isCmd(v: any, cmd: any): boolean;
|
|
48
|
+
export function isDict(v: any, type: any): boolean;
|
|
49
|
+
export function isName(v: any, name: any): boolean;
|
|
50
|
+
export function isRefsEqual(v1: any, v2: any): boolean;
|
|
51
|
+
export class Name {
|
|
52
|
+
/**
|
|
53
|
+
* NOTE: This method is invoked a lot, hence `getOrInsertComputed` is
|
|
54
|
+
* purposely *not* used to avoid creating unneeded callback functions.
|
|
55
|
+
*/
|
|
56
|
+
static get(name: any): any;
|
|
57
|
+
constructor(name: any);
|
|
58
|
+
name: any;
|
|
59
|
+
}
|
|
60
|
+
export class Ref {
|
|
61
|
+
static fromString(str: any): any;
|
|
62
|
+
/**
|
|
63
|
+
* NOTE: This method is invoked a lot, hence `getOrInsertComputed` is
|
|
64
|
+
* purposely *not* used to avoid creating unneeded callback functions.
|
|
65
|
+
*/
|
|
66
|
+
static get(num: any, gen: any): any;
|
|
67
|
+
constructor(str: any, num: any, gen: any);
|
|
68
|
+
num: any;
|
|
69
|
+
gen: any;
|
|
70
|
+
toString(): any;
|
|
71
|
+
#private;
|
|
72
|
+
}
|
|
73
|
+
export class RefMap {
|
|
74
|
+
get size(): number;
|
|
75
|
+
get(ref: any): any;
|
|
76
|
+
has(ref: any): boolean;
|
|
77
|
+
put(ref: any, obj: any): void;
|
|
78
|
+
putAlias(ref: any, aliasRef: any): void;
|
|
79
|
+
getOrPutComputed(ref: any, callback: any): any;
|
|
80
|
+
clear(): void;
|
|
81
|
+
values(): Generator<any, void, unknown>;
|
|
82
|
+
items(): Generator<any[], void, unknown>;
|
|
83
|
+
keys(): Generator<any, void, unknown>;
|
|
84
|
+
[Symbol.iterator](): MapIterator<any>;
|
|
85
|
+
#private;
|
|
86
|
+
}
|
|
87
|
+
export class RefSet {
|
|
88
|
+
constructor(parent?: null);
|
|
89
|
+
has(ref: any): boolean;
|
|
90
|
+
put(ref: any): void;
|
|
91
|
+
remove(ref: any): void;
|
|
92
|
+
clear(): void;
|
|
93
|
+
[Symbol.iterator](): SetIterator<any>;
|
|
94
|
+
#private;
|
|
95
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function saslPrep(str: any): string;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helpers for PDF sound objects (ISO 32000-1, 12.5.6.16).
|
|
3
|
+
*
|
|
4
|
+
* Sound streams contain samples described by /R, /C, /B, /E, and optional /CO.
|
|
5
|
+
* We wrap supported uncompressed PCM (Raw/Signed, 8/16-bit, mono/stereo) in WAV
|
|
6
|
+
* for playback.
|
|
7
|
+
* @import { BaseStream } from "./base_stream.js";
|
|
8
|
+
* @import { Dict } from "./primitives.js";
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Return a supported uncompressed sample format.
|
|
12
|
+
* @param {Dict} [dict] The sound object's stream dictionary.
|
|
13
|
+
* @returns {{
|
|
14
|
+
* channels: number,
|
|
15
|
+
* sampleRate: number,
|
|
16
|
+
* bitsPerSample: number,
|
|
17
|
+
* encoding: string,
|
|
18
|
+
* } | null}
|
|
19
|
+
*/
|
|
20
|
+
export function getSoundFormat(dict?: Dict): {
|
|
21
|
+
channels: number;
|
|
22
|
+
sampleRate: number;
|
|
23
|
+
bitsPerSample: number;
|
|
24
|
+
encoding: string;
|
|
25
|
+
} | null;
|
|
26
|
+
/**
|
|
27
|
+
* Build a WAV file from supported PDF sound samples.
|
|
28
|
+
*
|
|
29
|
+
* PDF 16-bit samples are big-endian; WAV uses little-endian, unsigned 8-bit
|
|
30
|
+
* samples, and signed 16-bit samples. The data chunk is trimmed to a whole
|
|
31
|
+
* number of frames (a multiple of the block alignment); a stream with no
|
|
32
|
+
* complete frame produces no WAV.
|
|
33
|
+
* @param {BaseStream} stream The sound object stream.
|
|
34
|
+
* @param {Uint8Array} samples Raw sample bytes from the stream.
|
|
35
|
+
* @returns {Uint8Array | null}
|
|
36
|
+
*/
|
|
37
|
+
export function soundStreamToWav(stream: BaseStream, samples: Uint8Array): Uint8Array | null;
|
|
38
|
+
import type { Dict } from "./primitives.js";
|
|
39
|
+
import type { BaseStream } from "./base_stream.js";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export class NullStream extends Stream {
|
|
2
|
+
constructor();
|
|
3
|
+
}
|
|
4
|
+
export class Stream extends BaseStream {
|
|
5
|
+
constructor(arrayBuffer: any, start: any, length: any, dict: any);
|
|
6
|
+
bytes: Uint8Array<any>;
|
|
7
|
+
start: any;
|
|
8
|
+
pos: any;
|
|
9
|
+
end: any;
|
|
10
|
+
dict: any;
|
|
11
|
+
getByte(): number;
|
|
12
|
+
getBytes(length: any): Uint8Array<any>;
|
|
13
|
+
getByteRange(begin: any, end: any): Uint8Array<any>;
|
|
14
|
+
makeSubStream(start: any, length: any, dict?: null): Stream;
|
|
15
|
+
clone(): Stream;
|
|
16
|
+
}
|
|
17
|
+
export class StringStream extends Stream {
|
|
18
|
+
constructor(str: any, dict?: null);
|
|
19
|
+
}
|
|
20
|
+
import { BaseStream } from "./base_stream.js";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export function isAscii(str: any): boolean;
|
|
2
|
+
export function stringToAsciiOrUTF16BE(str: any): any;
|
|
3
|
+
export function stringToPDFString(str: any, keepEscapeSequence?: boolean): any;
|
|
4
|
+
export function stringToUTF16HexString(str: any): string;
|
|
5
|
+
export function stringToUTF16String(str: any, bigEndian?: boolean): string;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export class StructTreePage {
|
|
2
|
+
constructor(structTreeRoot: any, pageDict: any);
|
|
3
|
+
root: any;
|
|
4
|
+
xref: any;
|
|
5
|
+
rootDict: any;
|
|
6
|
+
pageDict: any;
|
|
7
|
+
nodes: any[];
|
|
8
|
+
/**
|
|
9
|
+
* Collect all the objects (i.e. tag) that are part of the page and return a
|
|
10
|
+
* map of the structure element id to the object reference.
|
|
11
|
+
* @param {Ref} pageRef
|
|
12
|
+
* @returns {Map<number, Ref>}
|
|
13
|
+
*/
|
|
14
|
+
collectObjects(pageRef: Ref): Map<number, Ref>;
|
|
15
|
+
parse(pageRef: any): void;
|
|
16
|
+
addNode(dict: any, map: any, level?: number): any;
|
|
17
|
+
addTopLevelNode(dict: any, element: any): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Convert the tree structure into a simplified object literal that can
|
|
20
|
+
* be sent to the main thread.
|
|
21
|
+
* @returns {object}
|
|
22
|
+
*/
|
|
23
|
+
get serializable(): object;
|
|
24
|
+
}
|
|
25
|
+
export class StructTreeRoot {
|
|
26
|
+
static canCreateStructureTree({ catalogRef, pdfManager, newAnnotationsByPage, }: {
|
|
27
|
+
catalogRef: any;
|
|
28
|
+
pdfManager: any;
|
|
29
|
+
newAnnotationsByPage: any;
|
|
30
|
+
}): Promise<boolean>;
|
|
31
|
+
static createStructureTree({ newAnnotationsByPage, xref, catalogRef, pdfManager, changes, }: {
|
|
32
|
+
newAnnotationsByPage: any;
|
|
33
|
+
xref: any;
|
|
34
|
+
catalogRef: any;
|
|
35
|
+
pdfManager: any;
|
|
36
|
+
changes: any;
|
|
37
|
+
}): Promise<void>;
|
|
38
|
+
static #writeKids({ newAnnotationsByPage, structTreeRootRef, structTreeRoot, kids, nums, xref, pdfManager, changes, cache, }: {
|
|
39
|
+
newAnnotationsByPage: any;
|
|
40
|
+
structTreeRootRef: any;
|
|
41
|
+
structTreeRoot: any;
|
|
42
|
+
kids: any;
|
|
43
|
+
nums: any;
|
|
44
|
+
xref: any;
|
|
45
|
+
pdfManager: any;
|
|
46
|
+
changes: any;
|
|
47
|
+
cache: any;
|
|
48
|
+
}): Promise<number>;
|
|
49
|
+
static #writeProperties(tagDict: any, { type, title, lang, alt, expanded, actualText }: {
|
|
50
|
+
type: any;
|
|
51
|
+
title: any;
|
|
52
|
+
lang: any;
|
|
53
|
+
alt: any;
|
|
54
|
+
expanded: any;
|
|
55
|
+
actualText: any;
|
|
56
|
+
}): void;
|
|
57
|
+
static #collectParents({ elements, xref, pageDict, numberTree }: {
|
|
58
|
+
elements: any;
|
|
59
|
+
xref: any;
|
|
60
|
+
pageDict: any;
|
|
61
|
+
numberTree: any;
|
|
62
|
+
}): void;
|
|
63
|
+
static #updateParentTag({ structTreeParent, tagDict, newTagRef, structTreeRootRef, fallbackKids, xref, cache, }: {
|
|
64
|
+
structTreeParent: any;
|
|
65
|
+
tagDict: any;
|
|
66
|
+
newTagRef: any;
|
|
67
|
+
structTreeRootRef: any;
|
|
68
|
+
fallbackKids: any;
|
|
69
|
+
xref: any;
|
|
70
|
+
cache: any;
|
|
71
|
+
}): Promise<void>;
|
|
72
|
+
constructor(xref: any, rootDict: any, rootRef: any);
|
|
73
|
+
kidRefToPosition: undefined;
|
|
74
|
+
parentTree: null;
|
|
75
|
+
roleMap: Map<any, any>;
|
|
76
|
+
structParentIds: null;
|
|
77
|
+
xref: any;
|
|
78
|
+
dict: any;
|
|
79
|
+
ref: Ref | null;
|
|
80
|
+
getKidPosition(kidRef: any): any;
|
|
81
|
+
addAnnotationIdToPage(pageRef: any, id: any, ref: any): void;
|
|
82
|
+
canUpdateStructTree({ pdfManager, newAnnotationsByPage }: {
|
|
83
|
+
pdfManager: any;
|
|
84
|
+
newAnnotationsByPage: any;
|
|
85
|
+
}): Promise<boolean>;
|
|
86
|
+
updateStructureTree({ newAnnotationsByPage, pdfManager, changes }: {
|
|
87
|
+
newAnnotationsByPage: any;
|
|
88
|
+
pdfManager: any;
|
|
89
|
+
changes: any;
|
|
90
|
+
}): Promise<void>;
|
|
91
|
+
#private;
|
|
92
|
+
}
|
|
93
|
+
import { Ref } from "./primitives.js";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export function clearUnicodeCaches(): void;
|
|
2
|
+
export function getCharUnicodeCategory(char: any): any;
|
|
3
|
+
export function getUnicodeForGlyph(name: any, glyphsUnicodeMap: any): any;
|
|
4
|
+
export function getUnicodeRangeFor(value: any, lastPosition?: number): number;
|
|
5
|
+
export function mapSpecialUnicodeValues(code: any): any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export class WasmImage {
|
|
2
|
+
static #handler: null;
|
|
3
|
+
static #instances: Set<any>;
|
|
4
|
+
static #useWasm: boolean;
|
|
5
|
+
static #useWorkerFetch: boolean;
|
|
6
|
+
static #wasmUrl: null;
|
|
7
|
+
static setOptions({ handler, useWasm, useWorkerFetch, wasmUrl }: {
|
|
8
|
+
handler: any;
|
|
9
|
+
useWasm: any;
|
|
10
|
+
useWorkerFetch: any;
|
|
11
|
+
wasmUrl: any;
|
|
12
|
+
}): void;
|
|
13
|
+
static get instance(): void;
|
|
14
|
+
static cleanup(): void;
|
|
15
|
+
constructor(trackInstance?: boolean);
|
|
16
|
+
_filename: null;
|
|
17
|
+
_noWasmFilename: null;
|
|
18
|
+
_getModule(ImageDecoder: any): null;
|
|
19
|
+
decode(bytes: any, _params: any): Promise<void>;
|
|
20
|
+
#private;
|
|
21
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export class SimpleDOMNode {
|
|
2
|
+
constructor(nodeName: any, nodeValue: any);
|
|
3
|
+
nodeName: any;
|
|
4
|
+
nodeValue: any;
|
|
5
|
+
get firstChild(): any;
|
|
6
|
+
get nextSibling(): any;
|
|
7
|
+
get textContent(): any;
|
|
8
|
+
get children(): any;
|
|
9
|
+
hasChildNodes(): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Search a node in the tree with the given path
|
|
12
|
+
* foo.bar[nnn], i.e. find the nnn-th node named
|
|
13
|
+
* bar under a node named foo.
|
|
14
|
+
* @param {Array} paths - an array of objects as
|
|
15
|
+
* returned by {parseXFAPath}.
|
|
16
|
+
* @param {number} pos - the current position in
|
|
17
|
+
* the paths array.
|
|
18
|
+
* @returns {SimpleDOMNode} The node corresponding
|
|
19
|
+
* to the path or null if not found.
|
|
20
|
+
*/
|
|
21
|
+
searchNode(paths: any[], pos: number): SimpleDOMNode;
|
|
22
|
+
dump(buffer: any): void;
|
|
23
|
+
}
|
|
24
|
+
export class SimpleXMLParser extends XMLParserBase {
|
|
25
|
+
constructor({ hasAttributes, lowerCaseName }: {
|
|
26
|
+
hasAttributes?: boolean | undefined;
|
|
27
|
+
lowerCaseName?: boolean | undefined;
|
|
28
|
+
});
|
|
29
|
+
_currentFragment: any;
|
|
30
|
+
_stack: any[] | null;
|
|
31
|
+
_errorCode: number;
|
|
32
|
+
_hasAttributes: boolean;
|
|
33
|
+
_lowerCaseName: boolean;
|
|
34
|
+
parseFromString(data: any): {
|
|
35
|
+
documentElement: any;
|
|
36
|
+
} | undefined;
|
|
37
|
+
onEndElement(name: any): any;
|
|
38
|
+
}
|
|
39
|
+
export class XMLParserBase {
|
|
40
|
+
static get _entityRegex(): any;
|
|
41
|
+
_resolveEntities(s: any): any;
|
|
42
|
+
_parseContent(s: any, start: any): {
|
|
43
|
+
name: any;
|
|
44
|
+
attributes: {
|
|
45
|
+
name: string;
|
|
46
|
+
value: any;
|
|
47
|
+
}[];
|
|
48
|
+
parsed: number;
|
|
49
|
+
} | null;
|
|
50
|
+
_parseProcessingInstruction(s: any, start: any): {
|
|
51
|
+
name: any;
|
|
52
|
+
value: any;
|
|
53
|
+
parsed: number;
|
|
54
|
+
};
|
|
55
|
+
parseXml(s: any): void;
|
|
56
|
+
onResolveEntity(name: any): string;
|
|
57
|
+
onPi(name: any, value: any): void;
|
|
58
|
+
onComment(text: any): void;
|
|
59
|
+
onCdata(text: any): void;
|
|
60
|
+
onDoctype(doctypeContent: any): void;
|
|
61
|
+
onText(text: any): void;
|
|
62
|
+
onBeginElement(name: any, attributes: any, isEmpty: any): void;
|
|
63
|
+
onEndElement(name: any): void;
|
|
64
|
+
onError(code: any): void;
|
|
65
|
+
}
|
|
66
|
+
export namespace XMLParserErrorCode {
|
|
67
|
+
let NoError: number;
|
|
68
|
+
let EndOfDocument: number;
|
|
69
|
+
let UnterminatedCdata: number;
|
|
70
|
+
let UnterminatedXmlDeclaration: number;
|
|
71
|
+
let UnterminatedDoctypeDeclaration: number;
|
|
72
|
+
let UnterminatedComment: number;
|
|
73
|
+
let MalformedElement: number;
|
|
74
|
+
let OutOfMemory: number;
|
|
75
|
+
let UnterminatedAttributeValue: number;
|
|
76
|
+
let UnterminatedElement: number;
|
|
77
|
+
let ElementNeverBegun: number;
|
|
78
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export class XRef {
|
|
2
|
+
constructor(stream: any, pdfManager: any);
|
|
3
|
+
stream: any;
|
|
4
|
+
pdfManager: any;
|
|
5
|
+
getNewPersistentRef(obj: any): any;
|
|
6
|
+
getNewTemporaryRef(): any;
|
|
7
|
+
resetNewTemporaryRef(): void;
|
|
8
|
+
setStartXRef(startXRef: any): void;
|
|
9
|
+
startXRefQueue: any[] | undefined;
|
|
10
|
+
parse(recoveryMode?: boolean): void;
|
|
11
|
+
trailer: any;
|
|
12
|
+
encrypt: CipherTransformFactory | undefined;
|
|
13
|
+
root: Dict | undefined;
|
|
14
|
+
processXRefTable(parser: any): Dict;
|
|
15
|
+
readXRefTable(parser: any): any;
|
|
16
|
+
processXRefStream(stream: any): any;
|
|
17
|
+
streamState: {
|
|
18
|
+
entryRanges: any;
|
|
19
|
+
byteWidths: any;
|
|
20
|
+
entryNum: number;
|
|
21
|
+
streamPos: any;
|
|
22
|
+
} | undefined;
|
|
23
|
+
readXRefStream(stream: any): void;
|
|
24
|
+
indexObjects(): any;
|
|
25
|
+
_generationFallback: boolean | undefined;
|
|
26
|
+
readXRef(recoveryMode?: boolean): any;
|
|
27
|
+
countUpdatesAfter(offset: any): number | null;
|
|
28
|
+
getEntry(i: any): any;
|
|
29
|
+
fetchIfRef(obj: any, suppressEncryption?: boolean): any;
|
|
30
|
+
fetch(ref: any, suppressEncryption?: boolean): any;
|
|
31
|
+
fetchUncompressed(ref: any, xrefEntry: any, suppressEncryption?: boolean): any;
|
|
32
|
+
fetchCompressed(ref: any, xrefEntry: any, suppressEncryption?: boolean): any;
|
|
33
|
+
fetchIfRefAsync(obj: any, suppressEncryption: any): Promise<any>;
|
|
34
|
+
fetchAsync(ref: any, suppressEncryption: any): any;
|
|
35
|
+
getCatalogObj(): Dict | undefined;
|
|
36
|
+
#private;
|
|
37
|
+
}
|
|
38
|
+
import { CipherTransformFactory } from "./crypto.js";
|
|
39
|
+
import { Dict } from "./primitives.js";
|