dash-pdf-components 0.1.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.
Files changed (231) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +74 -0
  3. package/dash_pdf_components/dash_pdf_components.js +1 -0
  4. package/dash_pdf_components/pdfjs/build/pdf.worker.min.mjs +22 -0
  5. package/dash_pdf_components/pdfjs/cmaps/78-EUC-H.bcmap +0 -0
  6. package/dash_pdf_components/pdfjs/cmaps/78-EUC-V.bcmap +0 -0
  7. package/dash_pdf_components/pdfjs/cmaps/78-H.bcmap +0 -0
  8. package/dash_pdf_components/pdfjs/cmaps/78-RKSJ-H.bcmap +0 -0
  9. package/dash_pdf_components/pdfjs/cmaps/78-RKSJ-V.bcmap +0 -0
  10. package/dash_pdf_components/pdfjs/cmaps/78-V.bcmap +0 -0
  11. package/dash_pdf_components/pdfjs/cmaps/78ms-RKSJ-H.bcmap +0 -0
  12. package/dash_pdf_components/pdfjs/cmaps/78ms-RKSJ-V.bcmap +0 -0
  13. package/dash_pdf_components/pdfjs/cmaps/83pv-RKSJ-H.bcmap +0 -0
  14. package/dash_pdf_components/pdfjs/cmaps/90ms-RKSJ-H.bcmap +0 -0
  15. package/dash_pdf_components/pdfjs/cmaps/90ms-RKSJ-V.bcmap +0 -0
  16. package/dash_pdf_components/pdfjs/cmaps/90msp-RKSJ-H.bcmap +0 -0
  17. package/dash_pdf_components/pdfjs/cmaps/90msp-RKSJ-V.bcmap +0 -0
  18. package/dash_pdf_components/pdfjs/cmaps/90pv-RKSJ-H.bcmap +0 -0
  19. package/dash_pdf_components/pdfjs/cmaps/90pv-RKSJ-V.bcmap +0 -0
  20. package/dash_pdf_components/pdfjs/cmaps/Add-H.bcmap +0 -0
  21. package/dash_pdf_components/pdfjs/cmaps/Add-RKSJ-H.bcmap +0 -0
  22. package/dash_pdf_components/pdfjs/cmaps/Add-RKSJ-V.bcmap +0 -0
  23. package/dash_pdf_components/pdfjs/cmaps/Add-V.bcmap +0 -0
  24. package/dash_pdf_components/pdfjs/cmaps/Adobe-CNS1-0.bcmap +0 -0
  25. package/dash_pdf_components/pdfjs/cmaps/Adobe-CNS1-1.bcmap +0 -0
  26. package/dash_pdf_components/pdfjs/cmaps/Adobe-CNS1-2.bcmap +0 -0
  27. package/dash_pdf_components/pdfjs/cmaps/Adobe-CNS1-3.bcmap +0 -0
  28. package/dash_pdf_components/pdfjs/cmaps/Adobe-CNS1-4.bcmap +0 -0
  29. package/dash_pdf_components/pdfjs/cmaps/Adobe-CNS1-5.bcmap +0 -0
  30. package/dash_pdf_components/pdfjs/cmaps/Adobe-CNS1-6.bcmap +0 -0
  31. package/dash_pdf_components/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  32. package/dash_pdf_components/pdfjs/cmaps/Adobe-GB1-0.bcmap +0 -0
  33. package/dash_pdf_components/pdfjs/cmaps/Adobe-GB1-1.bcmap +0 -0
  34. package/dash_pdf_components/pdfjs/cmaps/Adobe-GB1-2.bcmap +0 -0
  35. package/dash_pdf_components/pdfjs/cmaps/Adobe-GB1-3.bcmap +0 -0
  36. package/dash_pdf_components/pdfjs/cmaps/Adobe-GB1-4.bcmap +0 -0
  37. package/dash_pdf_components/pdfjs/cmaps/Adobe-GB1-5.bcmap +0 -0
  38. package/dash_pdf_components/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  39. package/dash_pdf_components/pdfjs/cmaps/Adobe-Japan1-0.bcmap +0 -0
  40. package/dash_pdf_components/pdfjs/cmaps/Adobe-Japan1-1.bcmap +0 -0
  41. package/dash_pdf_components/pdfjs/cmaps/Adobe-Japan1-2.bcmap +0 -0
  42. package/dash_pdf_components/pdfjs/cmaps/Adobe-Japan1-3.bcmap +0 -0
  43. package/dash_pdf_components/pdfjs/cmaps/Adobe-Japan1-4.bcmap +0 -0
  44. package/dash_pdf_components/pdfjs/cmaps/Adobe-Japan1-5.bcmap +0 -0
  45. package/dash_pdf_components/pdfjs/cmaps/Adobe-Japan1-6.bcmap +0 -0
  46. package/dash_pdf_components/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  47. package/dash_pdf_components/pdfjs/cmaps/Adobe-Korea1-0.bcmap +0 -0
  48. package/dash_pdf_components/pdfjs/cmaps/Adobe-Korea1-1.bcmap +0 -0
  49. package/dash_pdf_components/pdfjs/cmaps/Adobe-Korea1-2.bcmap +0 -0
  50. package/dash_pdf_components/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  51. package/dash_pdf_components/pdfjs/cmaps/B5-H.bcmap +0 -0
  52. package/dash_pdf_components/pdfjs/cmaps/B5-V.bcmap +0 -0
  53. package/dash_pdf_components/pdfjs/cmaps/B5pc-H.bcmap +0 -0
  54. package/dash_pdf_components/pdfjs/cmaps/B5pc-V.bcmap +0 -0
  55. package/dash_pdf_components/pdfjs/cmaps/CNS-EUC-H.bcmap +0 -0
  56. package/dash_pdf_components/pdfjs/cmaps/CNS-EUC-V.bcmap +0 -0
  57. package/dash_pdf_components/pdfjs/cmaps/CNS1-H.bcmap +0 -0
  58. package/dash_pdf_components/pdfjs/cmaps/CNS1-V.bcmap +0 -0
  59. package/dash_pdf_components/pdfjs/cmaps/CNS2-H.bcmap +0 -0
  60. package/dash_pdf_components/pdfjs/cmaps/CNS2-V.bcmap +3 -0
  61. package/dash_pdf_components/pdfjs/cmaps/ETHK-B5-H.bcmap +0 -0
  62. package/dash_pdf_components/pdfjs/cmaps/ETHK-B5-V.bcmap +0 -0
  63. package/dash_pdf_components/pdfjs/cmaps/ETen-B5-H.bcmap +0 -0
  64. package/dash_pdf_components/pdfjs/cmaps/ETen-B5-V.bcmap +0 -0
  65. package/dash_pdf_components/pdfjs/cmaps/ETenms-B5-H.bcmap +3 -0
  66. package/dash_pdf_components/pdfjs/cmaps/ETenms-B5-V.bcmap +0 -0
  67. package/dash_pdf_components/pdfjs/cmaps/EUC-H.bcmap +0 -0
  68. package/dash_pdf_components/pdfjs/cmaps/EUC-V.bcmap +0 -0
  69. package/dash_pdf_components/pdfjs/cmaps/Ext-H.bcmap +0 -0
  70. package/dash_pdf_components/pdfjs/cmaps/Ext-RKSJ-H.bcmap +0 -0
  71. package/dash_pdf_components/pdfjs/cmaps/Ext-RKSJ-V.bcmap +0 -0
  72. package/dash_pdf_components/pdfjs/cmaps/Ext-V.bcmap +0 -0
  73. package/dash_pdf_components/pdfjs/cmaps/GB-EUC-H.bcmap +0 -0
  74. package/dash_pdf_components/pdfjs/cmaps/GB-EUC-V.bcmap +0 -0
  75. package/dash_pdf_components/pdfjs/cmaps/GB-H.bcmap +4 -0
  76. package/dash_pdf_components/pdfjs/cmaps/GB-V.bcmap +0 -0
  77. package/dash_pdf_components/pdfjs/cmaps/GBK-EUC-H.bcmap +0 -0
  78. package/dash_pdf_components/pdfjs/cmaps/GBK-EUC-V.bcmap +0 -0
  79. package/dash_pdf_components/pdfjs/cmaps/GBK2K-H.bcmap +0 -0
  80. package/dash_pdf_components/pdfjs/cmaps/GBK2K-V.bcmap +0 -0
  81. package/dash_pdf_components/pdfjs/cmaps/GBKp-EUC-H.bcmap +0 -0
  82. package/dash_pdf_components/pdfjs/cmaps/GBKp-EUC-V.bcmap +0 -0
  83. package/dash_pdf_components/pdfjs/cmaps/GBT-EUC-H.bcmap +0 -0
  84. package/dash_pdf_components/pdfjs/cmaps/GBT-EUC-V.bcmap +0 -0
  85. package/dash_pdf_components/pdfjs/cmaps/GBT-H.bcmap +0 -0
  86. package/dash_pdf_components/pdfjs/cmaps/GBT-V.bcmap +0 -0
  87. package/dash_pdf_components/pdfjs/cmaps/GBTpc-EUC-H.bcmap +0 -0
  88. package/dash_pdf_components/pdfjs/cmaps/GBTpc-EUC-V.bcmap +0 -0
  89. package/dash_pdf_components/pdfjs/cmaps/GBpc-EUC-H.bcmap +0 -0
  90. package/dash_pdf_components/pdfjs/cmaps/GBpc-EUC-V.bcmap +0 -0
  91. package/dash_pdf_components/pdfjs/cmaps/H.bcmap +0 -0
  92. package/dash_pdf_components/pdfjs/cmaps/HKdla-B5-H.bcmap +0 -0
  93. package/dash_pdf_components/pdfjs/cmaps/HKdla-B5-V.bcmap +0 -0
  94. package/dash_pdf_components/pdfjs/cmaps/HKdlb-B5-H.bcmap +0 -0
  95. package/dash_pdf_components/pdfjs/cmaps/HKdlb-B5-V.bcmap +0 -0
  96. package/dash_pdf_components/pdfjs/cmaps/HKgccs-B5-H.bcmap +0 -0
  97. package/dash_pdf_components/pdfjs/cmaps/HKgccs-B5-V.bcmap +0 -0
  98. package/dash_pdf_components/pdfjs/cmaps/HKm314-B5-H.bcmap +0 -0
  99. package/dash_pdf_components/pdfjs/cmaps/HKm314-B5-V.bcmap +0 -0
  100. package/dash_pdf_components/pdfjs/cmaps/HKm471-B5-H.bcmap +0 -0
  101. package/dash_pdf_components/pdfjs/cmaps/HKm471-B5-V.bcmap +0 -0
  102. package/dash_pdf_components/pdfjs/cmaps/HKscs-B5-H.bcmap +0 -0
  103. package/dash_pdf_components/pdfjs/cmaps/HKscs-B5-V.bcmap +0 -0
  104. package/dash_pdf_components/pdfjs/cmaps/Hankaku.bcmap +0 -0
  105. package/dash_pdf_components/pdfjs/cmaps/Hiragana.bcmap +0 -0
  106. package/dash_pdf_components/pdfjs/cmaps/KSC-EUC-H.bcmap +0 -0
  107. package/dash_pdf_components/pdfjs/cmaps/KSC-EUC-V.bcmap +0 -0
  108. package/dash_pdf_components/pdfjs/cmaps/KSC-H.bcmap +0 -0
  109. package/dash_pdf_components/pdfjs/cmaps/KSC-Johab-H.bcmap +0 -0
  110. package/dash_pdf_components/pdfjs/cmaps/KSC-Johab-V.bcmap +0 -0
  111. package/dash_pdf_components/pdfjs/cmaps/KSC-V.bcmap +0 -0
  112. package/dash_pdf_components/pdfjs/cmaps/KSCms-UHC-H.bcmap +0 -0
  113. package/dash_pdf_components/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  114. package/dash_pdf_components/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  115. package/dash_pdf_components/pdfjs/cmaps/KSCms-UHC-V.bcmap +0 -0
  116. package/dash_pdf_components/pdfjs/cmaps/KSCpc-EUC-H.bcmap +0 -0
  117. package/dash_pdf_components/pdfjs/cmaps/KSCpc-EUC-V.bcmap +0 -0
  118. package/dash_pdf_components/pdfjs/cmaps/Katakana.bcmap +0 -0
  119. package/dash_pdf_components/pdfjs/cmaps/LICENSE +36 -0
  120. package/dash_pdf_components/pdfjs/cmaps/NWP-H.bcmap +0 -0
  121. package/dash_pdf_components/pdfjs/cmaps/NWP-V.bcmap +0 -0
  122. package/dash_pdf_components/pdfjs/cmaps/RKSJ-H.bcmap +0 -0
  123. package/dash_pdf_components/pdfjs/cmaps/RKSJ-V.bcmap +0 -0
  124. package/dash_pdf_components/pdfjs/cmaps/Roman.bcmap +0 -0
  125. package/dash_pdf_components/pdfjs/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  126. package/dash_pdf_components/pdfjs/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  127. package/dash_pdf_components/pdfjs/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  128. package/dash_pdf_components/pdfjs/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  129. package/dash_pdf_components/pdfjs/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  130. package/dash_pdf_components/pdfjs/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  131. package/dash_pdf_components/pdfjs/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  132. package/dash_pdf_components/pdfjs/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  133. package/dash_pdf_components/pdfjs/cmaps/UniGB-UCS2-H.bcmap +0 -0
  134. package/dash_pdf_components/pdfjs/cmaps/UniGB-UCS2-V.bcmap +0 -0
  135. package/dash_pdf_components/pdfjs/cmaps/UniGB-UTF16-H.bcmap +0 -0
  136. package/dash_pdf_components/pdfjs/cmaps/UniGB-UTF16-V.bcmap +0 -0
  137. package/dash_pdf_components/pdfjs/cmaps/UniGB-UTF32-H.bcmap +0 -0
  138. package/dash_pdf_components/pdfjs/cmaps/UniGB-UTF32-V.bcmap +0 -0
  139. package/dash_pdf_components/pdfjs/cmaps/UniGB-UTF8-H.bcmap +0 -0
  140. package/dash_pdf_components/pdfjs/cmaps/UniGB-UTF8-V.bcmap +0 -0
  141. package/dash_pdf_components/pdfjs/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  142. package/dash_pdf_components/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  143. package/dash_pdf_components/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  144. package/dash_pdf_components/pdfjs/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  145. package/dash_pdf_components/pdfjs/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  146. package/dash_pdf_components/pdfjs/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  147. package/dash_pdf_components/pdfjs/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  148. package/dash_pdf_components/pdfjs/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  149. package/dash_pdf_components/pdfjs/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  150. package/dash_pdf_components/pdfjs/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  151. package/dash_pdf_components/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  152. package/dash_pdf_components/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  153. package/dash_pdf_components/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  154. package/dash_pdf_components/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  155. package/dash_pdf_components/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  156. package/dash_pdf_components/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  157. package/dash_pdf_components/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  158. package/dash_pdf_components/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  159. package/dash_pdf_components/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  160. package/dash_pdf_components/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  161. package/dash_pdf_components/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  162. package/dash_pdf_components/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  163. package/dash_pdf_components/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  164. package/dash_pdf_components/pdfjs/cmaps/UniKS-UCS2-H.bcmap +0 -0
  165. package/dash_pdf_components/pdfjs/cmaps/UniKS-UCS2-V.bcmap +0 -0
  166. package/dash_pdf_components/pdfjs/cmaps/UniKS-UTF16-H.bcmap +0 -0
  167. package/dash_pdf_components/pdfjs/cmaps/UniKS-UTF16-V.bcmap +0 -0
  168. package/dash_pdf_components/pdfjs/cmaps/UniKS-UTF32-H.bcmap +0 -0
  169. package/dash_pdf_components/pdfjs/cmaps/UniKS-UTF32-V.bcmap +0 -0
  170. package/dash_pdf_components/pdfjs/cmaps/UniKS-UTF8-H.bcmap +0 -0
  171. package/dash_pdf_components/pdfjs/cmaps/UniKS-UTF8-V.bcmap +0 -0
  172. package/dash_pdf_components/pdfjs/cmaps/V.bcmap +0 -0
  173. package/dash_pdf_components/pdfjs/cmaps/WP-Symbol.bcmap +0 -0
  174. package/dash_pdf_components/pdfjs/iccs/CGATS001Compat-v2-micro.icc +0 -0
  175. package/dash_pdf_components/pdfjs/iccs/LICENSE +116 -0
  176. package/dash_pdf_components/pdfjs/standard_fonts/FoxitDingbats.pfb +0 -0
  177. package/dash_pdf_components/pdfjs/standard_fonts/FoxitFixed.pfb +0 -0
  178. package/dash_pdf_components/pdfjs/standard_fonts/FoxitFixedBold.pfb +0 -0
  179. package/dash_pdf_components/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
  180. package/dash_pdf_components/pdfjs/standard_fonts/FoxitFixedItalic.pfb +0 -0
  181. package/dash_pdf_components/pdfjs/standard_fonts/FoxitSerif.pfb +0 -0
  182. package/dash_pdf_components/pdfjs/standard_fonts/FoxitSerifBold.pfb +0 -0
  183. package/dash_pdf_components/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
  184. package/dash_pdf_components/pdfjs/standard_fonts/FoxitSerifItalic.pfb +0 -0
  185. package/dash_pdf_components/pdfjs/standard_fonts/FoxitSymbol.pfb +0 -0
  186. package/dash_pdf_components/pdfjs/standard_fonts/LICENSE_FOXIT +27 -0
  187. package/dash_pdf_components/pdfjs/standard_fonts/LICENSE_LIBERATION +102 -0
  188. package/dash_pdf_components/pdfjs/standard_fonts/LiberationSans-Bold.ttf +0 -0
  189. package/dash_pdf_components/pdfjs/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
  190. package/dash_pdf_components/pdfjs/standard_fonts/LiberationSans-Italic.ttf +0 -0
  191. package/dash_pdf_components/pdfjs/standard_fonts/LiberationSans-Regular.ttf +0 -0
  192. package/dash_pdf_components/pdfjs/wasm/LICENSE_OPENJPEG +39 -0
  193. package/dash_pdf_components/pdfjs/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
  194. package/dash_pdf_components/pdfjs/wasm/LICENSE_PDFJS_QCMS +22 -0
  195. package/dash_pdf_components/pdfjs/wasm/LICENSE_QCMS +21 -0
  196. package/dash_pdf_components/pdfjs/wasm/openjpeg.wasm +0 -0
  197. package/dash_pdf_components/pdfjs/wasm/openjpeg_nowasm_fallback.js +1 -0
  198. package/dash_pdf_components/pdfjs/wasm/qcms_bg.wasm +0 -0
  199. package/dash_pdf_components/pdfjs/web/images/altText_add.svg +3 -0
  200. package/dash_pdf_components/pdfjs/web/images/altText_disclaimer.svg +3 -0
  201. package/dash_pdf_components/pdfjs/web/images/altText_done.svg +3 -0
  202. package/dash_pdf_components/pdfjs/web/images/altText_spinner.svg +30 -0
  203. package/dash_pdf_components/pdfjs/web/images/altText_warning.svg +3 -0
  204. package/dash_pdf_components/pdfjs/web/images/annotation-check.svg +11 -0
  205. package/dash_pdf_components/pdfjs/web/images/annotation-comment.svg +16 -0
  206. package/dash_pdf_components/pdfjs/web/images/annotation-help.svg +26 -0
  207. package/dash_pdf_components/pdfjs/web/images/annotation-insert.svg +10 -0
  208. package/dash_pdf_components/pdfjs/web/images/annotation-key.svg +11 -0
  209. package/dash_pdf_components/pdfjs/web/images/annotation-newparagraph.svg +11 -0
  210. package/dash_pdf_components/pdfjs/web/images/annotation-noicon.svg +7 -0
  211. package/dash_pdf_components/pdfjs/web/images/annotation-note.svg +42 -0
  212. package/dash_pdf_components/pdfjs/web/images/annotation-paperclip.svg +6 -0
  213. package/dash_pdf_components/pdfjs/web/images/annotation-paragraph.svg +16 -0
  214. package/dash_pdf_components/pdfjs/web/images/annotation-pushpin.svg +7 -0
  215. package/dash_pdf_components/pdfjs/web/images/comment-actionsButton.svg +3 -0
  216. package/dash_pdf_components/pdfjs/web/images/comment-closeButton.svg +3 -0
  217. package/dash_pdf_components/pdfjs/web/images/comment-editButton.svg +8 -0
  218. package/dash_pdf_components/pdfjs/web/images/comment-popup-editButton.svg +5 -0
  219. package/dash_pdf_components/pdfjs/web/images/cursor-editorFreeHighlight.svg +6 -0
  220. package/dash_pdf_components/pdfjs/web/images/cursor-editorFreeText.svg +3 -0
  221. package/dash_pdf_components/pdfjs/web/images/cursor-editorInk.svg +4 -0
  222. package/dash_pdf_components/pdfjs/web/images/cursor-editorTextHighlight.svg +8 -0
  223. package/dash_pdf_components/pdfjs/web/images/editor-toolbar-delete.svg +5 -0
  224. package/dash_pdf_components/pdfjs/web/images/editor-toolbar-edit.svg +3 -0
  225. package/dash_pdf_components/pdfjs/web/images/loading-icon.gif +0 -0
  226. package/dash_pdf_components/pdfjs/web/images/messageBar_closingButton.svg +3 -0
  227. package/dash_pdf_components/pdfjs/web/images/messageBar_info.svg +3 -0
  228. package/dash_pdf_components/pdfjs/web/images/messageBar_warning.svg +3 -0
  229. package/dash_pdf_components/pdfjs/web/images/toolbarButton-editorHighlight.svg +6 -0
  230. package/dash_pdf_components/pdfjs/web/images/toolbarButton-menuArrow.svg +3 -0
  231. package/package.json +55 -0
package/LICENSE ADDED
@@ -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.
package/README.md ADDED
@@ -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
+ ```