@pdftools/four-heights-pdf-web-viewer 4.3.6

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 (367) hide show
  1. package/LICENSE.md +446 -0
  2. package/README.md +145 -0
  3. package/css/pdf-web-viewer.css +2407 -0
  4. package/doc/PdfWebViewer.pdf +0 -0
  5. package/es6/common/Checkbox.d.ts +9 -0
  6. package/es6/common/Checkbox.js +8 -0
  7. package/es6/common/Color.d.ts +23 -0
  8. package/es6/common/Color.js +118 -0
  9. package/es6/common/ColorPicker.d.ts +15 -0
  10. package/es6/common/ColorPicker.js +46 -0
  11. package/es6/common/Contextbar.d.ts +6 -0
  12. package/es6/common/Contextbar.js +19 -0
  13. package/es6/common/DragMoveHandler.d.ts +51 -0
  14. package/es6/common/DragMoveHandler.js +175 -0
  15. package/es6/common/Dropdown.d.ts +36 -0
  16. package/es6/common/Dropdown.js +76 -0
  17. package/es6/common/DropdownMenu.d.ts +9 -0
  18. package/es6/common/DropdownMenu.js +10 -0
  19. package/es6/common/DropdownSeparator.d.ts +3 -0
  20. package/es6/common/DropdownSeparator.js +6 -0
  21. package/es6/common/Icon.d.ts +13 -0
  22. package/es6/common/Icon.js +8 -0
  23. package/es6/common/Loader.d.ts +3 -0
  24. package/es6/common/Loader.js +6 -0
  25. package/es6/common/RangeSlider.d.ts +17 -0
  26. package/es6/common/RangeSlider.js +42 -0
  27. package/es6/common/StrokeStylePicker.d.ts +11 -0
  28. package/es6/common/StrokeStylePicker.js +20 -0
  29. package/es6/common/StrokeWidthPicker.d.ts +11 -0
  30. package/es6/common/StrokeWidthPicker.js +20 -0
  31. package/es6/common/Toolbar.d.ts +10 -0
  32. package/es6/common/Toolbar.js +6 -0
  33. package/es6/common/ToolbarButton.d.ts +14 -0
  34. package/es6/common/ToolbarButton.js +21 -0
  35. package/es6/common/ToolbarFileButton.d.ts +15 -0
  36. package/es6/common/ToolbarFileButton.js +27 -0
  37. package/es6/common/ToolbarItemGroup.d.ts +8 -0
  38. package/es6/common/ToolbarItemGroup.js +12 -0
  39. package/es6/common/ToolbarSeparator.d.ts +3 -0
  40. package/es6/common/ToolbarSeparator.js +6 -0
  41. package/es6/common/Tools.d.ts +10 -0
  42. package/es6/common/Tools.js +89 -0
  43. package/es6/common/TooltipManager.d.ts +12 -0
  44. package/es6/common/TooltipManager.js +54 -0
  45. package/es6/common/TranslationManager.d.ts +11 -0
  46. package/es6/common/TranslationManager.js +61 -0
  47. package/es6/common/classNames.d.ts +2 -0
  48. package/es6/common/classNames.js +18 -0
  49. package/es6/common/formatDate.d.ts +1 -0
  50. package/es6/common/formatDate.js +1 -0
  51. package/es6/common/icons.d.ts +13 -0
  52. package/es6/common/icons.js +412 -0
  53. package/es6/common/utils.d.ts +2 -0
  54. package/es6/common/utils.js +19 -0
  55. package/es6/custom/history.d.ts +2 -0
  56. package/es6/custom/history.js +59 -0
  57. package/es6/index.d.ts +5 -0
  58. package/es6/index.js +5 -0
  59. package/es6/lib/hyperapp/index.d.ts +108 -0
  60. package/es6/lib/hyperapp/index.js +327 -0
  61. package/es6/modules/CanvasLayer.d.ts +32 -0
  62. package/es6/modules/CanvasLayer.js +83 -0
  63. package/es6/modules/CanvasModule.d.ts +59 -0
  64. package/es6/modules/CanvasModule.js +98 -0
  65. package/es6/modules/eraser/EraserLayer.d.ts +13 -0
  66. package/es6/modules/eraser/EraserLayer.js +141 -0
  67. package/es6/modules/eraser/EraserModule.d.ts +19 -0
  68. package/es6/modules/eraser/EraserModule.js +34 -0
  69. package/es6/modules/eraser/EraserToolbar.d.ts +10 -0
  70. package/es6/modules/eraser/EraserToolbar.js +30 -0
  71. package/es6/modules/form-fields/CheckBoxWidget.d.ts +9 -0
  72. package/es6/modules/form-fields/CheckBoxWidget.js +45 -0
  73. package/es6/modules/form-fields/ComboBoxWidget.d.ts +22 -0
  74. package/es6/modules/form-fields/ComboBoxWidget.js +152 -0
  75. package/es6/modules/form-fields/EditFormFieldLayer.d.ts +17 -0
  76. package/es6/modules/form-fields/EditFormFieldLayer.js +238 -0
  77. package/es6/modules/form-fields/FormFieldModule.d.ts +15 -0
  78. package/es6/modules/form-fields/FormFieldModule.js +27 -0
  79. package/es6/modules/form-fields/ListBoxWidget.d.ts +9 -0
  80. package/es6/modules/form-fields/ListBoxWidget.js +73 -0
  81. package/es6/modules/form-fields/RadioButtonWidget.d.ts +9 -0
  82. package/es6/modules/form-fields/RadioButtonWidget.js +45 -0
  83. package/es6/modules/form-fields/SelectListWidget.d.ts +9 -0
  84. package/es6/modules/form-fields/SelectListWidget.js +45 -0
  85. package/es6/modules/form-fields/TextBoxWidget.d.ts +9 -0
  86. package/es6/modules/form-fields/TextBoxWidget.js +53 -0
  87. package/es6/modules/form-fields/WidgetBase.d.ts +23 -0
  88. package/es6/modules/form-fields/WidgetBase.js +29 -0
  89. package/es6/modules/freetext-annotation/AddFreetextAnnotationLayer.d.ts +19 -0
  90. package/es6/modules/freetext-annotation/AddFreetextAnnotationLayer.js +181 -0
  91. package/es6/modules/freetext-annotation/AddFreetextAnnotationToolbar.d.ts +21 -0
  92. package/es6/modules/freetext-annotation/AddFreetextAnnotationToolbar.js +37 -0
  93. package/es6/modules/freetext-annotation/EditFreetextAnnotationLayer.d.ts +20 -0
  94. package/es6/modules/freetext-annotation/EditFreetextAnnotationLayer.js +211 -0
  95. package/es6/modules/freetext-annotation/EditFreetextAnnotationToolbar.d.ts +50 -0
  96. package/es6/modules/freetext-annotation/EditFreetextAnnotationToolbar.js +118 -0
  97. package/es6/modules/freetext-annotation/FreetextAnnotationModule.d.ts +28 -0
  98. package/es6/modules/freetext-annotation/FreetextAnnotationModule.js +58 -0
  99. package/es6/modules/freetext-annotation/RichTextEditor.d.ts +31 -0
  100. package/es6/modules/freetext-annotation/RichTextEditor.js +223 -0
  101. package/es6/modules/highlight-annotation/AddHighlightAnnotationLayer.d.ts +31 -0
  102. package/es6/modules/highlight-annotation/AddHighlightAnnotationLayer.js +289 -0
  103. package/es6/modules/highlight-annotation/AddHighlightAnnotationToolbar.d.ts +20 -0
  104. package/es6/modules/highlight-annotation/AddHighlightAnnotationToolbar.js +52 -0
  105. package/es6/modules/highlight-annotation/EditHighlightAnnotationLayer.d.ts +15 -0
  106. package/es6/modules/highlight-annotation/EditHighlightAnnotationLayer.js +104 -0
  107. package/es6/modules/highlight-annotation/EditHighlightAnnotationToolbar.d.ts +15 -0
  108. package/es6/modules/highlight-annotation/EditHighlightAnnotationToolbar.js +28 -0
  109. package/es6/modules/highlight-annotation/HighlightAnnotationModule.d.ts +27 -0
  110. package/es6/modules/highlight-annotation/HighlightAnnotationModule.js +54 -0
  111. package/es6/modules/image-annotations/ImageAnnotationModule.d.ts +23 -0
  112. package/es6/modules/image-annotations/ImageAnnotationModule.js +169 -0
  113. package/es6/modules/index.d.ts +13 -0
  114. package/es6/modules/index.js +13 -0
  115. package/es6/modules/ink-annotation/AddInkAnnotationLayer.d.ts +40 -0
  116. package/es6/modules/ink-annotation/AddInkAnnotationLayer.js +503 -0
  117. package/es6/modules/ink-annotation/AddInkAnnotationToolbar.d.ts +30 -0
  118. package/es6/modules/ink-annotation/AddInkAnnotationToolbar.js +53 -0
  119. package/es6/modules/ink-annotation/EditInkAnnotationLayer.d.ts +20 -0
  120. package/es6/modules/ink-annotation/EditInkAnnotationLayer.js +137 -0
  121. package/es6/modules/ink-annotation/EditInkAnnotationToolbar.d.ts +25 -0
  122. package/es6/modules/ink-annotation/EditInkAnnotationToolbar.js +47 -0
  123. package/es6/modules/ink-annotation/InkAnnotationModule.d.ts +27 -0
  124. package/es6/modules/ink-annotation/InkAnnotationModule.js +50 -0
  125. package/es6/modules/popup/Popup.d.ts +64 -0
  126. package/es6/modules/popup/Popup.js +360 -0
  127. package/es6/modules/popup/PopupLayer.d.ts +31 -0
  128. package/es6/modules/popup/PopupLayer.js +509 -0
  129. package/es6/modules/popup/PopupModule.d.ts +16 -0
  130. package/es6/modules/popup/PopupModule.js +25 -0
  131. package/es6/modules/print-service/PrintServiceDialog.d.ts +30 -0
  132. package/es6/modules/print-service/PrintServiceDialog.js +134 -0
  133. package/es6/modules/print-service/PrintServiceLayer.d.ts +24 -0
  134. package/es6/modules/print-service/PrintServiceLayer.js +310 -0
  135. package/es6/modules/print-service/PrintServiceModule.d.ts +18 -0
  136. package/es6/modules/print-service/PrintServiceModule.js +30 -0
  137. package/es6/modules/shape-annotations/AddShapeAnnotationLayer.d.ts +24 -0
  138. package/es6/modules/shape-annotations/AddShapeAnnotationLayer.js +210 -0
  139. package/es6/modules/shape-annotations/AddShapeAnnotationToolbar.d.ts +26 -0
  140. package/es6/modules/shape-annotations/AddShapeAnnotationToolbar.js +69 -0
  141. package/es6/modules/shape-annotations/EditShapeAnnotationLayer.d.ts +19 -0
  142. package/es6/modules/shape-annotations/EditShapeAnnotationLayer.js +148 -0
  143. package/es6/modules/shape-annotations/EditShapeAnnotationToolbar.d.ts +24 -0
  144. package/es6/modules/shape-annotations/EditShapeAnnotationToolbar.js +57 -0
  145. package/es6/modules/shape-annotations/ShapeAnnotationModule.d.ts +28 -0
  146. package/es6/modules/shape-annotations/ShapeAnnotationModule.js +50 -0
  147. package/es6/modules/stamp-annotation/AddStampAnnotationLayer.d.ts +19 -0
  148. package/es6/modules/stamp-annotation/AddStampAnnotationLayer.js +257 -0
  149. package/es6/modules/stamp-annotation/AddStampAnnotationToolbar.d.ts +17 -0
  150. package/es6/modules/stamp-annotation/AddStampAnnotationToolbar.js +68 -0
  151. package/es6/modules/stamp-annotation/StampAnnotationModule.d.ts +20 -0
  152. package/es6/modules/stamp-annotation/StampAnnotationModule.js +35 -0
  153. package/es6/modules/text-annotation/AddTextAnnotationLayer.d.ts +14 -0
  154. package/es6/modules/text-annotation/AddTextAnnotationLayer.js +132 -0
  155. package/es6/modules/text-annotation/AddTextAnnotationToolbar.d.ts +15 -0
  156. package/es6/modules/text-annotation/AddTextAnnotationToolbar.js +27 -0
  157. package/es6/modules/text-annotation/TextAnnotationModule.d.ts +19 -0
  158. package/es6/modules/text-annotation/TextAnnotationModule.js +34 -0
  159. package/es6/pdf-viewer-api/ImageContainer.d.ts +10 -0
  160. package/es6/pdf-viewer-api/ImageContainer.js +43 -0
  161. package/es6/pdf-viewer-api/PdfViewerApi.d.ts +463 -0
  162. package/es6/pdf-viewer-api/PdfViewerApi.js +732 -0
  163. package/es6/pdf-viewer-api/PdfViewingWrapper.d.ts +178 -0
  164. package/es6/pdf-viewer-api/PdfViewingWrapper.js +2037 -0
  165. package/es6/pdf-viewer-api/annotationDefaultBehaviors.d.ts +3 -0
  166. package/es6/pdf-viewer-api/annotationDefaultBehaviors.js +30 -0
  167. package/es6/pdf-viewer-api/enums.d.ts +100 -0
  168. package/es6/pdf-viewer-api/enums.js +113 -0
  169. package/es6/pdf-viewer-api/index.d.ts +3 -0
  170. package/es6/pdf-viewer-api/index.js +3 -0
  171. package/es6/pdf-viewer-api/types.d.ts +284 -0
  172. package/es6/pdf-viewer-api/types.js +6 -0
  173. package/es6/pdf-viewer-canvas/CanvasEvents.d.ts +76 -0
  174. package/es6/pdf-viewer-canvas/CanvasEvents.js +345 -0
  175. package/es6/pdf-viewer-canvas/PdfViewerCanvas.d.ts +175 -0
  176. package/es6/pdf-viewer-canvas/PdfViewerCanvas.js +1226 -0
  177. package/es6/pdf-viewer-canvas/state/annotations.d.ts +36 -0
  178. package/es6/pdf-viewer-canvas/state/annotations.js +157 -0
  179. package/es6/pdf-viewer-canvas/state/appState.d.ts +10 -0
  180. package/es6/pdf-viewer-canvas/state/appState.js +60 -0
  181. package/es6/pdf-viewer-canvas/state/canvas.d.ts +31 -0
  182. package/es6/pdf-viewer-canvas/state/canvas.js +41 -0
  183. package/es6/pdf-viewer-canvas/state/document.d.ts +50 -0
  184. package/es6/pdf-viewer-canvas/state/document.js +99 -0
  185. package/es6/pdf-viewer-canvas/state/pointer.d.ts +31 -0
  186. package/es6/pdf-viewer-canvas/state/pointer.js +31 -0
  187. package/es6/pdf-viewer-canvas/state/scroll.d.ts +22 -0
  188. package/es6/pdf-viewer-canvas/state/scroll.js +25 -0
  189. package/es6/pdf-viewer-canvas/state/search.d.ts +36 -0
  190. package/es6/pdf-viewer-canvas/state/search.js +27 -0
  191. package/es6/pdf-viewer-canvas/state/store.d.ts +39 -0
  192. package/es6/pdf-viewer-canvas/state/store.js +52 -0
  193. package/es6/pdf-viewer-canvas/state/viewer.d.ts +91 -0
  194. package/es6/pdf-viewer-canvas/state/viewer.js +175 -0
  195. package/es6/pdf-viewer-canvas/view-layers/AnnotationSelectionLayer.d.ts +28 -0
  196. package/es6/pdf-viewer-canvas/view-layers/AnnotationSelectionLayer.js +452 -0
  197. package/es6/pdf-viewer-canvas/view-layers/BusyStateLayer.d.ts +9 -0
  198. package/es6/pdf-viewer-canvas/view-layers/BusyStateLayer.js +25 -0
  199. package/es6/pdf-viewer-canvas/view-layers/PdfDocumentLayer.d.ts +10 -0
  200. package/es6/pdf-viewer-canvas/view-layers/PdfDocumentLayer.js +149 -0
  201. package/es6/pdf-viewer-canvas/view-layers/ScrollLayer.d.ts +48 -0
  202. package/es6/pdf-viewer-canvas/view-layers/ScrollLayer.js +308 -0
  203. package/es6/pdf-viewer-canvas/view-layers/TextSelectionLayer.d.ts +19 -0
  204. package/es6/pdf-viewer-canvas/view-layers/TextSelectionLayer.js +289 -0
  205. package/es6/pdf-viewer-canvas/view-layers/ViewLayerBase.d.ts +31 -0
  206. package/es6/pdf-viewer-canvas/view-layers/ViewLayerBase.js +106 -0
  207. package/es6/pdf-viewer-canvas/view-layers/canvasShapes.d.ts +11 -0
  208. package/es6/pdf-viewer-canvas/view-layers/canvasShapes.js +149 -0
  209. package/es6/pdf-viewer-canvas/view-layers/canvasUtlis.d.ts +3 -0
  210. package/es6/pdf-viewer-canvas/view-layers/canvasUtlis.js +10 -0
  211. package/es6/pdf-viewer-canvas/view-layers/views/AnnotationBorder.d.ts +52 -0
  212. package/es6/pdf-viewer-canvas/view-layers/views/AnnotationBorder.js +377 -0
  213. package/es6/pdf-viewer-canvas/view-layers/views/AnnotationContextBar.d.ts +47 -0
  214. package/es6/pdf-viewer-canvas/view-layers/views/AnnotationContextBar.js +102 -0
  215. package/es6/pdf-viewer-canvas/view-layers/views/TextSelectionContextBar.d.ts +14 -0
  216. package/es6/pdf-viewer-canvas/view-layers/views/TextSelectionContextBar.js +36 -0
  217. package/es6/pdf-viewing/PdfViewing.d.ts +4865 -0
  218. package/es6/pdf-viewing/PdfViewing.js +9611 -0
  219. package/es6/pdf-web-viewer/PdfWebViewer.d.ts +372 -0
  220. package/es6/pdf-web-viewer/PdfWebViewer.js +1386 -0
  221. package/es6/pdf-web-viewer/UserSettings.d.ts +8 -0
  222. package/es6/pdf-web-viewer/UserSettings.js +40 -0
  223. package/es6/pdf-web-viewer/WebViewerOptions.d.ts +387 -0
  224. package/es6/pdf-web-viewer/WebViewerOptions.js +582 -0
  225. package/es6/pdf-web-viewer/state/index.d.ts +80 -0
  226. package/es6/pdf-web-viewer/state/index.js +98 -0
  227. package/es6/pdf-web-viewer/state/layout.d.ts +24 -0
  228. package/es6/pdf-web-viewer/state/layout.js +21 -0
  229. package/es6/pdf-web-viewer/state/mobile.d.ts +16 -0
  230. package/es6/pdf-web-viewer/state/mobile.js +11 -0
  231. package/es6/pdf-web-viewer/state/navigationPanel.d.ts +61 -0
  232. package/es6/pdf-web-viewer/state/navigationPanel.js +84 -0
  233. package/es6/pdf-web-viewer/state/passwordForm.d.ts +18 -0
  234. package/es6/pdf-web-viewer/state/passwordForm.js +21 -0
  235. package/es6/pdf-web-viewer/state/pdfDocument.d.ts +31 -0
  236. package/es6/pdf-web-viewer/state/pdfDocument.js +41 -0
  237. package/es6/pdf-web-viewer/state/search.d.ts +29 -0
  238. package/es6/pdf-web-viewer/state/search.js +23 -0
  239. package/es6/pdf-web-viewer/views/App.d.ts +4 -0
  240. package/es6/pdf-web-viewer/views/App.js +19 -0
  241. package/es6/pdf-web-viewer/views/CustomButtons.d.ts +9 -0
  242. package/es6/pdf-web-viewer/views/CustomButtons.js +18 -0
  243. package/es6/pdf-web-viewer/views/DropZone.d.ts +9 -0
  244. package/es6/pdf-web-viewer/views/DropZone.js +53 -0
  245. package/es6/pdf-web-viewer/views/Layout.d.ts +4 -0
  246. package/es6/pdf-web-viewer/views/Layout.js +22 -0
  247. package/es6/pdf-web-viewer/views/annotationbar/Annotationbar.d.ts +4 -0
  248. package/es6/pdf-web-viewer/views/annotationbar/Annotationbar.js +21 -0
  249. package/es6/pdf-web-viewer/views/appbar/AddonsToolbar.d.ts +4 -0
  250. package/es6/pdf-web-viewer/views/appbar/AddonsToolbar.js +35 -0
  251. package/es6/pdf-web-viewer/views/appbar/AnnotationsMenu.d.ts +4 -0
  252. package/es6/pdf-web-viewer/views/appbar/AnnotationsMenu.js +22 -0
  253. package/es6/pdf-web-viewer/views/appbar/AppBar.d.ts +4 -0
  254. package/es6/pdf-web-viewer/views/appbar/AppBar.js +26 -0
  255. package/es6/pdf-web-viewer/views/appbar/DocumentBar.d.ts +4 -0
  256. package/es6/pdf-web-viewer/views/appbar/DocumentBar.js +36 -0
  257. package/es6/pdf-web-viewer/views/appbar/Menu.d.ts +4 -0
  258. package/es6/pdf-web-viewer/views/appbar/Menu.js +80 -0
  259. package/es6/pdf-web-viewer/views/appbar/NavigationBar.d.ts +4 -0
  260. package/es6/pdf-web-viewer/views/appbar/NavigationBar.js +74 -0
  261. package/es6/pdf-web-viewer/views/appbar/SearchBar.d.ts +4 -0
  262. package/es6/pdf-web-viewer/views/appbar/SearchBar.js +83 -0
  263. package/es6/pdf-web-viewer/views/appbar/SearchOptions.d.ts +10 -0
  264. package/es6/pdf-web-viewer/views/appbar/SearchOptions.js +55 -0
  265. package/es6/pdf-web-viewer/views/appbar/ViewBar.d.ts +4 -0
  266. package/es6/pdf-web-viewer/views/appbar/ViewBar.js +52 -0
  267. package/es6/pdf-web-viewer/views/appbar/ZoomBar.d.ts +4 -0
  268. package/es6/pdf-web-viewer/views/appbar/ZoomBar.js +18 -0
  269. package/es6/pdf-web-viewer/views/modal/ApplicationError.d.ts +4 -0
  270. package/es6/pdf-web-viewer/views/modal/ApplicationError.js +25 -0
  271. package/es6/pdf-web-viewer/views/modal/LoadApplication.d.ts +3 -0
  272. package/es6/pdf-web-viewer/views/modal/LoadApplication.js +6 -0
  273. package/es6/pdf-web-viewer/views/modal/LoadFile.d.ts +3 -0
  274. package/es6/pdf-web-viewer/views/modal/LoadFile.js +10 -0
  275. package/es6/pdf-web-viewer/views/modal/Modal.d.ts +4 -0
  276. package/es6/pdf-web-viewer/views/modal/Modal.js +39 -0
  277. package/es6/pdf-web-viewer/views/modal/OpenFile.d.ts +4 -0
  278. package/es6/pdf-web-viewer/views/modal/OpenFile.js +30 -0
  279. package/es6/pdf-web-viewer/views/modal/OpenFileError.d.ts +4 -0
  280. package/es6/pdf-web-viewer/views/modal/OpenFileError.js +13 -0
  281. package/es6/pdf-web-viewer/views/modal/PasswordForm.d.ts +4 -0
  282. package/es6/pdf-web-viewer/views/modal/PasswordForm.js +54 -0
  283. package/es6/pdf-web-viewer/views/modal/SaveFile.d.ts +4 -0
  284. package/es6/pdf-web-viewer/views/modal/SaveFile.js +10 -0
  285. package/es6/pdf-web-viewer/views/modal/UnsavedChanges.d.ts +4 -0
  286. package/es6/pdf-web-viewer/views/modal/UnsavedChanges.js +32 -0
  287. package/es6/pdf-web-viewer/views/navigation/AnnotationList.d.ts +8 -0
  288. package/es6/pdf-web-viewer/views/navigation/AnnotationList.js +26 -0
  289. package/es6/pdf-web-viewer/views/navigation/AnnotationListItem.d.ts +8 -0
  290. package/es6/pdf-web-viewer/views/navigation/AnnotationListItem.js +158 -0
  291. package/es6/pdf-web-viewer/views/navigation/AnnotationNavigation.d.ts +4 -0
  292. package/es6/pdf-web-viewer/views/navigation/AnnotationNavigation.js +11 -0
  293. package/es6/pdf-web-viewer/views/navigation/NavigationPanel.d.ts +4 -0
  294. package/es6/pdf-web-viewer/views/navigation/NavigationPanel.js +50 -0
  295. package/es6/pdf-web-viewer/views/navigation/OutlineList.d.ts +12 -0
  296. package/es6/pdf-web-viewer/views/navigation/OutlineList.js +19 -0
  297. package/es6/pdf-web-viewer/views/navigation/OutlineNavigation.d.ts +4 -0
  298. package/es6/pdf-web-viewer/views/navigation/OutlineNavigation.js +10 -0
  299. package/es6/pdf-web-viewer/views/navigation/ThumbnailNavigation.d.ts +16 -0
  300. package/es6/pdf-web-viewer/views/navigation/ThumbnailNavigation.js +32 -0
  301. package/package.json +24 -0
  302. package/pdfwebviewer/PdfViewing.data +0 -0
  303. package/pdfwebviewer/PdfViewing_Main.js +1 -0
  304. package/pdfwebviewer/PdfViewing_Main.wasm +0 -0
  305. package/pdfwebviewer/PdfViewing_Worker.js +1 -0
  306. package/pdfwebviewer/PdfViewing_Worker.wasm +0 -0
  307. package/pdfwebviewer/pdf-web-viewer.css +2407 -0
  308. package/pdfwebviewer/pdf-web-viewer.development.js +25955 -0
  309. package/pdfwebviewer/pdf-web-viewer.min.js +1 -0
  310. package/pdfwebviewer/translations.de.json +151 -0
  311. package/pdfwebviewer/translations.en.json +151 -0
  312. package/pdfwebviewer/translations.fr.json +151 -0
  313. package/pdfwebviewer/translations.it.json +151 -0
  314. package/scss/common/_breakpoints.scss +44 -0
  315. package/scss/common/_buttons.scss +42 -0
  316. package/scss/common/_colorpicker.scss +89 -0
  317. package/scss/common/_common.scss +21 -0
  318. package/scss/common/_contextbar.scss +44 -0
  319. package/scss/common/_dropdown.scss +176 -0
  320. package/scss/common/_icon.scss +9 -0
  321. package/scss/common/_index.scss +19 -0
  322. package/scss/common/_loader.scss +30 -0
  323. package/scss/common/_rangeslider.scss +24 -0
  324. package/scss/common/_scrollbars.scss +64 -0
  325. package/scss/common/_stroke-style-picker.scss +64 -0
  326. package/scss/common/_stroke-width-picker.scss +23 -0
  327. package/scss/common/_toolbar.scss +117 -0
  328. package/scss/common/_tooltip.scss +39 -0
  329. package/scss/modules/_eraser.scss +28 -0
  330. package/scss/modules/_forms.scss +56 -0
  331. package/scss/modules/_highlightannotation.scss +12 -0
  332. package/scss/modules/_index.scss +5 -0
  333. package/scss/modules/_inkannotation.scss +41 -0
  334. package/scss/modules/_stampannotation.scss +19 -0
  335. package/scss/pdf-viewer-canvas/_annotationborder.scss +107 -0
  336. package/scss/pdf-viewer-canvas/_busy-loader.scss +53 -0
  337. package/scss/pdf-viewer-canvas/_freetexteditor.scss +28 -0
  338. package/scss/pdf-viewer-canvas/_index.scss +7 -0
  339. package/scss/pdf-viewer-canvas/_layout.scss +52 -0
  340. package/scss/pdf-viewer-canvas/_popup.scss +217 -0
  341. package/scss/pdf-viewer-canvas/_printservice.scss +171 -0
  342. package/scss/pdf-viewer-canvas/_textselection.scss +17 -0
  343. package/scss/pdf-web-viewer/_annotationbar.scss +47 -0
  344. package/scss/pdf-web-viewer/_index.scss +8 -0
  345. package/scss/pdf-web-viewer/_layout.scss +63 -0
  346. package/scss/pdf-web-viewer/_modal.scss +186 -0
  347. package/scss/pdf-web-viewer/_navigationpanel.scss +398 -0
  348. package/scss/pdf-web-viewer/_searchbar.scss +47 -0
  349. package/scss/pdf-web-viewer/_toolbar.scss +134 -0
  350. package/scss/pdf-web-viewer/_viewer.scss +54 -0
  351. package/scss/pdf-web-viewer.scss +1 -0
  352. package/scss/themes/default/_light.scss +32 -0
  353. package/scss/themes/default/_mixins.scss +129 -0
  354. package/scss/themes/default/_theme.scss +161 -0
  355. package/scss/themes/pdf-web-viewer.scss +1 -0
  356. package/umd/pdf-web-viewer.development.js +25955 -0
  357. package/umd/pdf-web-viewer.development.js.map +1 -0
  358. package/umd/pdf-web-viewer.min.js +1 -0
  359. package/wasm/PdfViewing.data +0 -0
  360. package/wasm/PdfViewing_Main.js +1 -0
  361. package/wasm/PdfViewing_Main.wasm +0 -0
  362. package/wasm/PdfViewing_Worker.js +1 -0
  363. package/wasm/PdfViewing_Worker.wasm +0 -0
  364. package/wasm/translations.de.json +151 -0
  365. package/wasm/translations.en.json +151 -0
  366. package/wasm/translations.fr.json +151 -0
  367. package/wasm/translations.it.json +151 -0
package/LICENSE.md ADDED
@@ -0,0 +1,446 @@
1
+ General Licensing Agreement of PDF Tools AG for the Use of Software
2
+
3
+ Version 2.8 - valid from September 30, 2021
4
+
5
+ Foreword/Preamble
6
+ =================
7
+
8
+ These General Licensing Terms apply to the use of software from PDF Tools AG by
9
+ natural or legal persons (hereinafter referred to as „Licensees“).
10
+
11
+ Upon ordering and downloading, the Licensee acknowledges the validity of these
12
+ General Licensing Terms.
13
+
14
+ Should the Licensee not agree to the General Licensing Terms, they are not entitled
15
+ to use any software from PDF Tools AG.
16
+
17
+ Arrangements deviating from the General Licensing Terms require previous written
18
+ approval from PDF Tools AG.
19
+
20
+ Definitions
21
+ ===========
22
+
23
+ ¹ An operating system platform is a necessary prerequisite for the operation of
24
+ installed software.
25
+
26
+ ² An installation of an operating system platform, operated on one or several real or
27
+ virtual computers.
28
+
29
+ ³ Use of the licensed software on an operating system platform installation is
30
+ counted as one (1) installation.
31
+
32
+ Agreement Parts
33
+ ===============
34
+
35
+ ¹ The invoice document of PDF Tools AG and written agreements with PDF Tools AG are
36
+ integrated parts of this licensing agreement.
37
+
38
+ ² These agreement parts include, among other things, the licensed software, the
39
+ licensed version of the software, the name and address of the Licensee, and the
40
+ amount for the license fee.
41
+
42
+ Licensee's Usage Rights
43
+ =======================
44
+
45
+ ¹ The scope of the Licensee's usage rights shall conform with the agreed license type
46
+ and the present General Licensing Terms and any further written agreements with PDF
47
+ Tools AG.
48
+
49
+ ² Should the license type agreed with the Licensee not expressly permit the use of
50
+ the licensed software for third-parties and/or sub-licensing, the Licensee's usage
51
+ right covers a non-exclusive, non-transferable right to use the licensed software for
52
+ the Licensee's own purposes. Any transfer of the licenses to third-parties, including
53
+ subsidiaries or companies otherwise linked with the Licensee, is expressly forbidden.
54
+
55
+ ³ The maximum number of copies of the software which the Licensee may use is limited
56
+ by the number of licenses purchased as per the invoice document and/or written
57
+ agreement with PDF Tools AG.
58
+
59
+ ⁴ The licensed software is limited to specific operating system platforms. This
60
+ limitation is detailed in the description of the licensed software in the invoice
61
+ document and/or written agreement with PDF Tools AG.
62
+
63
+ ⁵ The use of the licensed software and, depending on the license type, the
64
+ integration of the licensed software into the Licensee's applications for its own
65
+ purposes is authorized within the scope of the agreed license.
66
+
67
+ ⁶ The Licensee is responsible for ensuring that the licensed software is only used as
68
+ contractually agreed and only by authorized persons.
69
+
70
+ License Types
71
+ =============
72
+
73
+ ¹ The license type determines the type of permissible use of the licensed
74
+ software. PDF Tools AG offers the license types named in the current clause. The
75
+ license type agreed with the Licensee, and the scope of the Licensee's usage right,
76
+ are detailed on the invoice and/or in the contractual agreement.
77
+
78
+ ² The license acquired for the licensed software is activated via a license key
79
+ permitting the use of the software in accordance with this license.
80
+
81
+ Runtime License
82
+ ---------------
83
+
84
+ ¹ A runtime license is required for the productive use of the licensed software on a
85
+ Licensee's operating system platform. This excludes productive use in a web service
86
+ (see Service Provider License) or in a web application (see Web Application License).
87
+
88
+ ² A runtime license is required for each installation on an operating system platform
89
+ (physical or virtual).
90
+
91
+ ³ Depending on the product type, the runtime license is limited as follows, unless
92
+ agreed otherwise in writing:
93
+
94
+ a) A license for components limits the number of installations.
95
+
96
+ b) A license for solutions limits the number of pages per year (throughput) and/or
97
+ the number of parallel processing operations.
98
+
99
+ Developer's License
100
+ -------------------
101
+
102
+ ¹ The developer's license is a license for the use of the software by an application
103
+ developer for the development of the Licensee's software. The licensed software is
104
+ integrated into the Licensee's application software using a programming interface.
105
+
106
+ ² One developer's license is required for each developer's workplace.
107
+
108
+ ³ A developer's license is only valid in combination with a runtime license and may
109
+ not be used as the latter.
110
+
111
+ Test License
112
+ ------------
113
+
114
+ ¹ A test license is required for non-productive use, such as for quality assurance,
115
+ performance measurement, and concept tests.
116
+
117
+ ² A test license presupposes a separate test infrastructure.
118
+
119
+ ³ A test license is only valid in combination with a runtime license and may not be
120
+ used as the latter.
121
+
122
+ Evaluation License
123
+ ------------------
124
+
125
+ ¹ An evaluation license solely serves to establish the suitability of the software to
126
+ be licensed.
127
+
128
+ ² An evaluation license may not be used for development, productive use, or any
129
+ purpose other than evaluation.
130
+
131
+ ³ The evaluation license is valid for 30 days. The operability of the licensed
132
+ software is limited to this period by means of the license key.
133
+
134
+ ⁴ If the licensed software is operated with an evaluation license key, the licensed
135
+ software adds a mark (watermark) to all output files.
136
+
137
+ Project License
138
+ ---------------
139
+
140
+ ¹ A project license is a runtime license limited to the period of use detailed in the
141
+ invoice document.
142
+
143
+ ² Following the expiry of the agreed period of use, as well as for other projects, a
144
+ further project license or runtime license must be acquired.
145
+
146
+ OEM License
147
+ -----------
148
+
149
+ ¹ An OEM license authorizes the Licensee to integrate the licensed software into one
150
+ of the Licensee's software products which is used by the Licensee's customers.
151
+
152
+ ² An OEM license consists of developer and runtime licenses.
153
+
154
+ ³ The precise usage rights of the OEM license, as well as further rights and
155
+ obligations of the parties in connection with the OEM license, are established in a
156
+ separate OEM agreement.
157
+
158
+ Web Application License
159
+ -----------------------
160
+
161
+ ¹ A web application license is required if the licensed software is operated on a web
162
+ server as an element of a web application (application software) belonging to the
163
+ Licensee and is used by the users in a web browser.
164
+
165
+ ² A web application license authorizes use of the licensed software in the manner
166
+ detailed in the invoice documentation.
167
+
168
+ Service Provider License
169
+ ------------------------
170
+
171
+ ¹ A Service Provider license is required if the licensed software is operated as an
172
+ element of a web service of the Licensee that is used by the Licensee's customers.
173
+
174
+ ² The precise usage rights of the Service Provider license, as well as further rights
175
+ and obligations of the parties in connection with the Service Provider license, are
176
+ established in a separate service provider agreement.
177
+
178
+ License Model
179
+ =============
180
+
181
+ Perpetual
182
+ ---------
183
+
184
+ ¹ In the perpetual model, the usage right of the software is for an unlimited period
185
+ of time. The software can be used after the maintenance has expired in versions that
186
+ are not newer than the expiry of the maintenance.
187
+
188
+ Software as a Subscription
189
+ --------------------------
190
+
191
+ ¹ In the Software as a Subscription model, the duration of the usage right of the
192
+ software is bound to a subscription. During the subscription, the licensee has access
193
+ to the current version of the software.
194
+
195
+ ² Unless agreed otherwise, the subscription runs for one (1) year. Following the
196
+ expiry of this year, the subscription is automatically renewed by a further year
197
+ unless the Licensee terminates it in writing with a notice period of thirty (30) days
198
+ from the end of the subscription.
199
+
200
+ Product types
201
+ =============
202
+
203
+ ¹ The products provided by PDF Tools AG can be divided into two categories:
204
+ components and solutions.
205
+
206
+ Components
207
+ ----------
208
+
209
+ ¹ **API**: An API (Application Programming Interface) is a software component used by
210
+ programmers. It provides productspecific functions for programmatic processing.
211
+
212
+ ² **Shell Tool**: A shell tool is a software component, that is used from command
213
+ line. It provides product-specific functions for programmatic processing and is used
214
+ by experts to execute processing operations or automate them using shell scripts.
215
+
216
+ Solutions
217
+ ---------
218
+
219
+ ¹ Solutions are software programs that can be operated independently on the
220
+ Licensee's infrastructure. They offer PDF processing services in the form of web
221
+ services, watched file and mail folders, and more.
222
+
223
+ Audit
224
+ =====
225
+
226
+ ¹ The Licensee is obliged to carry out a self-audit at the end of an agreement
227
+ year. The Licensee shall report components to PDF Tools AG per number of
228
+ installations. For solutions, the number of installations is reported, as well as the
229
+ effectively processed number of pages, which can be taken from the page counter.
230
+
231
+ ² PDF Tools AG has the right, within the scope of a formal audit, to carry out a
232
+ check of the use of the licensed software. The Licensee must be informed in writing
233
+ of a formal audit by PDF Tools AG at least 5 working days in advance. This audit may
234
+ be conducted by PDF Tools AG itself or by a commissioned representative of PDF Tools
235
+ AG. Should a formal audit reveal that the Licensee's licensing has not been carried
236
+ out correctly, the Licensee will then have 10 days to order a correct license and
237
+ make all outstanding payments.
238
+
239
+ Intellectual Property Rights
240
+ ============================
241
+
242
+ ¹ The Licensee acknowledges and confirms that the licensed software and its
243
+ documentation and license keys contain valuable business secrets and information, and
244
+ that these, as well as the copyright and commercial protective rights over them, are
245
+ the property of PDF Tools AG.
246
+
247
+ ² All business secrets and information, as well as all not generally known
248
+ information that relates to the business activities of PDF Tools AG and which the
249
+ Licensee has gained access to while executing this agreement (e.g. software
250
+ libraries), as well as the specific content of the agreement, must be treated by the
251
+ Licensee as strictly confidential, not published, and not shared with third parties
252
+ either partially or in full.
253
+
254
+ ³ The Licensee must also subject its employees and subcontractors to this same
255
+ obligation. The Licensee is obliged to protect confidentiality to at least the same
256
+ extent that it protects its own confidential material.
257
+
258
+ ⁴ The Licensee is prohibited from reverse engineering or retranslating the licensed
259
+ software, or from attempting to do so. The Licensee may neither permit nor support
260
+ this, nor allow others to do so.
261
+
262
+ Trademark Protection
263
+ ====================
264
+
265
+ ¹ 3-Heights® and 4-Heights® are registered trademark of PDF Tools AG.
266
+
267
+ ² The Licensee may not use the „3-Heights®“ or „4-Heights®“ registered trademarks
268
+ without approval from PDF Tools AG.
269
+
270
+ Warranty and Liability
271
+ ======================
272
+
273
+ Warranty
274
+ --------
275
+
276
+ ¹ PDF Tools AG confirms that the software corresponds to the most recently valid and
277
+ trialed version at the time of licensing.
278
+
279
+ ² Should serious errors appear on a suitable operating system platform within thirty
280
+ (30) days of the date of invoicing for the unaltered software, the Licensee shall
281
+ have the right to demand a maintenance release. A serious error exists if the
282
+ software cannot be used productively.
283
+
284
+ ³ Any further warranty is waived within the statutory limits.
285
+
286
+ Right of Return
287
+ ---------------
288
+
289
+ ¹ Should the program contain unacceptable defects, namely, if it is not in a position
290
+ to fulfill essential applications, functions, and services as guaranteed or required
291
+ by the intended use, the Licensee may return the program and the documentation
292
+ against reimbursement of the license fee. When returning the product, the Licensee
293
+ must confirm in writing that all copies of the program have been deleted and are no
294
+ longer in use. PDF Tools AG has the right to check these circumstances on site.
295
+
296
+ ² The right of return expires thirty (30) days after the license agreements came into
297
+ effect.
298
+
299
+ Legal Warranty/Indemnification for Software Modifications
300
+ ---------------------------------------------------------
301
+
302
+ ¹ PDF Tools AG shall fend off any claims from third parties relating to the breach of
303
+ property rights at its own cost and risk. Should a third party initiate legal
304
+ proceedings against PDF Tools AG, the latter shall inform the Licensee of this.
305
+
306
+ ² Should the third party address the demands directly to the Licensee, the latter is
307
+ obliged to immediately inform PDF Tools AG of this. In this case, PDF Tools AG shall
308
+ assume control of the proceedings as per the relevant provisions of the applicable
309
+ procedural law.
310
+
311
+ ³ Should the Licensee render the use of the software wholly or partially impossible
312
+ due to property claims made, PDF Tools AG has the choice of either replacing the
313
+ standard software with other software or changing its performance in such a way that
314
+ it no longer violates any third-party rights but still corresponds to the
315
+ contractually agreed scope of performance, or, at its own cost, procuring a license
316
+ from the third party. Should PDF Tools AG not implement any of these options within a
317
+ suitable period, the Licensee may then immediately terminate the agreement. Further
318
+ claims of the Licensee are excluded.
319
+
320
+ ⁴ Should the Licensee itself have to deal with the property right infringement, the
321
+ claims against PDF Tools AG are excluded. PDF Tools AG in particular bears no
322
+ responsibility for the enforcement of all claims for patent and property rights which
323
+ arise from a version of the licensed software that has been modified and mixed with
324
+ other software components.
325
+
326
+ ⁵ The Licensee indemnifies PDF Tools AG for damages and liability claims arising from
327
+ the modification or mixing of the licensed software with other software components.
328
+
329
+ Limitation of Liability
330
+ -----------------------
331
+
332
+ ¹ PDF Tools AG accepts liability for direct damage that is shown to have been caused
333
+ by it intentionally or negligently during the provision of services under the present
334
+ agreement. It accepts liability up to the sum of the damage incurred, but for no more
335
+ than the license fee amount paid by the Licensee within a year for the software
336
+ causing the damage.
337
+
338
+ ² The liability of PDF Tools AG for slight negligence and for indirect damage,
339
+ consequential damage, or data loss is, in so far as legally permissible, excluded. In
340
+ particular, PDF Tools AG does not accept liability for the results created with the
341
+ software/program, for loss of profit, or for other financial losses on the part of
342
+ the Licensee. PDF Tools AG accepts liability for personal damage in accordance with
343
+ the law.
344
+
345
+ Maintenance
346
+ ===========
347
+
348
+ Maintenance Services, Start and Duration
349
+ ----------------------------------------
350
+
351
+ ¹ The Licensee may optionally agree on the provision of maintenance services with PDF
352
+ Tools AG against payment of a maintenance fee. In this case, the Licensee is
353
+ authorized during the maintenance period to update the licensed software with new
354
+ versions, use it within the scope of the licensing terms, and receive technical
355
+ support.
356
+
357
+ ² The maintenance service is made available upon delivery of the licensed software
358
+ and runs for one (1) year, unless agreed otherwise. Following the expiry of this
359
+ year, the maintenance service is automatically renewed by a further year unless the
360
+ Licensee terminates it in writing with a notice period of thirty (30) days from the
361
+ end of the maintenance year.
362
+
363
+ ³ For the same product or bundle of product, either all or none of the licenses in
364
+ use by the Licensee are under maintenance.
365
+
366
+ ⁴ Unless agreed otherwise, the maintenance service is included with the model
367
+ Software as a Subscription.
368
+
369
+ Amount of the Maintenance Fee
370
+ -----------------------------
371
+
372
+ ¹ Unless agreed otherwise, the maintenance fee for the period of one year amounts to
373
+ 20 percent of the agreed licensing fee.
374
+
375
+ ² In the case of maintenance fees of less than 100 euro, a minimum amount of 100 euro
376
+ will be calculated for the renewals.
377
+
378
+ ³ PDF Tools AG reserves the right to adjust the maintenance fee in the following
379
+ years on the basis of actual use.
380
+
381
+ Technical Support
382
+ -----------------
383
+
384
+ ¹ Technical support refers to responding to queries by electronic mail between 08:00
385
+ and 16:00 GMT, Monday to Friday, and is limited to the logging of reported errors,
386
+ the establishment of whether the errors were caused by the licensed software, and
387
+ support in finding workarounds, as well as, within the scope of updates, the delivery
388
+ of corrected versions of the licensed software should this have caused the error.
389
+
390
+ ² Technical support is guaranteed if the error is evident on a PDF Tools AG computer
391
+ and if the licensed software was not changed. Training is not included as part of the
392
+ maintenance services.
393
+
394
+ New Versions of the Licensed Software
395
+ -------------------------------------
396
+
397
+ ¹ If the Licensee has concluded a maintenance agreement as per the present Clause 10,
398
+ it is entitled to obtain new versions of the licensed software as soon as these are
399
+ made available by PDF Tools AG.
400
+
401
+ ² The Licensee shall receive one (1) copy of the new version of the licensed
402
+ software. PDF Tools provides labelled Long-Term-Support (LTS) versions of the
403
+ licensed software and supports those up to 24 months after initial release by
404
+ technical support and bug fixing.
405
+
406
+ Extraordinary Termination and/or Interruption of the Maintenance Service
407
+ -------------------------------------------------------------------------
408
+
409
+ ¹ PDF Tools AG may interrupt or discontinue the delivery of maintenance services at
410
+ any time should the Licensee not fulfill its obligations such as payment of the
411
+ license or maintenance fees or other contractual obligations.
412
+
413
+ Data Protection
414
+ ===============
415
+
416
+ ¹ The Licensee is informed of, and, upon ordering, grants approval for the fact that
417
+ personal data is collected, such as surname, name, invoicing, installation and
418
+ delivery address, telephone number, email address, bank details, and characteristics
419
+ for user identification, information about the start, end, and scope of the
420
+ respective use of PDF Tools AG within the context of the order and for the purpose of
421
+ executing the agreement and improving the services; where necessary, this information
422
+ may also be used internationally if this is necessary for the purpose of executing
423
+ the agreement.
424
+
425
+ Amendment and Duration
426
+ ======================
427
+
428
+ ¹ The General Licensing Terms may be adjusted at any time by PDF Tools AG. The
429
+ General Licensing Terms valid at the time of concluding the agreement apply.
430
+
431
+ Severability Clause
432
+ ===================
433
+
434
+ ¹ Should a provision of the present agreement be deemed invalid by a competent court,
435
+ this shall not have any effect on the validity of the rest of the agreement.
436
+
437
+ ² Instead of the invalid term, a provision that comes as close as possible to the
438
+ sense of the original solution should apply.
439
+
440
+ Applicable Law and Place of Jurisdiction
441
+ ========================================
442
+
443
+ ¹ This agreement is subject to Swiss law.
444
+
445
+ ² The place of jurisdiction for complaints against the License Supplier is
446
+ exclusively the headquarters of PDF Tools AG.
package/README.md ADDED
@@ -0,0 +1,145 @@
1
+ # PDF Web Viewer
2
+
3
+ [PDF Web Viewer](https://www.pdf-tools.com/products/viewing-printing/pdf-web-viewer/) by Pdftools, Switzerland, is a JavaScript component for viewing and annotating PDFs.
4
+
5
+ - High PDF rendering quality, high performance, low footprint (webassemblies)
6
+ - Responsive UI with no external dependencies
7
+ - Support for mobile devices
8
+ - Creation and editing of PDF annotations
9
+ - PDF form filling
10
+ - Reading and writing of FDF files
11
+ - A multitude of configuration options
12
+ - Easy integration in many JavaScript frameworks
13
+ - Easy evaluation without the necessity of a license key
14
+
15
+ See our [online demo](https://www.pdf-tools.com/pdfwebviewer/).
16
+
17
+ ## Installation
18
+
19
+ Install the package with:
20
+
21
+ ```
22
+ npm i @pdftools/four-heights-pdf-web-viewer --save
23
+ ```
24
+
25
+ ### Static Assets
26
+
27
+ PDF Web Viewer comes with static assets and resource files (web assemblies, JavaScript files, translation json files) contained in the packet's `pdfwebviewer` sub-directory. These need to be served with your application from a "base URL", an absolute or relative path which must be defined prior to loading PDF Web Viewer, e.g. in the HTML file as:
28
+
29
+ ```html
30
+ <script type="text/javascript">
31
+ window.PDFTOOLS_FOURHEIGHTS_PDFVIEWING_BASEURL = './pdfwebviewer/'
32
+ </script>
33
+ ```
34
+
35
+ After installing or updating ensure that all static assets are copied.
36
+
37
+ Manual copying in a shell is possible, but not recommended, because it is easily forgotten. E.g, if `PDFTOOLS_FOURHEIGHTS_PDFVIEWING_BASEURL` is defined as above and your main directory for static assets is `static`:
38
+
39
+ ```sh
40
+ cp -R ./node_modules/@pdftools/four-heights-pdf-web-viewer/pdfwebviewer ./static
41
+ ```
42
+
43
+ Instead of manual copying, we recommend to use a bundler which does the work for you on every build.
44
+
45
+ E.g: webpack:
46
+
47
+ ```JavaScript
48
+ const path = require('path')
49
+ const CopyWebpackPlugin = require('copy-webpack-plugin')
50
+
51
+ const pdfwebviewerDir = path.join(
52
+ path.dirname(require.resolve('@pdftools/four-heights-pdf-web-viewer')),
53
+ '../pdfwebviewer'
54
+ )
55
+
56
+ module.exports = {
57
+ ...
58
+ plugins: [
59
+ new CopyWebpackPlugin({
60
+ patterns: [
61
+ {
62
+ from: '**/*',
63
+ to: 'pdfwebviewer', // Should match PDFTOOLS_FOURHEIGHTS_PDFVIEWING_BASEURL
64
+ context: pdfwebviewerDir,
65
+ }
66
+ ],
67
+ }),
68
+ ],
69
+ }
70
+ ```
71
+
72
+ E.g. for Angular in `angular.json`:
73
+
74
+ ```json
75
+ "projects": {
76
+ "angular": {
77
+ "architect": {
78
+ "build": {
79
+ "options": {
80
+ "assets": [
81
+ {
82
+ "glob": "**/*",
83
+ "input": "./node_modules/@pdftools/four-heights-pdf-web-viewer/pdfwebviewer",
84
+ "output": "./pdfwebviewer"
85
+ }
86
+ ],
87
+ },
88
+ },
89
+ }
90
+ }
91
+ },
92
+ ```
93
+
94
+ In the above, the value of `"output"` directory should match `PDFTOOLS_FOURHEIGHTS_PDFVIEWING_BASEURL`.
95
+
96
+ ## Basic usage
97
+
98
+ A simple web application that uses PDF Web Viewer is implemented as follows.
99
+
100
+ `index.html`:
101
+
102
+ ```html
103
+ <!DOCTYPE html>
104
+ <html lang="en">
105
+ <head>
106
+ <meta charset="UTF-8" />
107
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
108
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
109
+ <script type="text/javascript">
110
+ // path to the directory containing the static assets must be set before the viewer is loaded
111
+ window.PDFTOOLS_FOURHEIGHTS_PDFVIEWING_BASEURL = './pdfwebviewer/'
112
+ </script>
113
+ <link rel="stylesheet" type="text/css" href="./pdfwebviewer/pdf-web-viewer.css" />
114
+ <title>PDF Web Viewer</title>
115
+ </head>
116
+ <body>
117
+ <!-- HTM element containing the PdfWebViewer. -->
118
+ <div id="pdfviewer" style="height: 100vh; width: 100vw"></div>
119
+ </body>
120
+ </html>
121
+ ```
122
+
123
+ `index.js`:
124
+
125
+ ```javascript
126
+ import { PdfWebViewer } from '@pdftools/four-heights-pdf-web-viewer'
127
+
128
+ const element = document.getElementById('pdfviewer')
129
+ const license = '' // insert your license key here
130
+
131
+ // see the documentation for all available options
132
+ const options = {}
133
+
134
+ const pdfViewer = new PdfWebViewer(element, license, options)
135
+ ```
136
+
137
+ ## Documentation
138
+
139
+ PDF Web Viewer is documented in more detail in the [manual](https://www.pdf-tools.com/public/downloads/manuals/PdfWebViewer.pdf). This manual is also contained in the package in the `doc` sub-directory.
140
+
141
+ Furthermore, we have some basic examples on how to integrate PDF Web Viewer in Angular, React or plain JavaScript. Please contact us.
142
+
143
+ ## Licensing
144
+
145
+ PDF Web Viewer runs both with or without license. If no license is set a watermark will be applied by default. If you don't want a watermark to be applied, please [get a free evaluation license](https://www.pdf-tools.com/free-trial/?product_code=_VIEWWEB). If you want to buy a productive license then [request a tailored quote](https://www.pdf-tools.com/contact/?product_code=_VIEWWEB) or contact pdfsales@pdf-tools.com.