dash-pdf-components 0.1.0__tar.gz
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.
- dash_pdf_components-0.1.0/LICENSE +21 -0
- dash_pdf_components-0.1.0/MANIFEST.in +6 -0
- dash_pdf_components-0.1.0/PKG-INFO +88 -0
- dash_pdf_components-0.1.0/README.md +74 -0
- dash_pdf_components-0.1.0/dash_pdf_components/Document.py +373 -0
- dash_pdf_components-0.1.0/dash_pdf_components/Outline.py +195 -0
- dash_pdf_components-0.1.0/dash_pdf_components/PDF.py +482 -0
- dash_pdf_components-0.1.0/dash_pdf_components/Page.py +335 -0
- dash_pdf_components-0.1.0/dash_pdf_components/Thumbnail.py +298 -0
- dash_pdf_components-0.1.0/dash_pdf_components/__init__.py +59 -0
- dash_pdf_components-0.1.0/dash_pdf_components/_imports_.py +13 -0
- dash_pdf_components-0.1.0/dash_pdf_components/dash_pdf_components.js +1 -0
- dash_pdf_components-0.1.0/dash_pdf_components/metadata.json +1 -0
- dash_pdf_components-0.1.0/dash_pdf_components/package-info.json +55 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/build/pdf.worker.min.mjs +22 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/78-EUC-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/78-EUC-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/78-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/78-RKSJ-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/78-RKSJ-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/78-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/78ms-RKSJ-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/78ms-RKSJ-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/83pv-RKSJ-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/90ms-RKSJ-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/90ms-RKSJ-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/90msp-RKSJ-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/90msp-RKSJ-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/90pv-RKSJ-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/90pv-RKSJ-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Add-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Add-RKSJ-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Add-RKSJ-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Add-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-CNS1-0.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-CNS1-1.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-CNS1-2.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-CNS1-3.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-CNS1-4.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-CNS1-5.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-CNS1-6.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-GB1-0.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-GB1-1.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-GB1-2.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-GB1-3.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-GB1-4.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-GB1-5.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-Japan1-0.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-Japan1-1.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-Japan1-2.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-Japan1-3.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-Japan1-4.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-Japan1-5.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-Japan1-6.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-Korea1-0.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-Korea1-1.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-Korea1-2.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/B5-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/B5-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/B5pc-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/B5pc-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/CNS-EUC-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/CNS-EUC-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/CNS1-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/CNS1-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/CNS2-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/CNS2-V.bcmap +3 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/ETHK-B5-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/ETHK-B5-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/ETen-B5-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/ETen-B5-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/ETenms-B5-H.bcmap +3 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/ETenms-B5-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/EUC-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/EUC-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Ext-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Ext-RKSJ-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Ext-RKSJ-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Ext-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/GB-EUC-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/GB-EUC-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/GB-H.bcmap +4 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/GB-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/GBK-EUC-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/GBK-EUC-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/GBK2K-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/GBK2K-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/GBKp-EUC-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/GBKp-EUC-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/GBT-EUC-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/GBT-EUC-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/GBT-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/GBT-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/GBTpc-EUC-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/GBTpc-EUC-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/GBpc-EUC-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/GBpc-EUC-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/HKdla-B5-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/HKdla-B5-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/HKdlb-B5-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/HKdlb-B5-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/HKgccs-B5-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/HKgccs-B5-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/HKm314-B5-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/HKm314-B5-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/HKm471-B5-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/HKm471-B5-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/HKscs-B5-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/HKscs-B5-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Hankaku.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Hiragana.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/KSC-EUC-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/KSC-EUC-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/KSC-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/KSC-Johab-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/KSC-Johab-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/KSC-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/KSCms-UHC-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/KSCms-UHC-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/KSCpc-EUC-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/KSCpc-EUC-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Katakana.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/LICENSE +36 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/NWP-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/NWP-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/RKSJ-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/RKSJ-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/Roman.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniCNS-UCS2-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniCNS-UCS2-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniCNS-UTF16-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniCNS-UTF16-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniCNS-UTF32-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniCNS-UTF32-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniCNS-UTF8-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniCNS-UTF8-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniGB-UCS2-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniGB-UCS2-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniGB-UTF16-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniGB-UTF16-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniGB-UTF32-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniGB-UTF32-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniGB-UTF8-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniGB-UTF8-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJIS-UCS2-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJIS-UCS2-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJIS-UTF16-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJIS-UTF16-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJIS-UTF32-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJIS-UTF32-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJIS-UTF8-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJIS-UTF8-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniKS-UCS2-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniKS-UCS2-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniKS-UTF16-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniKS-UTF16-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniKS-UTF32-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniKS-UTF32-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniKS-UTF8-H.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/UniKS-UTF8-V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/V.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/cmaps/WP-Symbol.bcmap +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/iccs/CGATS001Compat-v2-micro.icc +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/iccs/LICENSE +116 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/standard_fonts/FoxitDingbats.pfb +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/standard_fonts/FoxitFixed.pfb +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/standard_fonts/FoxitFixedBold.pfb +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/standard_fonts/FoxitFixedItalic.pfb +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/standard_fonts/FoxitSerif.pfb +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/standard_fonts/FoxitSerifBold.pfb +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/standard_fonts/FoxitSerifItalic.pfb +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/standard_fonts/FoxitSymbol.pfb +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/standard_fonts/LICENSE_FOXIT +27 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/standard_fonts/LICENSE_LIBERATION +102 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/standard_fonts/LiberationSans-Bold.ttf +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/standard_fonts/LiberationSans-Italic.ttf +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/standard_fonts/LiberationSans-Regular.ttf +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/wasm/LICENSE_OPENJPEG +39 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/wasm/LICENSE_PDFJS_QCMS +22 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/wasm/LICENSE_QCMS +21 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/wasm/openjpeg.wasm +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/wasm/openjpeg_nowasm_fallback.js +1 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/wasm/qcms_bg.wasm +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/altText_add.svg +3 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/altText_disclaimer.svg +3 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/altText_done.svg +3 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/altText_spinner.svg +30 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/altText_warning.svg +3 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/annotation-check.svg +11 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/annotation-comment.svg +16 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/annotation-help.svg +26 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/annotation-insert.svg +10 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/annotation-key.svg +11 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/annotation-newparagraph.svg +11 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/annotation-noicon.svg +7 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/annotation-note.svg +42 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/annotation-paperclip.svg +6 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/annotation-paragraph.svg +16 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/annotation-pushpin.svg +7 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/comment-actionsButton.svg +3 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/comment-closeButton.svg +3 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/comment-editButton.svg +8 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/comment-popup-editButton.svg +5 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/cursor-editorFreeHighlight.svg +6 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/cursor-editorFreeText.svg +3 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/cursor-editorInk.svg +4 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/cursor-editorTextHighlight.svg +8 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/editor-toolbar-delete.svg +5 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/editor-toolbar-edit.svg +3 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/loading-icon.gif +0 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/messageBar_closingButton.svg +3 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/messageBar_info.svg +3 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/messageBar_warning.svg +3 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/toolbarButton-editorHighlight.svg +6 -0
- dash_pdf_components-0.1.0/dash_pdf_components/pdfjs/web/images/toolbarButton-menuArrow.svg +3 -0
- dash_pdf_components-0.1.0/dash_pdf_components/proptypes.js +170 -0
- dash_pdf_components-0.1.0/dash_pdf_components.egg-info/PKG-INFO +88 -0
- dash_pdf_components-0.1.0/dash_pdf_components.egg-info/SOURCES.txt +247 -0
- dash_pdf_components-0.1.0/dash_pdf_components.egg-info/dependency_links.txt +1 -0
- dash_pdf_components-0.1.0/dash_pdf_components.egg-info/requires.txt +1 -0
- dash_pdf_components-0.1.0/dash_pdf_components.egg-info/top_level.txt +1 -0
- dash_pdf_components-0.1.0/pyproject.toml +45 -0
- dash_pdf_components-0.1.0/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ethan Zhang
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: dash-pdf-components
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: React-PDF rendering components for Plotly Dash
|
|
5
|
+
Author-email: C0deBeez <ethan.zhang2016@gmail.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Classifier: Framework :: Dash
|
|
8
|
+
Classifier: Framework :: Flask
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Dist: dash>=2.0.0
|
|
13
|
+
Dynamic: license-file
|
|
14
|
+
|
|
15
|
+
# dash-pdf-components
|
|
16
|
+
|
|
17
|
+
Lightweight React-PDF rendering components for Plotly Dash.
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
uv add dash-pdf-components
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
For the common single-page viewer, use `PDF`:
|
|
24
|
+
|
|
25
|
+
```python
|
|
26
|
+
import dash_pdf_components as dpc
|
|
27
|
+
|
|
28
|
+
dpc.PDF(
|
|
29
|
+
id="pdf",
|
|
30
|
+
file="/assets/document.pdf",
|
|
31
|
+
pageNumber=1,
|
|
32
|
+
width=720,
|
|
33
|
+
)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
`PDF` combines document loading and one rendered page. Navigation controls can update `PDF.pageNumber`, `PDF.scale`, and `PDF.rotate`; callbacks can read `PDF.numPages`, `PDF.loadProgress`, `PDF.pageData`, `PDF.renderData`, and `PDF.errorData` from the same component.
|
|
37
|
+
|
|
38
|
+
## API
|
|
39
|
+
|
|
40
|
+
Use the smallest API that fits the layout:
|
|
41
|
+
|
|
42
|
+
| Component | Use case |
|
|
43
|
+
| --- | --- |
|
|
44
|
+
| `PDF` | Default single-page viewer and callback target |
|
|
45
|
+
| `Document` | Shared PDF context for custom or continuous layouts |
|
|
46
|
+
| `Page` | One page inside `Document` |
|
|
47
|
+
| `Thumbnail` | Clickable page preview inside `Document` |
|
|
48
|
+
| `Outline` | PDF table of contents inside `Document` |
|
|
49
|
+
|
|
50
|
+
`PDF` accepts the commonly used React-PDF options directly: `file`, `pageNumber`, `width`, `height`, `scale`, `rotate`, `renderTextLayer`, `renderAnnotationLayer`, `renderForms`, `loading`, `error`, and `noData`. Advanced PDF.js loading options remain available through `options`, `assetBaseUrl`, and `workerSrc`.
|
|
51
|
+
|
|
52
|
+
Use the composable API only when the layout needs multiple pages, thumbnails, or an outline:
|
|
53
|
+
|
|
54
|
+
```python
|
|
55
|
+
dpc.Document(
|
|
56
|
+
[
|
|
57
|
+
dpc.Outline(),
|
|
58
|
+
dpc.Thumbnail(pageNumber=1, width=120),
|
|
59
|
+
dpc.Page(pageNumber=1),
|
|
60
|
+
dpc.Page(pageNumber=2),
|
|
61
|
+
],
|
|
62
|
+
file="/assets/document.pdf",
|
|
63
|
+
)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
The package intentionally has no toolbar, theme system, locale system, or Ant Design dependency. Build navigation, zoom, rotation, and download controls with ordinary Dash components. See [`usage.py`](usage.py) for a complete example.
|
|
67
|
+
|
|
68
|
+
React-PDF uses PDF.js internally. The matching Worker, character maps, standard fonts, WASM, ICC profiles, and annotation images load from this package by default. Set `assetBaseUrl` on `PDF` or `Document` to replace them with a version-matched CDN:
|
|
69
|
+
|
|
70
|
+
```python
|
|
71
|
+
dpc.PDF(
|
|
72
|
+
file="/assets/document.pdf",
|
|
73
|
+
assetBaseUrl="https://registry.npmmirror.com/pdfjs-dist/5.4.296/files/",
|
|
74
|
+
)
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
`workerSrc`, `imageResourcesPath`, and individual `options` values such as `cMapUrl`, `standardFontDataUrl`, `wasmUrl`, and `iccUrl` override the defaults. These options are also available on `Document`.
|
|
78
|
+
|
|
79
|
+
Internal PDF links navigate automatically. `PDF` and a single rendered `Page` switch to the destination page, while documents rendering multiple pages scroll to the mounted destination. `itemClickData` remains available for observing navigation.
|
|
80
|
+
|
|
81
|
+
## Development
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
pnpm install
|
|
85
|
+
uv sync
|
|
86
|
+
pnpm build
|
|
87
|
+
uv build --no-sources
|
|
88
|
+
```
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# dash-pdf-components
|
|
2
|
+
|
|
3
|
+
Lightweight React-PDF rendering components for Plotly Dash.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
uv add dash-pdf-components
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
For the common single-page viewer, use `PDF`:
|
|
10
|
+
|
|
11
|
+
```python
|
|
12
|
+
import dash_pdf_components as dpc
|
|
13
|
+
|
|
14
|
+
dpc.PDF(
|
|
15
|
+
id="pdf",
|
|
16
|
+
file="/assets/document.pdf",
|
|
17
|
+
pageNumber=1,
|
|
18
|
+
width=720,
|
|
19
|
+
)
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
`PDF` combines document loading and one rendered page. Navigation controls can update `PDF.pageNumber`, `PDF.scale`, and `PDF.rotate`; callbacks can read `PDF.numPages`, `PDF.loadProgress`, `PDF.pageData`, `PDF.renderData`, and `PDF.errorData` from the same component.
|
|
23
|
+
|
|
24
|
+
## API
|
|
25
|
+
|
|
26
|
+
Use the smallest API that fits the layout:
|
|
27
|
+
|
|
28
|
+
| Component | Use case |
|
|
29
|
+
| --- | --- |
|
|
30
|
+
| `PDF` | Default single-page viewer and callback target |
|
|
31
|
+
| `Document` | Shared PDF context for custom or continuous layouts |
|
|
32
|
+
| `Page` | One page inside `Document` |
|
|
33
|
+
| `Thumbnail` | Clickable page preview inside `Document` |
|
|
34
|
+
| `Outline` | PDF table of contents inside `Document` |
|
|
35
|
+
|
|
36
|
+
`PDF` accepts the commonly used React-PDF options directly: `file`, `pageNumber`, `width`, `height`, `scale`, `rotate`, `renderTextLayer`, `renderAnnotationLayer`, `renderForms`, `loading`, `error`, and `noData`. Advanced PDF.js loading options remain available through `options`, `assetBaseUrl`, and `workerSrc`.
|
|
37
|
+
|
|
38
|
+
Use the composable API only when the layout needs multiple pages, thumbnails, or an outline:
|
|
39
|
+
|
|
40
|
+
```python
|
|
41
|
+
dpc.Document(
|
|
42
|
+
[
|
|
43
|
+
dpc.Outline(),
|
|
44
|
+
dpc.Thumbnail(pageNumber=1, width=120),
|
|
45
|
+
dpc.Page(pageNumber=1),
|
|
46
|
+
dpc.Page(pageNumber=2),
|
|
47
|
+
],
|
|
48
|
+
file="/assets/document.pdf",
|
|
49
|
+
)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
The package intentionally has no toolbar, theme system, locale system, or Ant Design dependency. Build navigation, zoom, rotation, and download controls with ordinary Dash components. See [`usage.py`](usage.py) for a complete example.
|
|
53
|
+
|
|
54
|
+
React-PDF uses PDF.js internally. The matching Worker, character maps, standard fonts, WASM, ICC profiles, and annotation images load from this package by default. Set `assetBaseUrl` on `PDF` or `Document` to replace them with a version-matched CDN:
|
|
55
|
+
|
|
56
|
+
```python
|
|
57
|
+
dpc.PDF(
|
|
58
|
+
file="/assets/document.pdf",
|
|
59
|
+
assetBaseUrl="https://registry.npmmirror.com/pdfjs-dist/5.4.296/files/",
|
|
60
|
+
)
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
`workerSrc`, `imageResourcesPath`, and individual `options` values such as `cMapUrl`, `standardFontDataUrl`, `wasmUrl`, and `iccUrl` override the defaults. These options are also available on `Document`.
|
|
64
|
+
|
|
65
|
+
Internal PDF links navigate automatically. `PDF` and a single rendered `Page` switch to the destination page, while documents rendering multiple pages scroll to the mounted destination. `itemClickData` remains available for observing navigation.
|
|
66
|
+
|
|
67
|
+
## Development
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
pnpm install
|
|
71
|
+
uv sync
|
|
72
|
+
pnpm build
|
|
73
|
+
uv build --no-sources
|
|
74
|
+
```
|
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
5
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
6
|
+
try:
|
|
7
|
+
from dash.types import NumberType # noqa: F401
|
|
8
|
+
except ImportError:
|
|
9
|
+
# Backwards compatibility for dash<=4.1.0
|
|
10
|
+
if typing.TYPE_CHECKING:
|
|
11
|
+
raise
|
|
12
|
+
NumberType = typing.Union[ # noqa: F401
|
|
13
|
+
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
PDFUrlType = TypedDict(
|
|
17
|
+
"PDFUrlType",
|
|
18
|
+
{"url": str},
|
|
19
|
+
)
|
|
20
|
+
PDFDataType = TypedDict(
|
|
21
|
+
"PDFDataType",
|
|
22
|
+
{"data": typing.Sequence[NumberType]},
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
ComponentSingleType = typing.Union[str, int, float, Component, None]
|
|
27
|
+
ComponentType = typing.Union[
|
|
28
|
+
ComponentSingleType,
|
|
29
|
+
typing.Sequence[ComponentSingleType],
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class Document(Component):
|
|
34
|
+
"""A Document component.
|
|
35
|
+
Loads a PDF and provides React-PDF document context to Page, Thumbnail, and Outline children.
|
|
36
|
+
|
|
37
|
+
Keyword arguments:
|
|
38
|
+
|
|
39
|
+
- children (a list of or a singular dash component, string or number; optional):
|
|
40
|
+
Page, Thumbnail, or Outline components rendered inside the
|
|
41
|
+
document context.
|
|
42
|
+
|
|
43
|
+
- id (string; optional):
|
|
44
|
+
Unique ID to identify this component in Dash callbacks.
|
|
45
|
+
|
|
46
|
+
- aria-* (string; optional):
|
|
47
|
+
Wild card aria attributes.
|
|
48
|
+
|
|
49
|
+
- assetBaseUrl (string; optional):
|
|
50
|
+
Base URL containing the pdfjs-dist package directories. Defaults
|
|
51
|
+
to assets installed with this package. Set this to a
|
|
52
|
+
version-matched CDN root to replace all auxiliary assets.
|
|
53
|
+
|
|
54
|
+
- className (string; optional):
|
|
55
|
+
className of the component.
|
|
56
|
+
|
|
57
|
+
- data-* (string; optional):
|
|
58
|
+
Wild card data attributes.
|
|
59
|
+
|
|
60
|
+
- dir (a value equal to: 'ltr', 'rtl', 'auto'; optional):
|
|
61
|
+
Text direction applied to the root element.
|
|
62
|
+
|
|
63
|
+
- error (a list of or a singular dash component, string or number; optional):
|
|
64
|
+
Content displayed when the React-PDF component fails.
|
|
65
|
+
|
|
66
|
+
- errorData (dict; optional):
|
|
67
|
+
Latest document or source error. Read-only.
|
|
68
|
+
|
|
69
|
+
`errorData` is a dict with keys:
|
|
70
|
+
|
|
71
|
+
- stage (string; required):
|
|
72
|
+
Operation that failed.
|
|
73
|
+
|
|
74
|
+
- name (string; required):
|
|
75
|
+
JavaScript error name.
|
|
76
|
+
|
|
77
|
+
- message (string; required):
|
|
78
|
+
Human-readable error message.
|
|
79
|
+
|
|
80
|
+
- externalLinkRel (string; optional):
|
|
81
|
+
Link rel used by external links in annotations. Defaults to
|
|
82
|
+
noopener noreferrer nofollow.
|
|
83
|
+
|
|
84
|
+
- externalLinkTarget (a value equal to: '_self', '_blank', '_parent', '_top'; optional):
|
|
85
|
+
Link target used by external links in annotations.
|
|
86
|
+
|
|
87
|
+
- file (dict; optional):
|
|
88
|
+
PDF source: URL, base64 data URI, or an object containing url or
|
|
89
|
+
byte-array data. None clears the document. Cross-origin URLs
|
|
90
|
+
require CORS.
|
|
91
|
+
|
|
92
|
+
`file` is a string | dict with keys:
|
|
93
|
+
|
|
94
|
+
- data (list of numbers; required):
|
|
95
|
+
PDF bytes as a JSON array of integers from 0 to 255.
|
|
96
|
+
|
|
97
|
+
- hidden (boolean; optional):
|
|
98
|
+
Whether the root element is hidden.
|
|
99
|
+
|
|
100
|
+
- imageResourcesPath (string; optional):
|
|
101
|
+
Path prefixed to annotation image URLs. Defaults to the package
|
|
102
|
+
annotation image directory.
|
|
103
|
+
|
|
104
|
+
- itemClickData (dict; optional):
|
|
105
|
+
Latest internal-link, Outline, or Thumbnail navigation event.
|
|
106
|
+
Navigation is handled automatically; use this read-only value to
|
|
107
|
+
observe it.
|
|
108
|
+
|
|
109
|
+
`itemClickData` is a dict with keys:
|
|
110
|
+
|
|
111
|
+
- pageIndex (number; required):
|
|
112
|
+
Zero-based destination page index.
|
|
113
|
+
|
|
114
|
+
- pageNumber (number; required):
|
|
115
|
+
One-based destination page number.
|
|
116
|
+
|
|
117
|
+
- timestamp (number; required):
|
|
118
|
+
Event timestamp in milliseconds. Allows repeated clicks on the
|
|
119
|
+
same item to trigger Dash callbacks.
|
|
120
|
+
|
|
121
|
+
- key (string | number; optional):
|
|
122
|
+
A unique identifier for the component, used to improve performance
|
|
123
|
+
by React.js while rendering components. See
|
|
124
|
+
https://reactjs.org/docs/lists-and-keys.html for more info.
|
|
125
|
+
|
|
126
|
+
- lang (string; optional):
|
|
127
|
+
Language applied to the root element.
|
|
128
|
+
|
|
129
|
+
- loadData (dict; optional):
|
|
130
|
+
Loaded document metadata. Read-only.
|
|
131
|
+
|
|
132
|
+
`loadData` is a dict with keys:
|
|
133
|
+
|
|
134
|
+
- numPages (number; required):
|
|
135
|
+
Number of pages in the loaded document.
|
|
136
|
+
|
|
137
|
+
- fingerprints (list of strings; required):
|
|
138
|
+
PDF fingerprints when available.
|
|
139
|
+
|
|
140
|
+
- loadProgress (dict; optional):
|
|
141
|
+
Latest loading progress. Read-only.
|
|
142
|
+
|
|
143
|
+
`loadProgress` is a dict with keys:
|
|
144
|
+
|
|
145
|
+
- loaded (number; required):
|
|
146
|
+
Number of bytes loaded.
|
|
147
|
+
|
|
148
|
+
- total (number; required):
|
|
149
|
+
Total number of bytes, when known.
|
|
150
|
+
|
|
151
|
+
- loading (a list of or a singular dash component, string or number; optional):
|
|
152
|
+
Content displayed while the React-PDF component is loading.
|
|
153
|
+
|
|
154
|
+
- loading_state (dict; optional):
|
|
155
|
+
Object that holds the loading state object coming from
|
|
156
|
+
dash-renderer.
|
|
157
|
+
|
|
158
|
+
`loading_state` is a dict with keys:
|
|
159
|
+
|
|
160
|
+
- is_loading (boolean; required):
|
|
161
|
+
Determines if the component is loading or not.
|
|
162
|
+
|
|
163
|
+
- prop_name (string; required):
|
|
164
|
+
Holds which property is loading.
|
|
165
|
+
|
|
166
|
+
- component_name (string; required):
|
|
167
|
+
Holds the name of the component that is loading.
|
|
168
|
+
|
|
169
|
+
- noData (a list of or a singular dash component, string or number; optional):
|
|
170
|
+
Content displayed when no document or page is provided.
|
|
171
|
+
|
|
172
|
+
- numPages (number; optional):
|
|
173
|
+
Number of pages in the loaded document. Read-only.
|
|
174
|
+
|
|
175
|
+
- options (dict; optional):
|
|
176
|
+
JSON-safe React-PDF Document options. Package-local CMaps,
|
|
177
|
+
standard fonts, WASM, ICC profiles, and annotation images are
|
|
178
|
+
supplied by default.
|
|
179
|
+
|
|
180
|
+
`options` is a dict with keys:
|
|
181
|
+
|
|
182
|
+
- cMapUrl (string; optional):
|
|
183
|
+
URL of the predefined Adobe CMaps directory.
|
|
184
|
+
|
|
185
|
+
- cMapPacked (boolean; optional):
|
|
186
|
+
Whether CMaps are binary packed. Defaults to True when package
|
|
187
|
+
assets are used.
|
|
188
|
+
|
|
189
|
+
- standardFontDataUrl (string; optional):
|
|
190
|
+
URL of the standard PDF fonts directory.
|
|
191
|
+
|
|
192
|
+
- wasmUrl (string; optional):
|
|
193
|
+
URL of the WebAssembly support files directory.
|
|
194
|
+
|
|
195
|
+
- iccUrl (string; optional):
|
|
196
|
+
URL of the ICC color profiles directory.
|
|
197
|
+
|
|
198
|
+
- httpHeaders (dict; optional):
|
|
199
|
+
HTTP headers sent while loading the document.
|
|
200
|
+
|
|
201
|
+
`httpHeaders` is a dict with keys:
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
- withCredentials (boolean; optional):
|
|
205
|
+
Whether cross-origin requests include credentials. Defaults to
|
|
206
|
+
False.
|
|
207
|
+
|
|
208
|
+
- password (string; optional):
|
|
209
|
+
Password used to open an encrypted PDF.
|
|
210
|
+
|
|
211
|
+
- isEvalSupported (boolean; optional):
|
|
212
|
+
Disable evaluation of embedded JavaScript expressions.
|
|
213
|
+
Defaults to False in this package.
|
|
214
|
+
|
|
215
|
+
- password (string; optional):
|
|
216
|
+
Password submitted after React-PDF requests one. It is not copied
|
|
217
|
+
into callback output properties.
|
|
218
|
+
|
|
219
|
+
- passwordData (dict; optional):
|
|
220
|
+
Latest password challenge. Read-only.
|
|
221
|
+
|
|
222
|
+
`passwordData` is a dict with keys:
|
|
223
|
+
|
|
224
|
+
- reason (a value equal to: 'need-password', 'incorrect-password'; required):
|
|
225
|
+
Password challenge reported by PDF.js.
|
|
226
|
+
|
|
227
|
+
- renderMode (a value equal to: 'canvas', 'none'; optional):
|
|
228
|
+
Document rendering mode. Custom render functions are not
|
|
229
|
+
JSON-safe, so Dash supports canvas and none. Defaults to canvas.
|
|
230
|
+
|
|
231
|
+
- role (string; optional):
|
|
232
|
+
ARIA role applied to the root element.
|
|
233
|
+
|
|
234
|
+
- rotate (number; optional):
|
|
235
|
+
Global document rotation in degrees.
|
|
236
|
+
|
|
237
|
+
- scale (number; optional):
|
|
238
|
+
Global document scale. Defaults to 1.
|
|
239
|
+
|
|
240
|
+
- sourceLoaded (boolean; optional):
|
|
241
|
+
Whether React-PDF retrieved the current source. Read-only.
|
|
242
|
+
|
|
243
|
+
- tabIndex (number; optional):
|
|
244
|
+
Tab index.
|
|
245
|
+
|
|
246
|
+
- workerSrc (string; optional):
|
|
247
|
+
PDF.js module Worker URL. Defaults to the Worker installed with
|
|
248
|
+
this package."""
|
|
249
|
+
_children_props: typing.List[str] = ['loading', 'error', 'noData']
|
|
250
|
+
_base_nodes = ['loading', 'error', 'noData', 'children']
|
|
251
|
+
_namespace = 'dash_pdf_components'
|
|
252
|
+
_type = 'Document'
|
|
253
|
+
OptionsHttpHeaders = TypedDict(
|
|
254
|
+
"OptionsHttpHeaders",
|
|
255
|
+
{
|
|
256
|
+
|
|
257
|
+
}
|
|
258
|
+
)
|
|
259
|
+
|
|
260
|
+
Options = TypedDict(
|
|
261
|
+
"Options",
|
|
262
|
+
{
|
|
263
|
+
"cMapUrl": NotRequired[str],
|
|
264
|
+
"cMapPacked": NotRequired[bool],
|
|
265
|
+
"standardFontDataUrl": NotRequired[str],
|
|
266
|
+
"wasmUrl": NotRequired[str],
|
|
267
|
+
"iccUrl": NotRequired[str],
|
|
268
|
+
"httpHeaders": NotRequired["OptionsHttpHeaders"],
|
|
269
|
+
"withCredentials": NotRequired[bool],
|
|
270
|
+
"password": NotRequired[str],
|
|
271
|
+
"isEvalSupported": NotRequired[bool]
|
|
272
|
+
}
|
|
273
|
+
)
|
|
274
|
+
|
|
275
|
+
LoadData = TypedDict(
|
|
276
|
+
"LoadData",
|
|
277
|
+
{
|
|
278
|
+
"numPages": NumberType,
|
|
279
|
+
"fingerprints": typing.Sequence[str]
|
|
280
|
+
}
|
|
281
|
+
)
|
|
282
|
+
|
|
283
|
+
LoadProgress = TypedDict(
|
|
284
|
+
"LoadProgress",
|
|
285
|
+
{
|
|
286
|
+
"loaded": NumberType,
|
|
287
|
+
"total": NumberType
|
|
288
|
+
}
|
|
289
|
+
)
|
|
290
|
+
|
|
291
|
+
ErrorData = TypedDict(
|
|
292
|
+
"ErrorData",
|
|
293
|
+
{
|
|
294
|
+
"stage": str,
|
|
295
|
+
"name": str,
|
|
296
|
+
"message": str
|
|
297
|
+
}
|
|
298
|
+
)
|
|
299
|
+
|
|
300
|
+
PasswordData = TypedDict(
|
|
301
|
+
"PasswordData",
|
|
302
|
+
{
|
|
303
|
+
"reason": Literal["need-password", "incorrect-password"]
|
|
304
|
+
}
|
|
305
|
+
)
|
|
306
|
+
|
|
307
|
+
ItemClickData = TypedDict(
|
|
308
|
+
"ItemClickData",
|
|
309
|
+
{
|
|
310
|
+
"pageIndex": NumberType,
|
|
311
|
+
"pageNumber": NumberType,
|
|
312
|
+
"timestamp": NumberType
|
|
313
|
+
}
|
|
314
|
+
)
|
|
315
|
+
|
|
316
|
+
LoadingState = TypedDict(
|
|
317
|
+
"LoadingState",
|
|
318
|
+
{
|
|
319
|
+
"is_loading": bool,
|
|
320
|
+
"prop_name": str,
|
|
321
|
+
"component_name": str
|
|
322
|
+
}
|
|
323
|
+
)
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
def __init__(
|
|
327
|
+
self,
|
|
328
|
+
children: typing.Optional[ComponentType] = None,
|
|
329
|
+
file: typing.Optional[typing.Union[str, PDFUrlType, PDFDataType]] = None,
|
|
330
|
+
options: typing.Optional["Options"] = None,
|
|
331
|
+
assetBaseUrl: typing.Optional[str] = None,
|
|
332
|
+
workerSrc: typing.Optional[str] = None,
|
|
333
|
+
imageResourcesPath: typing.Optional[str] = None,
|
|
334
|
+
externalLinkRel: typing.Optional[str] = None,
|
|
335
|
+
externalLinkTarget: typing.Optional[Literal["_self", "_blank", "_parent", "_top"]] = None,
|
|
336
|
+
renderMode: typing.Optional[Literal["canvas", "none"]] = None,
|
|
337
|
+
rotate: typing.Optional[NumberType] = None,
|
|
338
|
+
scale: typing.Optional[NumberType] = None,
|
|
339
|
+
password: typing.Optional[str] = None,
|
|
340
|
+
numPages: typing.Optional[NumberType] = None,
|
|
341
|
+
loadData: typing.Optional["LoadData"] = None,
|
|
342
|
+
loadProgress: typing.Optional["LoadProgress"] = None,
|
|
343
|
+
sourceLoaded: typing.Optional[bool] = None,
|
|
344
|
+
errorData: typing.Optional["ErrorData"] = None,
|
|
345
|
+
passwordData: typing.Optional["PasswordData"] = None,
|
|
346
|
+
itemClickData: typing.Optional["ItemClickData"] = None,
|
|
347
|
+
loading: typing.Optional[ComponentType] = None,
|
|
348
|
+
error: typing.Optional[ComponentType] = None,
|
|
349
|
+
noData: typing.Optional[ComponentType] = None,
|
|
350
|
+
id: typing.Optional[typing.Union[str, dict]] = None,
|
|
351
|
+
key: typing.Optional[typing.Union[str, NumberType]] = None,
|
|
352
|
+
style: typing.Optional[typing.Any] = None,
|
|
353
|
+
className: typing.Optional[str] = None,
|
|
354
|
+
tabIndex: typing.Optional[NumberType] = None,
|
|
355
|
+
role: typing.Optional[str] = None,
|
|
356
|
+
dir: typing.Optional[Literal["ltr", "rtl", "auto"]] = None,
|
|
357
|
+
lang: typing.Optional[str] = None,
|
|
358
|
+
hidden: typing.Optional[bool] = None,
|
|
359
|
+
loading_state: typing.Optional["LoadingState"] = None,
|
|
360
|
+
**kwargs
|
|
361
|
+
):
|
|
362
|
+
self._prop_names = ['children', 'id', 'aria-*', 'assetBaseUrl', 'className', 'data-*', 'dir', 'error', 'errorData', 'externalLinkRel', 'externalLinkTarget', 'file', 'hidden', 'imageResourcesPath', 'itemClickData', 'key', 'lang', 'loadData', 'loadProgress', 'loading', 'loading_state', 'noData', 'numPages', 'options', 'password', 'passwordData', 'renderMode', 'role', 'rotate', 'scale', 'sourceLoaded', 'style', 'tabIndex', 'workerSrc']
|
|
363
|
+
self._valid_wildcard_attributes = ['data-', 'aria-']
|
|
364
|
+
self.available_properties = ['children', 'id', 'aria-*', 'assetBaseUrl', 'className', 'data-*', 'dir', 'error', 'errorData', 'externalLinkRel', 'externalLinkTarget', 'file', 'hidden', 'imageResourcesPath', 'itemClickData', 'key', 'lang', 'loadData', 'loadProgress', 'loading', 'loading_state', 'noData', 'numPages', 'options', 'password', 'passwordData', 'renderMode', 'role', 'rotate', 'scale', 'sourceLoaded', 'style', 'tabIndex', 'workerSrc']
|
|
365
|
+
self.available_wildcard_properties = ['data-', 'aria-']
|
|
366
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
367
|
+
_locals = locals()
|
|
368
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
369
|
+
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
370
|
+
|
|
371
|
+
super(Document, self).__init__(children=children, **args)
|
|
372
|
+
|
|
373
|
+
setattr(Document, "__init__", _explicitize_args(Document.__init__))
|