@hussmartinez/pdf-sdk 0.0.0-stage → 0.2.0
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/LICENSE +202 -0
- package/NOTICE +66 -0
- package/README.md +119 -2
- package/dist/assets/pdfjs/build/pdf.worker.min.mjs +28 -0
- package/dist/assets/pdfjs/cmaps/78-EUC-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/78-EUC-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/78-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/78-RKSJ-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/78-RKSJ-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/78-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/78ms-RKSJ-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/78ms-RKSJ-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/83pv-RKSJ-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/90ms-RKSJ-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/90ms-RKSJ-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/90msp-RKSJ-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/90msp-RKSJ-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/90pv-RKSJ-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/90pv-RKSJ-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Add-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Add-RKSJ-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Add-RKSJ-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Add-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-CNS1-0.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-CNS1-1.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-CNS1-2.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-CNS1-3.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-CNS1-4.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-CNS1-5.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-CNS1-6.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-GB1-0.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-GB1-1.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-GB1-2.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-GB1-3.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-GB1-4.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-GB1-5.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-Japan1-0.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-Japan1-1.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-Japan1-2.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-Japan1-3.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-Japan1-4.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-Japan1-5.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-Japan1-6.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-Korea1-0.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-Korea1-1.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-Korea1-2.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/B5-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/B5-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/B5pc-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/B5pc-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/CNS-EUC-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/CNS-EUC-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/CNS1-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/CNS1-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/CNS2-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/CNS2-V.bcmap +3 -0
- package/dist/assets/pdfjs/cmaps/ETHK-B5-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/ETHK-B5-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/ETen-B5-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/ETen-B5-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/ETenms-B5-H.bcmap +3 -0
- package/dist/assets/pdfjs/cmaps/ETenms-B5-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/EUC-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/EUC-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Ext-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Ext-RKSJ-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Ext-RKSJ-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Ext-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/GB-EUC-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/GB-EUC-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/GB-H.bcmap +4 -0
- package/dist/assets/pdfjs/cmaps/GB-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/GBK-EUC-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/GBK-EUC-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/GBK2K-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/GBK2K-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/GBKp-EUC-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/GBKp-EUC-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/GBT-EUC-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/GBT-EUC-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/GBT-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/GBT-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/GBTpc-EUC-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/GBTpc-EUC-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/GBpc-EUC-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/GBpc-EUC-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/HKdla-B5-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/HKdla-B5-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/HKdlb-B5-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/HKdlb-B5-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/HKgccs-B5-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/HKgccs-B5-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/HKm314-B5-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/HKm314-B5-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/HKm471-B5-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/HKm471-B5-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/HKscs-B5-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/HKscs-B5-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Hankaku.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Hiragana.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/KSC-EUC-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/KSC-EUC-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/KSC-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/KSC-Johab-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/KSC-Johab-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/KSC-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/KSCms-UHC-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/KSCms-UHC-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/KSCpc-EUC-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/KSCpc-EUC-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Katakana.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/LICENSE +36 -0
- package/dist/assets/pdfjs/cmaps/NWP-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/NWP-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/RKSJ-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/RKSJ-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/Roman.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniCNS-UCS2-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniCNS-UCS2-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniCNS-UTF16-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniCNS-UTF16-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniCNS-UTF32-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniCNS-UTF32-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniCNS-UTF8-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniCNS-UTF8-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniGB-UCS2-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniGB-UCS2-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniGB-UTF16-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniGB-UTF16-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniGB-UTF32-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniGB-UTF32-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniGB-UTF8-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniGB-UTF8-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJIS-UCS2-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJIS-UCS2-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJIS-UTF16-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJIS-UTF16-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJIS-UTF32-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJIS-UTF32-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJIS-UTF8-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJIS-UTF8-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniKS-UCS2-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniKS-UCS2-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniKS-UTF16-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniKS-UTF16-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniKS-UTF32-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniKS-UTF32-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniKS-UTF8-H.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/UniKS-UTF8-V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/V.bcmap +0 -0
- package/dist/assets/pdfjs/cmaps/WP-Symbol.bcmap +0 -0
- package/dist/assets/pdfjs/iccs/CGATS001Compat-v2-micro.icc +0 -0
- package/dist/assets/pdfjs/iccs/LICENSE +116 -0
- package/dist/assets/pdfjs/standard_fonts/FoxitDingbats.pfb +0 -0
- package/dist/assets/pdfjs/standard_fonts/FoxitFixed.pfb +0 -0
- package/dist/assets/pdfjs/standard_fonts/FoxitFixedBold.pfb +0 -0
- package/dist/assets/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
- package/dist/assets/pdfjs/standard_fonts/FoxitFixedItalic.pfb +0 -0
- package/dist/assets/pdfjs/standard_fonts/FoxitSerif.pfb +0 -0
- package/dist/assets/pdfjs/standard_fonts/FoxitSerifBold.pfb +0 -0
- package/dist/assets/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
- package/dist/assets/pdfjs/standard_fonts/FoxitSerifItalic.pfb +0 -0
- package/dist/assets/pdfjs/standard_fonts/FoxitSymbol.pfb +0 -0
- package/dist/assets/pdfjs/standard_fonts/LICENSE_FOXIT +27 -0
- package/dist/assets/pdfjs/wasm/LICENSE_JBIG2 +196 -0
- package/dist/assets/pdfjs/wasm/LICENSE_OPENJPEG +39 -0
- package/dist/assets/pdfjs/wasm/LICENSE_PDFJS_JBIG2 +13 -0
- package/dist/assets/pdfjs/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
- package/dist/assets/pdfjs/wasm/LICENSE_PDFJS_QCMS +19 -0
- package/dist/assets/pdfjs/wasm/LICENSE_QCMS +21 -0
- package/dist/assets/pdfjs/wasm/jbig2.wasm +0 -0
- package/dist/assets/pdfjs/wasm/openjpeg.wasm +0 -0
- package/dist/assets/pdfjs/wasm/qcms_bg.wasm +0 -0
- package/dist/assets/processing/processing.worker.js +57 -0
- package/dist/assets/processing/qpdf.wasm +0 -0
- package/dist/element.d.ts +12 -0
- package/dist/element.js +0 -0
- package/dist/index.d.ts +1304 -0
- package/dist/index.js +1 -0
- package/dist/lazy/78-EUC-H.bcmap-sYP3SMNV.js +3 -0
- package/dist/lazy/78-EUC-V.bcmap-w3SY_Y_q.js +3 -0
- package/dist/lazy/78-H.bcmap-CeA2DrtT.js +3 -0
- package/dist/lazy/78-RKSJ-H.bcmap-D4cLhL3_.js +3 -0
- package/dist/lazy/78-RKSJ-V.bcmap-DdK1ZiTU.js +3 -0
- package/dist/lazy/78-V.bcmap-CVoLO4i0.js +3 -0
- package/dist/lazy/78ms-RKSJ-H.bcmap-B20DW4UH.js +3 -0
- package/dist/lazy/78ms-RKSJ-V.bcmap-CLnY5REh.js +3 -0
- package/dist/lazy/83pv-RKSJ-H.bcmap-Ck3Sc38p.js +3 -0
- package/dist/lazy/90ms-RKSJ-H.bcmap-C-vgp7Oe.js +3 -0
- package/dist/lazy/90ms-RKSJ-V.bcmap-CnYvCBfH.js +3 -0
- package/dist/lazy/90msp-RKSJ-H.bcmap-BIx2U_Lw.js +3 -0
- package/dist/lazy/90msp-RKSJ-V.bcmap-LSpKnFnA.js +3 -0
- package/dist/lazy/90pv-RKSJ-H.bcmap-ohvXiazb.js +3 -0
- package/dist/lazy/90pv-RKSJ-V.bcmap-DiMSuPqu.js +3 -0
- package/dist/lazy/Add-H.bcmap-D50q_cPt.js +3 -0
- package/dist/lazy/Add-RKSJ-H.bcmap-DLQ79XiS.js +3 -0
- package/dist/lazy/Add-RKSJ-V.bcmap-DgMvx1Yl.js +3 -0
- package/dist/lazy/Add-V.bcmap-njFd39xE.js +3 -0
- package/dist/lazy/Adobe-CNS1-0.bcmap-DC9aIYc6.js +3 -0
- package/dist/lazy/Adobe-CNS1-1.bcmap-CjXhkA0W.js +3 -0
- package/dist/lazy/Adobe-CNS1-2.bcmap-BfDCyJYh.js +3 -0
- package/dist/lazy/Adobe-CNS1-3.bcmap-C5_dNXD-.js +3 -0
- package/dist/lazy/Adobe-CNS1-4.bcmap-DkB6y9PJ.js +3 -0
- package/dist/lazy/Adobe-CNS1-5.bcmap-13hTC0vp.js +3 -0
- package/dist/lazy/Adobe-CNS1-6.bcmap-CcQ66yT1.js +3 -0
- package/dist/lazy/Adobe-CNS1-UCS2.bcmap-jD7ZNdHN.js +3 -0
- package/dist/lazy/Adobe-GB1-0.bcmap-CwfHCw6h.js +3 -0
- package/dist/lazy/Adobe-GB1-1.bcmap-DRWrCran.js +3 -0
- package/dist/lazy/Adobe-GB1-2.bcmap-0nedEhcq.js +3 -0
- package/dist/lazy/Adobe-GB1-3.bcmap-Cq3lCVsW.js +3 -0
- package/dist/lazy/Adobe-GB1-4.bcmap-BzTb6Nsg.js +3 -0
- package/dist/lazy/Adobe-GB1-5.bcmap-BUHSmz5c.js +3 -0
- package/dist/lazy/Adobe-GB1-UCS2.bcmap-DUfIxWQW.js +3 -0
- package/dist/lazy/Adobe-Japan1-0.bcmap-BjG9GiRM.js +3 -0
- package/dist/lazy/Adobe-Japan1-1.bcmap-DQTj-iQt.js +3 -0
- package/dist/lazy/Adobe-Japan1-2.bcmap-BOsCSmmm.js +3 -0
- package/dist/lazy/Adobe-Japan1-3.bcmap-ChGf7g8t.js +3 -0
- package/dist/lazy/Adobe-Japan1-4.bcmap-CI6iUMgQ.js +3 -0
- package/dist/lazy/Adobe-Japan1-5.bcmap-kbwPceJO.js +3 -0
- package/dist/lazy/Adobe-Japan1-6.bcmap-CAvvqYpW.js +3 -0
- package/dist/lazy/Adobe-Japan1-UCS2.bcmap-DbZiEgfC.js +3 -0
- package/dist/lazy/Adobe-Korea1-0.bcmap-Der5jvBG.js +3 -0
- package/dist/lazy/Adobe-Korea1-1.bcmap-DafpcUyn.js +3 -0
- package/dist/lazy/Adobe-Korea1-2.bcmap-D1nh75yR.js +3 -0
- package/dist/lazy/Adobe-Korea1-UCS2.bcmap-CNeMfPHO.js +3 -0
- package/dist/lazy/B5-H.bcmap-gyhuoKf7.js +3 -0
- package/dist/lazy/B5-V.bcmap-BGqDqEjZ.js +3 -0
- package/dist/lazy/B5pc-H.bcmap-C8B_dVbb.js +3 -0
- package/dist/lazy/B5pc-V.bcmap-ETo7py2B.js +3 -0
- package/dist/lazy/CNS-EUC-H.bcmap-BgwyrNdN.js +3 -0
- package/dist/lazy/CNS-EUC-V.bcmap-BbC68G9k.js +3 -0
- package/dist/lazy/CNS1-H.bcmap-DZIguuvp.js +3 -0
- package/dist/lazy/CNS1-V.bcmap-DjthPwLF.js +3 -0
- package/dist/lazy/CNS2-H.bcmap-CTuiQP8Z.js +3 -0
- package/dist/lazy/CNS2-V.bcmap-BU5ZzL4C.js +3 -0
- package/dist/lazy/ETHK-B5-H.bcmap-AYx-kODg.js +3 -0
- package/dist/lazy/ETHK-B5-V.bcmap-C_2Sxwdm.js +3 -0
- package/dist/lazy/ETen-B5-H.bcmap-BAKuplan.js +3 -0
- package/dist/lazy/ETen-B5-V.bcmap-Dnm6aXlS.js +3 -0
- package/dist/lazy/ETenms-B5-H.bcmap-DZ8Y3Rnc.js +3 -0
- package/dist/lazy/ETenms-B5-V.bcmap-DPnnTEiA.js +3 -0
- package/dist/lazy/EUC-H.bcmap-B1COGDXX.js +3 -0
- package/dist/lazy/EUC-V.bcmap-BRvFq5yx.js +3 -0
- package/dist/lazy/Ext-H.bcmap-CNU3PCfs.js +3 -0
- package/dist/lazy/Ext-RKSJ-H.bcmap-T22CGXk4.js +3 -0
- package/dist/lazy/Ext-RKSJ-V.bcmap-K2DXeZ3P.js +3 -0
- package/dist/lazy/Ext-V.bcmap-3sNuPEfV.js +3 -0
- package/dist/lazy/FoxitDingbats.pfb-DVieKaw5.js +3 -0
- package/dist/lazy/FoxitFixed.pfb-Cxgpn9hN.js +3 -0
- package/dist/lazy/FoxitFixedBold.pfb-SBojmP3G.js +3 -0
- package/dist/lazy/FoxitFixedBoldItalic.pfb-DhsbZ2IP.js +3 -0
- package/dist/lazy/FoxitFixedItalic.pfb-Dm09mdyI.js +3 -0
- package/dist/lazy/FoxitSerif.pfb-DyMzSE_0.js +3 -0
- package/dist/lazy/FoxitSerifBold.pfb-DTzLt76W.js +3 -0
- package/dist/lazy/FoxitSerifBoldItalic.pfb-X3fHgghe.js +3 -0
- package/dist/lazy/FoxitSerifItalic.pfb-Nz1cnSKc.js +3 -0
- package/dist/lazy/FoxitSymbol.pfb-BL-rU8nS.js +3 -0
- package/dist/lazy/GB-EUC-H.bcmap-CsgH6-Rh.js +3 -0
- package/dist/lazy/GB-EUC-V.bcmap-DUouvrJu.js +3 -0
- package/dist/lazy/GB-H.bcmap-CuVli79K.js +3 -0
- package/dist/lazy/GB-V.bcmap-C3uPsDRC.js +3 -0
- package/dist/lazy/GBK-EUC-H.bcmap-BBDA5YUr.js +3 -0
- package/dist/lazy/GBK-EUC-V.bcmap-CjEpjWSW.js +3 -0
- package/dist/lazy/GBK2K-H.bcmap-DEJkj1gN.js +3 -0
- package/dist/lazy/GBK2K-V.bcmap-NYgNeNsu.js +3 -0
- package/dist/lazy/GBKp-EUC-H.bcmap-BIQuHkue.js +3 -0
- package/dist/lazy/GBKp-EUC-V.bcmap-BNBPmQ4v.js +3 -0
- package/dist/lazy/GBT-EUC-H.bcmap-D7OWs_0J.js +3 -0
- package/dist/lazy/GBT-EUC-V.bcmap-D_rNNyCu.js +3 -0
- package/dist/lazy/GBT-H.bcmap-B4SLNj_c.js +3 -0
- package/dist/lazy/GBT-V.bcmap-Cq6Niv8e.js +3 -0
- package/dist/lazy/GBTpc-EUC-H.bcmap-CX8SXrun.js +3 -0
- package/dist/lazy/GBTpc-EUC-V.bcmap-hM7BhuwC.js +3 -0
- package/dist/lazy/GBpc-EUC-H.bcmap-BIEXt7KG.js +3 -0
- package/dist/lazy/GBpc-EUC-V.bcmap-DWeqNOzl.js +3 -0
- package/dist/lazy/H.bcmap-DsMNeuh7.js +3 -0
- package/dist/lazy/HKdla-B5-H.bcmap-CI5u0d4T.js +3 -0
- package/dist/lazy/HKdla-B5-V.bcmap-yk9YM4CN.js +3 -0
- package/dist/lazy/HKdlb-B5-H.bcmap-DenLwP2C.js +3 -0
- package/dist/lazy/HKdlb-B5-V.bcmap-BKFxIrzq.js +3 -0
- package/dist/lazy/HKgccs-B5-H.bcmap-i607pEmt.js +3 -0
- package/dist/lazy/HKgccs-B5-V.bcmap-BA9Nvcnu.js +3 -0
- package/dist/lazy/HKm314-B5-H.bcmap-BamdAWrg.js +3 -0
- package/dist/lazy/HKm314-B5-V.bcmap-JIFeW7D_.js +3 -0
- package/dist/lazy/HKm471-B5-H.bcmap-CIOwD0zn.js +3 -0
- package/dist/lazy/HKm471-B5-V.bcmap-BkDoTPME.js +3 -0
- package/dist/lazy/HKscs-B5-H.bcmap--SdxOf4z.js +3 -0
- package/dist/lazy/HKscs-B5-V.bcmap-DmqMO-Th.js +3 -0
- package/dist/lazy/Hankaku.bcmap-B2fyvO8A.js +3 -0
- package/dist/lazy/Hiragana.bcmap-DP3YLVOE.js +3 -0
- package/dist/lazy/KSC-EUC-H.bcmap-DQ5YvjA7.js +3 -0
- package/dist/lazy/KSC-EUC-V.bcmap-BNvwGfQX.js +3 -0
- package/dist/lazy/KSC-H.bcmap-Ca-HYPS4.js +3 -0
- package/dist/lazy/KSC-Johab-H.bcmap-CfF2UvBc.js +3 -0
- package/dist/lazy/KSC-Johab-V.bcmap-LBN9I8dg.js +3 -0
- package/dist/lazy/KSC-V.bcmap-5U7FPho3.js +3 -0
- package/dist/lazy/KSCms-UHC-H.bcmap-CmoPtsRN.js +3 -0
- package/dist/lazy/KSCms-UHC-HW-H.bcmap-CVBsfTPV.js +3 -0
- package/dist/lazy/KSCms-UHC-HW-V.bcmap-Dv90XUw-.js +3 -0
- package/dist/lazy/KSCms-UHC-V.bcmap-BlaojGc1.js +3 -0
- package/dist/lazy/KSCpc-EUC-H.bcmap-FrupvwaV.js +3 -0
- package/dist/lazy/KSCpc-EUC-V.bcmap-MG3GiZE4.js +3 -0
- package/dist/lazy/Katakana.bcmap-C8Bmgyhi.js +3 -0
- package/dist/lazy/NWP-H.bcmap-CAdIwPDs.js +3 -0
- package/dist/lazy/NWP-V.bcmap-DJ8FpnB4.js +3 -0
- package/dist/lazy/RKSJ-H.bcmap-qGRAHcEF.js +3 -0
- package/dist/lazy/RKSJ-V.bcmap-Dg3ddxaN.js +3 -0
- package/dist/lazy/Roman.bcmap-D4SBc9em.js +3 -0
- package/dist/lazy/UniCNS-UCS2-H.bcmap-CAjdESaO.js +3 -0
- package/dist/lazy/UniCNS-UCS2-V.bcmap-BHZM4Vzw.js +3 -0
- package/dist/lazy/UniCNS-UTF16-H.bcmap-Cm4ZnlrX.js +3 -0
- package/dist/lazy/UniCNS-UTF16-V.bcmap-BP1BFVyb.js +3 -0
- package/dist/lazy/UniCNS-UTF32-H.bcmap-DGLG7zQ_.js +3 -0
- package/dist/lazy/UniCNS-UTF32-V.bcmap-C6v0CIVn.js +3 -0
- package/dist/lazy/UniCNS-UTF8-H.bcmap-97YD5l2o.js +3 -0
- package/dist/lazy/UniCNS-UTF8-V.bcmap-B_zdNm-u.js +3 -0
- package/dist/lazy/UniGB-UCS2-H.bcmap-BcioIbCK.js +3 -0
- package/dist/lazy/UniGB-UCS2-V.bcmap-Cu-XDS3_.js +3 -0
- package/dist/lazy/UniGB-UTF16-H.bcmap-DPDBbQj_.js +3 -0
- package/dist/lazy/UniGB-UTF16-V.bcmap-Bwwxp3b7.js +3 -0
- package/dist/lazy/UniGB-UTF32-H.bcmap-D-uBJmmw.js +3 -0
- package/dist/lazy/UniGB-UTF32-V.bcmap-CLe_N_q5.js +3 -0
- package/dist/lazy/UniGB-UTF8-H.bcmap-CadVYdlJ.js +3 -0
- package/dist/lazy/UniGB-UTF8-V.bcmap-B9mD6Kt7.js +3 -0
- package/dist/lazy/UniJIS-UCS2-H.bcmap-BaCSu9QA.js +3 -0
- package/dist/lazy/UniJIS-UCS2-HW-H.bcmap-CYQj9xSp.js +3 -0
- package/dist/lazy/UniJIS-UCS2-HW-V.bcmap-CDzIwh-J.js +3 -0
- package/dist/lazy/UniJIS-UCS2-V.bcmap-DqCxM_EZ.js +3 -0
- package/dist/lazy/UniJIS-UTF16-H.bcmap-9TPLuUCU.js +3 -0
- package/dist/lazy/UniJIS-UTF16-V.bcmap-D6-nIWTQ.js +3 -0
- package/dist/lazy/UniJIS-UTF32-H.bcmap-CzmUWSLA.js +3 -0
- package/dist/lazy/UniJIS-UTF32-V.bcmap--KhJJEJE.js +3 -0
- package/dist/lazy/UniJIS-UTF8-H.bcmap-BwrhFSFd.js +3 -0
- package/dist/lazy/UniJIS-UTF8-V.bcmap-DGwbFkaL.js +3 -0
- package/dist/lazy/UniJIS2004-UTF16-H.bcmap-CdsS_d3_.js +3 -0
- package/dist/lazy/UniJIS2004-UTF16-V.bcmap-BnlV29Vf.js +3 -0
- package/dist/lazy/UniJIS2004-UTF32-H.bcmap-DSULVyIs.js +3 -0
- package/dist/lazy/UniJIS2004-UTF32-V.bcmap-CzBB970E.js +3 -0
- package/dist/lazy/UniJIS2004-UTF8-H.bcmap-BBuoGqhC.js +3 -0
- package/dist/lazy/UniJIS2004-UTF8-V.bcmap-dXgQhdTV.js +3 -0
- package/dist/lazy/UniJISPro-UCS2-HW-V.bcmap-ePVViljk.js +3 -0
- package/dist/lazy/UniJISPro-UCS2-V.bcmap-b2Oljrl4.js +3 -0
- package/dist/lazy/UniJISPro-UTF8-V.bcmap-CbPXe9gt.js +3 -0
- package/dist/lazy/UniJISX0213-UTF32-H.bcmap-Blmknifg.js +3 -0
- package/dist/lazy/UniJISX0213-UTF32-V.bcmap-Dtggmq9y.js +3 -0
- package/dist/lazy/UniJISX02132004-UTF32-H.bcmap-3YBd8tyQ.js +3 -0
- package/dist/lazy/UniJISX02132004-UTF32-V.bcmap-B8VdB9qS.js +3 -0
- package/dist/lazy/UniKS-UCS2-H.bcmap-CIhkpKgh.js +3 -0
- package/dist/lazy/UniKS-UCS2-V.bcmap-Cg-GDuqq.js +3 -0
- package/dist/lazy/UniKS-UTF16-H.bcmap-EZHb2IFq.js +3 -0
- package/dist/lazy/UniKS-UTF16-V.bcmap-BhqhAhYP.js +3 -0
- package/dist/lazy/UniKS-UTF32-H.bcmap-Cgay0dIp.js +3 -0
- package/dist/lazy/UniKS-UTF32-V.bcmap-DYXyatLV.js +3 -0
- package/dist/lazy/UniKS-UTF8-H.bcmap-BvHYimUT.js +3 -0
- package/dist/lazy/UniKS-UTF8-V.bcmap-DStcP2w0.js +3 -0
- package/dist/lazy/V.bcmap-DuWGSyNm.js +3 -0
- package/dist/lazy/WP-Symbol.bcmap-GltcyRl-.js +3 -0
- package/dist/lazy/_virtual_hm-pdfjs-data-BSzhlxyq.js +194 -0
- package/dist/lazy/jbig2.wasm-CUnHTdWi.js +3 -0
- package/dist/lazy/openjpeg.wasm-bdyxAnqz.js +3 -0
- package/dist/lazy/processing-worker-DU8GEYFs.js +30 -0
- package/dist/lazy/processing-worker-DU8GEYFs.js.map +1 -0
- package/dist/lazy/render-worker-WgnZ-czI.js +30 -0
- package/dist/lazy/render-worker-WgnZ-czI.js.map +1 -0
- package/dist/lazy/runtime-G4hlayVF.js +22652 -0
- package/dist/lazy/runtime-G4hlayVF.js.map +1 -0
- package/dist/react.d.ts +1587 -0
- package/dist/react.js +1157 -0
- package/dist/react.js.map +1 -0
- package/dist/shared/en-BYB_GHqG.js +1265 -0
- package/dist/shared/en-BYB_GHqG.js.map +1 -0
- package/dist/styles.css +337 -0
- package/package.json +111 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
202
|
+
|
package/NOTICE
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@hussmartinez/pdf-sdk
|
|
2
|
+
Copyright 2026 Huss Martinez
|
|
3
|
+
|
|
4
|
+
This product is licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
5
|
+
|
|
6
|
+
It bundles the following third-party software and data, under the licences
|
|
7
|
+
named. The licence texts that ship with each are also included in
|
|
8
|
+
dist/assets/pdfjs/, next to the files they cover.
|
|
9
|
+
|
|
10
|
+
--------------------------------------------------------------------------------
|
|
11
|
+
PDF.js (pdfjs-dist), including its WebAssembly builds of the decoders below
|
|
12
|
+
Copyright Mozilla Foundation
|
|
13
|
+
Licensed under the Apache License, Version 2.0.
|
|
14
|
+
https://github.com/mozilla/pdf.js
|
|
15
|
+
--------------------------------------------------------------------------------
|
|
16
|
+
Adobe CMap resources (dist/assets/pdfjs/cmaps, and the inlined copies)
|
|
17
|
+
Copyright 1990-2009 Adobe Systems Incorporated. All rights reserved.
|
|
18
|
+
Licensed under the BSD 3-Clause License (see cmaps/LICENSE).
|
|
19
|
+
--------------------------------------------------------------------------------
|
|
20
|
+
Foxit standard fonts (dist/assets/pdfjs/standard_fonts, and the inlined copies)
|
|
21
|
+
Copyright 2014 PDFium Authors. All rights reserved.
|
|
22
|
+
Licensed under the BSD 3-Clause License (see standard_fonts/LICENSE_FOXIT).
|
|
23
|
+
--------------------------------------------------------------------------------
|
|
24
|
+
JBIG2 decoder from PDFium (wasm/jbig2.wasm)
|
|
25
|
+
Copyright 2014 PDFium Authors. All rights reserved.
|
|
26
|
+
Licensed under the BSD 3-Clause License (see wasm/LICENSE_JBIG2).
|
|
27
|
+
--------------------------------------------------------------------------------
|
|
28
|
+
OpenJPEG (wasm/openjpeg.wasm)
|
|
29
|
+
Copyright the OpenJPEG authors.
|
|
30
|
+
Licensed under the BSD 2-Clause License (see wasm/LICENSE_OPENJPEG).
|
|
31
|
+
--------------------------------------------------------------------------------
|
|
32
|
+
qcms (wasm/qcms_bg.wasm, self-hosted copy only)
|
|
33
|
+
Copyright 2009-2024 Mozilla Corporation, Copyright 1998-2007 Marti Maria.
|
|
34
|
+
Licensed under the MIT License (see wasm/LICENSE_QCMS).
|
|
35
|
+
--------------------------------------------------------------------------------
|
|
36
|
+
CGATS001Compat-v2-micro ICC profile (iccs/, self-hosted copy only)
|
|
37
|
+
Dedicated to the public domain under CC0 1.0 (see iccs/LICENSE).
|
|
38
|
+
--------------------------------------------------------------------------------
|
|
39
|
+
qpdf 12.3.2, compiled to WebAssembly (inlined into the processing worker)
|
|
40
|
+
Copyright Jay Berkenbilt and the qpdf contributors.
|
|
41
|
+
Licensed under the Apache License, Version 2.0.
|
|
42
|
+
https://github.com/qpdf/qpdf
|
|
43
|
+
--------------------------------------------------------------------------------
|
|
44
|
+
zlib (part of the qpdf WebAssembly)
|
|
45
|
+
Copyright Jean-loup Gailly and Mark Adler.
|
|
46
|
+
Licensed under the zlib License.
|
|
47
|
+
--------------------------------------------------------------------------------
|
|
48
|
+
libjpeg (part of the qpdf WebAssembly)
|
|
49
|
+
This software is based in part on the work of the Independent JPEG Group.
|
|
50
|
+
Licensed under the IJG License.
|
|
51
|
+
--------------------------------------------------------------------------------
|
|
52
|
+
Emscripten runtime (the qpdf WebAssembly's JavaScript glue)
|
|
53
|
+
Copyright the Emscripten authors.
|
|
54
|
+
Licensed under the MIT License.
|
|
55
|
+
--------------------------------------------------------------------------------
|
|
56
|
+
pdfstudio 0.4.0 (the qpdf WebAssembly build and its JavaScript wrapper)
|
|
57
|
+
Licensed under the Apache License, Version 2.0.
|
|
58
|
+
https://github.com/fayazara/pdfstudio
|
|
59
|
+
--------------------------------------------------------------------------------
|
|
60
|
+
@cantoo/pdf-lib 2.11.1 (inlined into the processing worker)
|
|
61
|
+
Copyright Andrew Dillon and the pdf-lib and Cantoo contributors.
|
|
62
|
+
Licensed under the MIT License.
|
|
63
|
+
https://github.com/cantoo-scribe/pdf-lib
|
|
64
|
+
Its bundled dependencies: fflate (MIT), culori (MIT), html-entities (MIT),
|
|
65
|
+
node-html-better-parser (MIT) and tslib (0BSD).
|
|
66
|
+
--------------------------------------------------------------------------------
|
package/README.md
CHANGED
|
@@ -1,3 +1,120 @@
|
|
|
1
|
-
#
|
|
1
|
+
# pdf-sdk
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A client-side PDF SDK: view, edit, merge, compress and protect PDFs entirely in the browser. Files never leave the device. It offers a headless core, a React editor (`PdfEditor`) and a `<hm-pdf-editor>` custom element.
|
|
4
|
+
|
|
5
|
+
This repository will publish **`@hussmartinez/pdf-sdk`**, which replaces the private `@phalabsteam/pdf`. It follows the family standards in [`sdk-core`'s `STANDARDS.md`](https://github.com/ie-huss-martinez/sdk-core/blob/main/STANDARDS.md), and in particular the decisions on [hostile input and no network](https://github.com/ie-huss-martinez/sdk-core/blob/main/docs/adr/0012-hostile-input-and-no-network.md), [workers and assets](https://github.com/ie-huss-martinez/sdk-core/blob/main/docs/adr/0011-worker-messaging-and-assets.md) and [ports and adapters](https://github.com/ie-huss-martinez/sdk-core/blob/main/docs/adr/0008-ports-adapters-and-session.md).
|
|
6
|
+
|
|
7
|
+
> Status: being bootstrapped. No packages are published yet.
|
|
8
|
+
|
|
9
|
+
## The React editor
|
|
10
|
+
|
|
11
|
+
```tsx
|
|
12
|
+
import { PdfEditor, type PdfEditorHandle } from "@hussmartinez/pdf-sdk/react";
|
|
13
|
+
import "@hussmartinez/ui/styles.css";
|
|
14
|
+
import "@hussmartinez/pdf-sdk/styles.css";
|
|
15
|
+
|
|
16
|
+
const editor = useRef<PdfEditorHandle>(null);
|
|
17
|
+
|
|
18
|
+
<div style={{ height: "100dvh" }}>
|
|
19
|
+
<PdfEditor ref={editor} file={file} onChange={({ reason }) => setDirty(reason === "edit")} />
|
|
20
|
+
</div>;
|
|
21
|
+
|
|
22
|
+
const bytes = await editor.current?.export();
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**Styles: ui's stylesheet is required.** Import `@hussmartinez/ui/styles.css` once in your application, before `@hussmartinez/pdf-sdk/styles.css`, as above. The editor's toolbar is built from [`@hussmartinez/ui`](https://www.npmjs.com/package/@hussmartinez/ui)'s components, and their focus rings and minimum target sizes are in ui's stylesheet, along with the design tokens, themes and density ([sdk-core ADR 0036](https://github.com/ie-huss-martinez/sdk-core/blob/main/docs/adr/0036-ui-as-a-dependency-of-the-sdks.md)). The SDK's stylesheet never includes it, so a page with several SDKs loads it once. Every value is also a `--hm-pdf-*` property you can set on any ancestor.
|
|
26
|
+
|
|
27
|
+
**One copy of ui and sdk-core.** The SDK depends on `@hussmartinez/ui` `^0.7.0` and `@hussmartinez/sdk-core` `^0.4.4`. If your application uses either itself, depend on the same minor versions, and check that `npm ls @hussmartinez/ui @hussmartinez/sdk-core` lists one version of each: a second copy doesn't share providers with the first, so text falls back to English and announcements are lost.
|
|
28
|
+
|
|
29
|
+
**A bounded height.** `PdfEditor` fills the height of its container, and its viewer and thumbnails scroll within it, so give it a bounded height: a fixed height, or a grid row such as `minmax(0, 1fr)`. The same goes for `PdfViewer` and `PdfThumbnails` used on their own.
|
|
30
|
+
|
|
31
|
+
**Text.** `messages` overrides any text the editor shows, by key, including ui's, such as `"spinner.label"`. The editor builds one set of text from them and your `locale`, for its own components and for ui's ([sdk-core ADR 0046](https://github.com/ie-huss-martinez/sdk-core/blob/main/docs/adr/0046-ui-text-through-the-sdk.md)). `pdfEditorMessages` is the English catalogue, and `MessageOverrides<PdfEditorMessageCatalogue>` types your overrides.
|
|
32
|
+
|
|
33
|
+
`file` opens a document, and a different one replaces it; `null` closes it. Users can also open one with the editor's button or by dropping it on the editor. `onChange` reports each `open`, `edit` and `close`, and the ref's `PdfEditorHandle` exports, undoes, redoes and closes.
|
|
34
|
+
|
|
35
|
+
### Tools, the toolbar and shortcuts
|
|
36
|
+
|
|
37
|
+
The editor's tools are in `pdfTools`:
|
|
38
|
+
|
|
39
|
+
| Tool | Shortcut | What it does |
|
|
40
|
+
|---|---|---|
|
|
41
|
+
| `pdf.open` | none: `Ctrl+O` is the browser's own | Opens a PDF, replacing the current one |
|
|
42
|
+
| `pdf.undo` | `Ctrl+Z`, or `⌘Z` on Apple platforms | Undoes the last edit |
|
|
43
|
+
| `pdf.redo` | `Ctrl+Shift+Z` or `Ctrl+Y`, or `⇧⌘Z` | Redoes the last undone edit |
|
|
44
|
+
| `pdf.rotate-left` | `[` | Turns the selected pages, or the current one, a quarter turn anticlockwise |
|
|
45
|
+
| `pdf.rotate-right` | `]` | Turns them a quarter turn clockwise |
|
|
46
|
+
|
|
47
|
+
Choose which tools are present with `tools`, and arrange the toolbar with `toolbar`, as groups of tool ids; `toolbar={[]}` hides it and keeps the shortcuts. An unknown id throws when the editor renders, so a typo never leaves a tool silently missing. `icons` replaces any icon by name with your own component.
|
|
48
|
+
|
|
49
|
+
```tsx
|
|
50
|
+
<PdfEditor
|
|
51
|
+
tools={["pdf.undo", "pdf.redo", "pdf.rotate-left", "pdf.rotate-right"]}
|
|
52
|
+
toolbar={[["pdf.undo", "pdf.redo"], ["pdf.rotate-left", "pdf.rotate-right"]]}
|
|
53
|
+
/>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Shortcuts work only while focus is inside the editor, never on the rest of your page, and never while typing in a field. The toolbar is one tab stop, with arrow keys between its buttons; each button names its shortcut in `aria-keyshortcuts`. Undoing, redoing and rotating are announced to screen readers.
|
|
57
|
+
|
|
58
|
+
## Assets and Content Security Policy
|
|
59
|
+
|
|
60
|
+
The SDK runs two workers: pdf.js's, which renders, and one with qpdf and pdf-lib, which builds documents. Some documents also need extra data: CMaps for CJK text whose fonts aren't embedded, standard fonts, and decoders for JBIG2 and JPX images, which are common in scanned documents. The SDK never fetches any of them from another origin. Choose one of two modes ([ADR 0002](docs/adr/0002-workers-and-assets.md), [ADR 0006](docs/adr/0006-icc-colour-and-self-hosted-assets.md), [ADR 0007](docs/adr/0007-one-assets-directory.md)):
|
|
61
|
+
|
|
62
|
+
| | Inline (default) | Self-hosted |
|
|
63
|
+
|---|---|---|
|
|
64
|
+
| Setup | Nothing | Serve `node_modules/@hussmartinez/pdf-sdk/dist/assets/` from your origin, and pass its URL to both: `createPdfJsEngine({ assetsUrl: "/pdf-sdk/" })` and `createPdfProcessor({ assetsUrl: "/pdf-sdk/" })` |
|
|
65
|
+
| Where files come from | Your bundle: the workers are inlined, and each data file is its own lazy chunk, loaded only by documents that need it | Your origin, under `assetsUrl`: `pdfjs/` and `processing/` |
|
|
66
|
+
| CMYK and ICC-based colour | Approximate | Accurate, with pdf.js's colour management |
|
|
67
|
+
| Content Security Policy | `worker-src blob:` and `script-src 'wasm-unsafe-eval'` | `worker-src 'self'`, `script-src 'self' 'wasm-unsafe-eval'` and `connect-src 'self'` |
|
|
68
|
+
|
|
69
|
+
**Which to choose:**
|
|
70
|
+
- **Inline** for the simplest setup. Most documents use RGB or grey and look the same in both modes.
|
|
71
|
+
- **Self-hosted** if your Content Security Policy doesn't allow `blob:` workers, or if print colour must be accurate, for example for proofs and CMYK artwork.
|
|
72
|
+
|
|
73
|
+
**In self-hosted mode, copy the whole directory again whenever you upgrade the package.** A worker left over from another version is refused with `WORKER_START_FAILED`, whose `details` name the file and both versions, `{ asset, expected, actual }`: the processing worker checks the package's version, pdf.js checks its own, and the processing worker also refuses a `qpdf.wasm` from another version.
|
|
74
|
+
|
|
75
|
+
`assetsUrl` can be absolute or relative to the page, such as `/pdf-sdk/`. `PdfEditor` and `PdfSessionProvider` render on a server with a relative one: they create their engine and processor only when they're first used, in the browser. A URL with a query or a fragment is refused, because the files resolved from it would lose them: the components throw `TypeError` as they render, and `createPdfJsEngine` and `createPdfProcessor`, called directly, throw it when you call them, as they do for a relative URL where there's no page to resolve it against.
|
|
76
|
+
|
|
77
|
+
## Development
|
|
78
|
+
|
|
79
|
+
The repository root is the published package, laid out as in the family's [standard layout](https://github.com/ie-huss-martinez/sdk-core/blob/main/STANDARDS.md#repository-layout): the source is in [`src`](src), and the pnpm workspace adds the examples in [`examples`](examples) and the end-to-end tests in [`e2e`](e2e) ([sdk-core ADR 0039](https://github.com/ie-huss-martinez/sdk-core/blob/main/docs/adr/0039-test-applications-in-each-repository.md)).
|
|
80
|
+
|
|
81
|
+
You need Node 24 (see [`.node-version`](.node-version)) and pnpm. The exact pnpm version is pinned in `package.json`, and pnpm switches to it automatically.
|
|
82
|
+
|
|
83
|
+
```sh
|
|
84
|
+
pnpm install # also installs the git hooks
|
|
85
|
+
pnpm verify # everything CI runs
|
|
86
|
+
pnpm verify:fast # the subset the pre-push hook runs
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
The examples use the built package as an application would: [`examples/next`](examples/next) renders the editor in a Next.js App Router Server Component, and [`examples/vite`](examples/vite) has one page per asset mode, each under the Content Security Policy this README gives for it. The plain HTML example joins them with the standalone script.
|
|
90
|
+
|
|
91
|
+
Browser tests need Playwright's browsers once: `pnpm exec playwright install chromium`, plus `firefox webkit` to run all three engines with `CI=1` or `pnpm test:browser:all`.
|
|
92
|
+
|
|
93
|
+
`pnpm verify` runs, in order:
|
|
94
|
+
|
|
95
|
+
| Step | Script | Tool |
|
|
96
|
+
|---|---|---|
|
|
97
|
+
| Format and lint | `lint` | Biome |
|
|
98
|
+
| CSS rules | `lint:css` | stylelint, with the `hm-` namespace and token rules |
|
|
99
|
+
| Types | `typecheck` | TypeScript |
|
|
100
|
+
| Dependency rules | `lint:deps` | dependency-cruiser, through `hm-lint-deps` |
|
|
101
|
+
| Build | `build` | Vite, then api-extractor for the type declarations |
|
|
102
|
+
| Unit tests | `test` | Vitest |
|
|
103
|
+
| Browser tests | `test:browser` | Vitest in Chromium, and in Firefox and WebKit too in CI |
|
|
104
|
+
| Examples | `build:examples` | Production builds of the Next.js and Vite examples, against the built package |
|
|
105
|
+
| End-to-end tests | `test:e2e` | Playwright against the examples: server rendering and hydration, axe, no foreign requests, and both asset modes under the Content Security Policies above |
|
|
106
|
+
| Size budgets | `check:size` | size-limit, brotli size of each entry point |
|
|
107
|
+
| API reports | `check:api` | api-extractor, one report per entry point in [`api`](api), and `hm-check-api-reports` across them |
|
|
108
|
+
| Package checks | `check:package` | publint and Are the Types Wrong? |
|
|
109
|
+
|
|
110
|
+
The configuration extends the shared presets in [`@hussmartinez/sdk-config`](https://www.npmjs.com/package/@hussmartinez/sdk-config). The git hooks ([ADR 0016](https://github.com/ie-huss-martinez/sdk-core/blob/main/docs/adr/0016-git-hooks-and-merge-guards.md)) run automatically: a secret scan and lint of staged files on commit, a Conventional Commits check of the message, and `pnpm verify:fast` on push.
|
|
111
|
+
|
|
112
|
+
When a change alters the public API on purpose, update the reports with `pnpm api:update` and commit them. api-extractor rolls up one entry point per run, so the React and element entries' declarations carry copies of the core types their APIs use, such as `PdfSession`. Their reports list those copies, and `hm-check-api-reports` from [`@hussmartinez/sdk-config`](https://www.npmjs.com/package/@hussmartinez/sdk-config) then checks that the core entry exports every one of them, and that none is a class with private members, whose copy TypeScript would treat as a different type. All three configurations extend sdk-config's api-extractor preset.
|
|
113
|
+
|
|
114
|
+
## Contributing
|
|
115
|
+
|
|
116
|
+
Read [`CONTRIBUTING.md`](CONTRIBUTING.md) before opening a pull request. Coding agents also start with [`AGENTS.md`](AGENTS.md). Everyone taking part follows the [code of conduct](CODE_OF_CONDUCT.md). Report vulnerabilities privately, as described in the [security policy](SECURITY.md).
|
|
117
|
+
|
|
118
|
+
## License
|
|
119
|
+
|
|
120
|
+
[Apache-2.0](LICENSE)
|