@grapecity-software/gcdocs.pdfviewer 7.1.3 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/DsPdf.js +19 -0
  3. package/DsPdf.wasm +0 -0
  4. package/README.md +134 -282
  5. package/docs/assets/search.js +1 -1
  6. package/docs/classes/AnnotationBase.html +4 -4
  7. package/docs/classes/ButtonWidget.html +4 -4
  8. package/docs/classes/ChoiceWidget.html +4 -4
  9. package/docs/classes/CircleAnnotation.html +4 -4
  10. package/docs/classes/DsPdfViewer.html +206 -14
  11. package/docs/classes/FileAttachmentAnnotation.html +4 -4
  12. package/docs/classes/FreeTextAnnotation.html +4 -4
  13. package/docs/classes/GcPdfSearcher.html +145 -6
  14. package/docs/classes/GcPdfViewer.html +197 -13
  15. package/docs/classes/HighlightAnnotation.html +4 -4
  16. package/docs/classes/InkAnnotation.html +4 -4
  17. package/docs/classes/LineAnnotation.html +4 -4
  18. package/docs/classes/LinkAnnotation.html +4 -4
  19. package/docs/classes/MarkupAnnotation.html +5 -4
  20. package/docs/classes/PolyLineAnnotation.html +4 -4
  21. package/docs/classes/PolygonAnnotation.html +4 -4
  22. package/docs/classes/PopupAnnotation.html +4 -4
  23. package/docs/classes/RedactAnnotation.html +4 -4
  24. package/docs/classes/ReplaceTextAnnotation.html +420 -0
  25. package/docs/classes/SignatureAnnotation.html +4 -4
  26. package/docs/classes/SoundAnnotation.html +4 -4
  27. package/docs/classes/SquareAnnotation.html +4 -4
  28. package/docs/classes/SquigglyAnnotation.html +4 -4
  29. package/docs/classes/StampAnnotation.html +4 -4
  30. package/docs/classes/StrikeOutAnnotation.html +4 -4
  31. package/docs/classes/TextAnnotation.html +4 -4
  32. package/docs/classes/TextWidget.html +4 -4
  33. package/docs/classes/UnderlineAnnotation.html +4 -4
  34. package/docs/classes/ViewerOptions.html +36 -6
  35. package/docs/classes/WidgetAnnotation.html +4 -4
  36. package/docs/enums/AnnotationTypeCode.html +9 -4
  37. package/docs/enums/ModificationType.html +4 -4
  38. package/docs/enums/SharedAccessMode.html +4 -4
  39. package/docs/enums/TextAlignmentType.html +4 -4
  40. package/docs/index.html +14 -4
  41. package/docs/interfaces/IGCEventBus.html +4 -4
  42. package/docs/types/AnnotationMarkedStateType.html +9 -4
  43. package/docs/types/AnnotationReviewStateType.html +9 -4
  44. package/docs/types/AnnotationStateModel.html +9 -4
  45. package/docs/types/AnnotationTypeName.html +10 -5
  46. package/docs/types/BusEventName.html +9 -4
  47. package/docs/types/DocumentListItem.html +9 -4
  48. package/docs/types/FieldAppearanceRenderingType.html +9 -4
  49. package/docs/types/FontFormat.html +138 -0
  50. package/docs/types/FormFieldMapping.html +9 -4
  51. package/docs/types/FormFillerSettings.html +9 -4
  52. package/docs/types/GcProps.html +9 -4
  53. package/docs/types/InputFieldMapping.html +9 -4
  54. package/docs/types/JsCancelEventArgs.html +9 -4
  55. package/docs/types/JsEventArgs.html +9 -4
  56. package/docs/types/JsExecutionConfig.html +9 -4
  57. package/docs/types/KeyboardShortcutDefinition.html +9 -4
  58. package/docs/types/KeyboardShortcutTool.html +9 -4
  59. package/docs/types/LineEndStyle.html +9 -4
  60. package/docs/types/LinkDestinationType.html +9 -4
  61. package/docs/types/LinkType.html +9 -4
  62. package/docs/types/LogLevel.html +9 -4
  63. package/docs/types/ModificationsState.html +9 -4
  64. package/docs/types/NamedAction.html +9 -4
  65. package/docs/types/OpenAction.html +9 -4
  66. package/docs/types/OpenParameters.html +9 -4
  67. package/docs/types/OptionalContentConfig.html +9 -4
  68. package/docs/types/OptionalContentGroup.html +9 -4
  69. package/docs/types/PageLayout.html +10 -5
  70. package/docs/types/PageMode.html +9 -4
  71. package/docs/types/PageModification.html +9 -4
  72. package/docs/types/PageStructureChange.html +9 -4
  73. package/docs/types/PageViewport.html +9 -4
  74. package/docs/types/PdfOrganizerSettings.html +9 -4
  75. package/docs/types/ReplaceTextModel.html +171 -0
  76. package/docs/types/ReplaceTextSettings.html +143 -0
  77. package/docs/types/ReplyToolSettings.html +11 -6
  78. package/docs/types/RotationInit.html +9 -4
  79. package/docs/types/RulerLine.html +9 -4
  80. package/docs/types/SaveSettings.html +21 -7
  81. package/docs/types/ScrollPageIntoViewOptions.html +9 -4
  82. package/docs/types/SelectedTextCoordinates.html +147 -0
  83. package/docs/types/SharedDocumentInfo.html +9 -4
  84. package/docs/types/SignToolSettings.html +9 -4
  85. package/docs/types/SignatureInfo.html +9 -4
  86. package/docs/types/SignatureInformation.html +9 -4
  87. package/docs/types/StampCategory.html +9 -4
  88. package/docs/types/StructTreeContent.html +9 -4
  89. package/docs/types/StructTreeNode.html +9 -4
  90. package/docs/types/StructureChanges.html +9 -4
  91. package/docs/types/SupportApiSettings.html +9 -4
  92. package/docs/types/TextMarkupContextMenuSettings.html +9 -4
  93. package/docs/types/ToolbarButtonKey.html +10 -5
  94. package/docs/types/UndoChangeName.html +9 -4
  95. package/docs/types/UserAccess.html +9 -4
  96. package/docs/types/ViewerFeatureName.html +12 -6
  97. package/docs/types/ViewerPreferences.html +19 -5
  98. package/docs/types/WidgetFieldTypeName.html +9 -4
  99. package/gcpdfviewer.js +1 -1
  100. package/gcpdfviewer.worker.js +1 -1
  101. package/index-wasm-server.html +35 -0
  102. package/index-wasm.html +34 -0
  103. package/localization/en-pdf-viewer.json +82 -19
  104. package/package.json +1 -1
  105. package/resources/images/Stamps/Dynamics/received-01.png +0 -0
  106. package/resources/images/Stamps/Dynamics/received.png +0 -0
  107. package/resources/images/Stamps/Dynamics/reviewed-01.png +0 -0
  108. package/resources/images/Stamps/Dynamics/reviewed.png +0 -0
  109. package/resources/images/Stamps/Dynamics/revised-01.png +0 -0
  110. package/resources/images/Stamps/Dynamics/revised.png +0 -0
  111. package/resources/images/Stamps/Sign/checkMark.png +0 -0
  112. package/resources/images/Stamps/Sign/crossMark.png +0 -0
  113. package/resources/images/Stamps/Sign/initialHere.png +0 -0
  114. package/resources/images/Stamps/Sign/signHere.png +0 -0
  115. package/resources/images/Stamps/Sign/witness.png +0 -0
  116. package/resources/images/Stamps/Standard/approved.png +0 -0
  117. package/resources/images/Stamps/Standard/completed.png +0 -0
  118. package/resources/images/Stamps/Standard/confidential.png +0 -0
  119. package/resources/images/Stamps/Standard/draft.png +0 -0
  120. package/resources/images/Stamps/Standard/final.png +0 -0
  121. package/resources/images/Stamps/Standard/forComment.png +0 -0
  122. package/resources/images/Stamps/Standard/forPublicRelease.png +0 -0
  123. package/resources/images/Stamps/Standard/informationsOnly.png +0 -0
  124. package/resources/images/Stamps/Standard/notApproved.png +0 -0
  125. package/resources/images/Stamps/Standard/notForPublicRelease.png +0 -0
  126. package/resources/images/Stamps/Standard/preliminaryResults.png +0 -0
  127. package/resources/images/Stamps/Standard/void.png +0 -0
  128. package/resources/images/Stamps_ja/Dynamics/received-01.png +0 -0
  129. package/resources/images/Stamps_ja/Dynamics/received.png +0 -0
  130. package/resources/images/Stamps_ja/Dynamics/reviewed-01.png +0 -0
  131. package/resources/images/Stamps_ja/Dynamics/reviewed.png +0 -0
  132. package/resources/images/Stamps_ja/Dynamics/revised-01.png +0 -0
  133. package/resources/images/Stamps_ja/Dynamics/revised.png +0 -0
  134. package/resources/images/Stamps_ja/Sign/checkMark.png +0 -0
  135. package/resources/images/Stamps_ja/Sign/crossMark.png +0 -0
  136. package/resources/images/Stamps_ja/Sign/initialHere.png +0 -0
  137. package/resources/images/Stamps_ja/Sign/signHere.png +0 -0
  138. package/resources/images/Stamps_ja/Sign/witness.png +0 -0
  139. package/resources/images/Stamps_ja/Standard/approved.png +0 -0
  140. package/resources/images/Stamps_ja/Standard/completed.png +0 -0
  141. package/resources/images/Stamps_ja/Standard/confidential.png +0 -0
  142. package/resources/images/Stamps_ja/Standard/draft.png +0 -0
  143. package/resources/images/Stamps_ja/Standard/final.png +0 -0
  144. package/resources/images/Stamps_ja/Standard/forComment.png +0 -0
  145. package/resources/images/Stamps_ja/Standard/forPublicRelease.png +0 -0
  146. package/resources/images/Stamps_ja/Standard/informationsOnly.png +0 -0
  147. package/resources/images/Stamps_ja/Standard/notApproved.png +0 -0
  148. package/resources/images/Stamps_ja/Standard/notForPublicRelease.png +0 -0
  149. package/resources/images/Stamps_ja/Standard/preliminaryResults.png +0 -0
  150. package/resources/images/Stamps_ja/Standard/void.png +0 -0
  151. package/resources/images/Stamps_zh/Dynamics/received-01.png +0 -0
  152. package/resources/images/Stamps_zh/Dynamics/received.png +0 -0
  153. package/resources/images/Stamps_zh/Dynamics/reviewed-01.png +0 -0
  154. package/resources/images/Stamps_zh/Dynamics/reviewed.png +0 -0
  155. package/resources/images/Stamps_zh/Dynamics/revised-01.png +0 -0
  156. package/resources/images/Stamps_zh/Dynamics/revised.png +0 -0
  157. package/resources/images/Stamps_zh/Sign/checkMark.png +0 -0
  158. package/resources/images/Stamps_zh/Sign/crossMark.png +0 -0
  159. package/resources/images/Stamps_zh/Sign/initialHere.png +0 -0
  160. package/resources/images/Stamps_zh/Sign/signHere.png +0 -0
  161. package/resources/images/Stamps_zh/Sign/witness.png +0 -0
  162. package/resources/images/Stamps_zh/Standard/approved.png +0 -0
  163. package/resources/images/Stamps_zh/Standard/completed.png +0 -0
  164. package/resources/images/Stamps_zh/Standard/confidential.png +0 -0
  165. package/resources/images/Stamps_zh/Standard/draft.png +0 -0
  166. package/resources/images/Stamps_zh/Standard/final.png +0 -0
  167. package/resources/images/Stamps_zh/Standard/forComment.png +0 -0
  168. package/resources/images/Stamps_zh/Standard/forPublicRelease.png +0 -0
  169. package/resources/images/Stamps_zh/Standard/informationsOnly.png +0 -0
  170. package/resources/images/Stamps_zh/Standard/notApproved.png +0 -0
  171. package/resources/images/Stamps_zh/Standard/notForPublicRelease.png +0 -0
  172. package/resources/images/Stamps_zh/Standard/preliminaryResults.png +0 -0
  173. package/resources/images/Stamps_zh/Standard/void.png +0 -0
  174. package/resources/images/stamps.json +35 -0
  175. package/run_wasm.cmd +1 -0
  176. package/themes/dark-yellow.css +1 -1
  177. package/themes/dark.css +1 -1
  178. package/themes/gc-blue.css +1 -1
  179. package/themes/light-blue.css +1 -1
  180. package/themes/light.css +1 -1
  181. package/themes/viewer.css +1 -1
  182. package/typings/Annotations/AnnotationPropertyDescriptors.d.ts +4 -0
  183. package/typings/Annotations/AnnotationTypes.d.ts +9 -3
  184. package/typings/Annotations/types.d.ts +2 -1
  185. package/typings/ContextMenu/GcDocumentContextMenu.d.ts +3 -2
  186. package/typings/Dialogs/ProgressDialog.d.ts +11 -1
  187. package/typings/Dialogs/Types.d.ts +2 -2
  188. package/typings/GcPdfViewer.d.ts +42 -2
  189. package/typings/Models/ViewerTypes.d.ts +25 -3
  190. package/typings/ReplaceText/ReplaceTextDialog.d.ts +52 -0
  191. package/typings/ReplaceText/types.d.ts +11 -0
  192. package/typings/ReplyTool/ReplyTool.d.ts +6 -3
  193. package/typings/Search/GcPdfSearcher.d.ts +10 -0
  194. package/typings/Styles/pdfSvgIcons.d.ts +8 -0
  195. package/typings/SupportApi/ISupportApiBase.d.ts +21 -3
  196. package/typings/SupportApi/SupportApiImpl.d.ts +8 -3
  197. package/typings/SupportApi/Wasm/IWasmModule.d.ts +2 -1
  198. package/typings/SupportApi/Wasm/{WasmSupportApi.d.ts → WasmSupportApiBase.d.ts} +10 -3
  199. package/typings/SupportApi/Wasm/WasmSupportApiEmbed.d.ts +6 -0
  200. package/typings/SupportApi/Wasm/WasmSupportApiExtenal.d.ts +6 -0
  201. package/typings/Toolbar/ToolbarItems.d.ts +1 -0
  202. package/typings/Toolbar/controls/PageDisplayDropdown.d.ts +20 -0
  203. package/typings/Toolbar/controls/SaveAsDropdown.d.ts +22 -0
  204. package/typings/Toolbar/controls/types.d.ts +27 -0
  205. package/typings/Utils/GlobalJsFunctions.d.ts +12 -0
  206. package/typings/Utils/ViewerUtils.d.ts +4 -0
  207. package/typings/Utils/embeddedFonts.d.ts +2 -0
  208. package/typings/ViewerOptions.d.ts +10 -2
  209. package/typings/plugin.d.ts +11 -0
  210. package/wasmSupportApi.js +1 -0
  211. package/wasmSupportApiServer.js +1 -0
  212. package/typings/SupportApi/Wasm/WasmModule.d.ts +0 -2
package/CHANGELOG.md CHANGED
@@ -4,6 +4,69 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [7.2.0] - 07-Aug-2024
8
+ ### Added
9
+ - Added Wasm SupportApi option, it enables PDF editing features on the client without connecting to SupportApi/DsPdf on a server.
10
+ ```javascript
11
+ // Example: use client-side Wasm SupportApi:
12
+ function loadPdfViewer(selector) {
13
+ var viewer = new DsPdfViewer(selector, {
14
+ supportApi: {
15
+ implementation: new WasmSupportApi()
16
+ }
17
+ });
18
+ viewer.addDefaultPanels();
19
+ viewer.addAnnotationEditorPanel();
20
+ viewer.addFormEditorPanel();
21
+ }
22
+ ```
23
+ - Added registerFont method: registers a new @font-face style with the given font name and URL.
24
+ Supported font formats include "ttf", "otf", "woff" and "woff2" ("woff2" is not supported by the Wasm SupportApi).
25
+ ```javascript
26
+ // Example 1: Registering a font with name and URL
27
+ viewer.registerFont('CustomFont', 'https://example.com/fonts/customfont.woff');
28
+ // Example 2: Registering a font with name, URL, and format
29
+ viewer.registerFont('AnotherFont', 'https://example.com/fonts/anotherfont.ttf', 'ttf');
30
+ ```
31
+ - Added registerFallbackFont method: registers a fallback font that SupportApi will use when searching for fallback fonts.
32
+ Supported font formats include "ttf", "otf", "woff", and "ttc". Font collections in "ttc" format are also supported.
33
+ ```javascript
34
+ // Example 1: Registering a fallback font with URL:
35
+ viewer.registerFallbackFont('https://example.com/fonts/fallbackfont.ttf');
36
+ // Example 2: Registering a fallback font with name and URL:
37
+ viewer.registerFallbackFont('SampleFont', 'https://example.com/fonts/SampleFont.woff');
38
+ ```
39
+ - Added support for the standard "Zapf Dingbats" font, which can now be selected for text fields and free text annotations.
40
+ - Added a "Save As" button with the toolbar button key "save-as".
41
+ Use the "Save As" button to export the PDF document to various formats (PDF, PNG, SVG).
42
+ The old "Save" and "Save as images" buttons have been removed from the default toolbar layout.
43
+ - Added the ability to export a PDF document to SVG images.
44
+ - Added extended support for pageLayout mode based on initial viewer preferences specified in a PDF document.
45
+ The following pageLayout values specified in the PDF correspond to pageDisplay values in the viewer:
46
+ * TwoColumnLeft: sets pageDisplay to TwoPageScrolling.
47
+ * TwoColumnRight: sets pageDisplay to TwoPageScrolling.
48
+ * TwoPageLeft: sets pageDisplay to TwoPage.
49
+ * TwoPageRight: sets pageDisplay to TwoPage.
50
+ * OneColumn: sets pageDisplay to SinglePageScrolling.
51
+ * SinglePage: sets pageDisplay to SinglePage.
52
+ - Added support for an ECMAScript action that can be performed before the field is formatted to display its value. (DOC-5643)
53
+ - Added support for two pages side by side view. (DOC-6063)
54
+ ### Changed
55
+ - The standard "Symbol" font now saves correctly and displays properly in most PDF viewers.
56
+ - [Toolbar] The "View Mode" button has been replaced with the "Page Display" dropdown menu. (DOC-6063)
57
+ - [Text Tools] Added the ability to create text markup annotations directly from selected text when text is selected.
58
+ ### Fixed
59
+ - [PDF Organizer] Page ranges were not created in some scenarios. (DOC-6345)
60
+
61
+ ## [7.1.4] - 23-Jul-2024
62
+ ### Added
63
+ - Added progress bar for long-running "Save as Images" operations, with the ability to cancel the current operations. (DOC-6301)
64
+ - JPN localization. (DOC-6297)
65
+ ### Fixed
66
+ - [Regression since v7.1.3] Saved PDF file name is different from the argument passed to the viewer.save() API. (DOC-6374)
67
+ - [macOS] Comment cannot be deleted with Delete key on macOS. (DOC-6152)
68
+ - Incorrect content of PDF while previewing on Ionic Modal. (DOC-6209)
69
+
7
70
  ## [7.1.3] - 25-Jun-2024
8
71
  ### Fixed
9
72
  - Thumbnails are not shown when exiting full screen mode with 'NonFullScreenPageMode' set to 'UseThumbs'. (DOC-6293)
package/DsPdf.js ADDED
@@ -0,0 +1,19 @@
1
+
2
+ var createDsPdfModule = (() => {
3
+ var _scriptName = typeof document != 'undefined' ? document.currentScript?.src : undefined;
4
+
5
+ return (
6
+ function(moduleArg = {}) {
7
+ var moduleRtn;
8
+
9
+ var Module=Object.assign({},moduleArg);var readyPromiseResolve,readyPromiseReject;var readyPromise=new Promise((resolve,reject)=>{readyPromiseResolve=resolve;readyPromiseReject=reject});var ENVIRONMENT_IS_WEB=true;var ENVIRONMENT_IS_WORKER=false;var moduleOverrides=Object.assign({},Module);var arguments_=[];var thisProgram="./this.program";var quit_=(status,toThrow)=>{throw toThrow};var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary;if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(typeof document!="undefined"&&document.currentScript){scriptDirectory=document.currentScript.src}if(_scriptName){scriptDirectory=_scriptName}if(scriptDirectory.startsWith("blob:")){scriptDirectory=""}else{scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1)}{read_=url=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};if(ENVIRONMENT_IS_WORKER){readBinary=url=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}}readAsync=(url,onload,onerror)=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=()=>{if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}}else{}var out=Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.error.bind(console);Object.assign(Module,moduleOverrides);moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["quit"])quit_=Module["quit"];var wasmBinary;if(Module["wasmBinary"])wasmBinary=Module["wasmBinary"];var wasmMemory;var ABORT=false;var EXITSTATUS;var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateMemoryViews(){var b=wasmMemory.buffer;Module["HEAP8"]=HEAP8=new Int8Array(b);Module["HEAP16"]=HEAP16=new Int16Array(b);Module["HEAPU8"]=HEAPU8=new Uint8Array(b);Module["HEAPU16"]=HEAPU16=new Uint16Array(b);Module["HEAP32"]=HEAP32=new Int32Array(b);Module["HEAPU32"]=HEAPU32=new Uint32Array(b);Module["HEAPF32"]=HEAPF32=new Float32Array(b);Module["HEAPF64"]=HEAPF64=new Float64Array(b)}var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnInit(cb){__ATINIT__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++;Module["monitorRunDependencies"]?.(runDependencies)}function removeRunDependency(id){runDependencies--;Module["monitorRunDependencies"]?.(runDependencies);if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}function abort(what){Module["onAbort"]?.(what);what="Aborted("+what+")";err(what);ABORT=true;EXITSTATUS=1;what+=". Build with -sASSERTIONS for more info.";if(runtimeInitialized){___trap()}var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}var dataURIPrefix="data:application/octet-stream;base64,";var isDataURI=filename=>filename.startsWith(dataURIPrefix);function findWasmBinary(){var f="DsPdf.wasm";if(!isDataURI(f)){return locateFile(f)}return f}var wasmBinaryFile;function getBinarySync(file){if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(file)}throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(binaryFile){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if(typeof fetch=="function"){return fetch(binaryFile,{credentials:"same-origin"}).then(response=>{if(!response["ok"]){throw`failed to load wasm binary file at '${binaryFile}'`}return response["arrayBuffer"]()}).catch(()=>getBinarySync(binaryFile))}}return Promise.resolve().then(()=>getBinarySync(binaryFile))}function instantiateArrayBuffer(binaryFile,imports,receiver){return getBinaryPromise(binaryFile).then(binary=>WebAssembly.instantiate(binary,imports)).then(receiver,reason=>{err(`failed to asynchronously prepare wasm: ${reason}`);abort(reason)})}function instantiateAsync(binary,binaryFile,imports,callback){if(!binary&&typeof WebAssembly.instantiateStreaming=="function"&&!isDataURI(binaryFile)&&typeof fetch=="function"){return fetch(binaryFile,{credentials:"same-origin"}).then(response=>{var result=WebAssembly.instantiateStreaming(response,imports);return result.then(callback,function(reason){err(`wasm streaming compile failed: ${reason}`);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(binaryFile,imports,callback)})})}return instantiateArrayBuffer(binaryFile,imports,callback)}function getWasmImports(){return{"a":wasmImports}}function createWasm(){var info=getWasmImports();function receiveInstance(instance,module){wasmExports=instance.exports;wasmExports=applySignatureConversions(wasmExports);wasmMemory=wasmExports["m"];updateMemoryViews();addOnInit(wasmExports["n"]);removeRunDependency("wasm-instantiate");return wasmExports}addRunDependency("wasm-instantiate");function receiveInstantiationResult(result){receiveInstance(result["instance"])}if(Module["instantiateWasm"]){try{return Module["instantiateWasm"](info,receiveInstance)}catch(e){err(`Module.instantiateWasm callback failed with error: ${e}`);readyPromiseReject(e)}}if(!wasmBinaryFile)wasmBinaryFile=findWasmBinary();instantiateAsync(wasmBinary,wasmBinaryFile,info,receiveInstantiationResult).catch(readyPromiseReject);return{}}function ExitStatus(status){this.name="ExitStatus";this.message=`Program terminated with exit(${status})`;this.status=status}var callRuntimeCallbacks=callbacks=>{while(callbacks.length>0){callbacks.shift()(Module)}};var getCppExceptionTag=()=>wasmExports["B"];var getCppExceptionThrownObjectFromWebAssemblyException=ex=>{var unwind_header=ex.getArg(getCppExceptionTag(),0);return ___thrown_object_from_unwind_exception(unwind_header)};var stackSave=()=>_emscripten_stack_get_current();var stackRestore=val=>__emscripten_stack_restore(val);var stackAlloc=sz=>__emscripten_stack_alloc(sz);var UTF8Decoder=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):undefined;var UTF8ArrayToString=(heapOrArray,idx,maxBytesToRead)=>{idx>>>=0;var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heapOrArray[endPtr]&&!(endPtr>=endIdx))++endPtr;if(endPtr-idx>16&&heapOrArray.buffer&&UTF8Decoder){return UTF8Decoder.decode(heapOrArray.subarray(idx,endPtr))}var str="";while(idx<endPtr){var u0=heapOrArray[idx++];if(!(u0&128)){str+=String.fromCharCode(u0);continue}var u1=heapOrArray[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}var u2=heapOrArray[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2}else{u0=(u0&7)<<18|u1<<12|u2<<6|heapOrArray[idx++]&63}if(u0<65536){str+=String.fromCharCode(u0)}else{var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}}return str};var UTF8ToString=(ptr,maxBytesToRead)=>{ptr>>>=0;return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""};var getExceptionMessageCommon=ptr=>{var sp=stackSave();var type_addr_addr=stackAlloc(4);var message_addr_addr=stackAlloc(4);___get_exception_message(ptr,type_addr_addr,message_addr_addr);var type_addr=HEAPU32[type_addr_addr>>>2>>>0];var message_addr=HEAPU32[message_addr_addr>>>2>>>0];var type=UTF8ToString(type_addr);_free(type_addr);var message;if(message_addr){message=UTF8ToString(message_addr);_free(message_addr)}stackRestore(sp);return[type,message]};var getExceptionMessage=ex=>{var ptr=getCppExceptionThrownObjectFromWebAssemblyException(ex);return getExceptionMessageCommon(ptr)};Module["getExceptionMessage"]=getExceptionMessage;function getValue(ptr,type="i8"){if(type.endsWith("*"))type="*";switch(type){case"i1":return HEAP8[ptr>>>0];case"i8":return HEAP8[ptr>>>0];case"i16":return HEAP16[ptr>>>1>>>0];case"i32":return HEAP32[ptr>>>2>>>0];case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return HEAPF32[ptr>>>2>>>0];case"double":return HEAPF64[ptr>>>3>>>0];case"*":return HEAPU32[ptr>>>2>>>0];default:abort(`invalid type for getValue: ${type}`)}}var noExitRuntime=Module["noExitRuntime"]||true;function setValue(ptr,value,type="i8"){if(type.endsWith("*"))type="*";switch(type){case"i1":HEAP8[ptr>>>0]=value;break;case"i8":HEAP8[ptr>>>0]=value;break;case"i16":HEAP16[ptr>>>1>>>0]=value;break;case"i32":HEAP32[ptr>>>2>>>0]=value;break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":HEAPF32[ptr>>>2>>>0]=value;break;case"double":HEAPF64[ptr>>>3>>>0]=value;break;case"*":HEAPU32[ptr>>>2>>>0]=value;break;default:abort(`invalid type for setValue: ${type}`)}}var convertI32PairToI53Checked=(lo,hi)=>hi+2097152>>>0<4194305-!!lo?(lo>>>0)+hi*4294967296:NaN;function ___assert_fail(condition,filename,line,func){condition>>>=0;filename>>>=0;func>>>=0;abort(`Assertion failed: ${UTF8ToString(condition)}, at: `+[filename?UTF8ToString(filename):"unknown filename",line,func?UTF8ToString(func):"unknown function"])}var ___throw_exception_with_stack_trace=ex=>{var e=new WebAssembly.Exception(getCppExceptionTag(),[ex],{traceStack:true});e.message=getExceptionMessage(e);throw e};var __abort_js=()=>{abort("")};function __emscripten_memcpy_js(dest,src,num){dest>>>=0;src>>>=0;num>>>=0;return HEAPU8.copyWithin(dest>>>0,src>>>0,src+num>>>0)}var getHeapMax=()=>4294901760;var growMemory=size=>{var b=wasmMemory.buffer;var pages=(size-b.byteLength+65535)/65536;try{wasmMemory.grow(pages);updateMemoryViews();return 1}catch(e){}};function _emscripten_resize_heap(requestedSize){requestedSize>>>=0;var oldSize=HEAPU8.length;var maxHeapSize=getHeapMax();if(requestedSize>maxHeapSize){return false}var alignUp=(x,multiple)=>x+(multiple-x%multiple)%multiple;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=growMemory(newSize);if(replacement){return true}}return false}var ENV={};var getExecutableName=()=>thisProgram||"./this.program";var getEnvStrings=()=>{if(!getEnvStrings.strings){var lang=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8";var env={"USER":"web_user","LOGNAME":"web_user","PATH":"/","PWD":"/","HOME":"/home/web_user","LANG":lang,"_":getExecutableName()};for(var x in ENV){if(ENV[x]===undefined)delete env[x];else env[x]=ENV[x]}var strings=[];for(var x in env){strings.push(`${x}=${env[x]}`)}getEnvStrings.strings=strings}return getEnvStrings.strings};var stringToAscii=(str,buffer)=>{for(var i=0;i<str.length;++i){HEAP8[buffer++>>>0]=str.charCodeAt(i)}HEAP8[buffer>>>0]=0};var _environ_get=function(__environ,environ_buf){__environ>>>=0;environ_buf>>>=0;var bufSize=0;getEnvStrings().forEach((string,i)=>{var ptr=environ_buf+bufSize;HEAPU32[__environ+i*4>>>2>>>0]=ptr;stringToAscii(string,ptr);bufSize+=string.length+1});return 0};var _environ_sizes_get=function(penviron_count,penviron_buf_size){penviron_count>>>=0;penviron_buf_size>>>=0;var strings=getEnvStrings();HEAPU32[penviron_count>>>2>>>0]=strings.length;var bufSize=0;strings.forEach(string=>bufSize+=string.length+1);HEAPU32[penviron_buf_size>>>2>>>0]=bufSize;return 0};var _fd_close=fd=>52;function _fd_read(fd,iov,iovcnt,pnum){iov>>>=0;iovcnt>>>=0;pnum>>>=0;return 52}function _fd_seek(fd,offset_low,offset_high,whence,newOffset){var offset=convertI32PairToI53Checked(offset_low,offset_high);newOffset>>>=0;return 70}var printCharBuffers=[null,[],[]];var printChar=(stream,curr)=>{var buffer=printCharBuffers[stream];if(curr===0||curr===10){(stream===1?out:err)(UTF8ArrayToString(buffer,0));buffer.length=0}else{buffer.push(curr)}};function _fd_write(fd,iov,iovcnt,pnum){iov>>>=0;iovcnt>>>=0;pnum>>>=0;var num=0;for(var i=0;i<iovcnt;i++){var ptr=HEAPU32[iov>>>2>>>0];var len=HEAPU32[iov+4>>>2>>>0];iov+=8;for(var j=0;j<len;j++){printChar(fd,HEAPU8[ptr+j>>>0])}num+=len}HEAPU32[pnum>>>2>>>0]=num;return 0}var isLeapYear=year=>year%4===0&&(year%100!==0||year%400===0);var arraySum=(array,index)=>{var sum=0;for(var i=0;i<=index;sum+=array[i++]){}return sum};var MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31];var MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31];var addDays=(date,days)=>{var newDate=new Date(date.getTime());while(days>0){var leap=isLeapYear(newDate.getFullYear());var currentMonth=newDate.getMonth();var daysInCurrentMonth=(leap?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR)[currentMonth];if(days>daysInCurrentMonth-newDate.getDate()){days-=daysInCurrentMonth-newDate.getDate()+1;newDate.setDate(1);if(currentMonth<11){newDate.setMonth(currentMonth+1)}else{newDate.setMonth(0);newDate.setFullYear(newDate.getFullYear()+1)}}else{newDate.setDate(newDate.getDate()+days);return newDate}}return newDate};var lengthBytesUTF8=str=>{var len=0;for(var i=0;i<str.length;++i){var c=str.charCodeAt(i);if(c<=127){len++}else if(c<=2047){len+=2}else if(c>=55296&&c<=57343){len+=4;++i}else{len+=3}}return len};var stringToUTF8Array=(str,heap,outIdx,maxBytesToWrite)=>{outIdx>>>=0;if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++>>>0]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++>>>0]=192|u>>6;heap[outIdx++>>>0]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++>>>0]=224|u>>12;heap[outIdx++>>>0]=128|u>>6&63;heap[outIdx++>>>0]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++>>>0]=240|u>>18;heap[outIdx++>>>0]=128|u>>12&63;heap[outIdx++>>>0]=128|u>>6&63;heap[outIdx++>>>0]=128|u&63}}heap[outIdx>>>0]=0;return outIdx-startIdx};function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}var writeArrayToMemory=(array,buffer)=>{HEAP8.set(array,buffer>>>0)};function _strftime(s,maxsize,format,tm){s>>>=0;maxsize>>>=0;format>>>=0;tm>>>=0;var tm_zone=HEAPU32[tm+40>>>2>>>0];var date={tm_sec:HEAP32[tm>>>2>>>0],tm_min:HEAP32[tm+4>>>2>>>0],tm_hour:HEAP32[tm+8>>>2>>>0],tm_mday:HEAP32[tm+12>>>2>>>0],tm_mon:HEAP32[tm+16>>>2>>>0],tm_year:HEAP32[tm+20>>>2>>>0],tm_wday:HEAP32[tm+24>>>2>>>0],tm_yday:HEAP32[tm+28>>>2>>>0],tm_isdst:HEAP32[tm+32>>>2>>>0],tm_gmtoff:HEAP32[tm+36>>>2>>>0],tm_zone:tm_zone?UTF8ToString(tm_zone):""};var pattern=UTF8ToString(format);var EXPANSION_RULES_1={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var rule in EXPANSION_RULES_1){pattern=pattern.replace(new RegExp(rule,"g"),EXPANSION_RULES_1[rule])}var WEEKDAYS=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var MONTHS=["January","February","March","April","May","June","July","August","September","October","November","December"];function leadingSomething(value,digits,character){var str=typeof value=="number"?value.toString():value||"";while(str.length<digits){str=character[0]+str}return str}function leadingNulls(value,digits){return leadingSomething(value,digits,"0")}function compareByDay(date1,date2){function sgn(value){return value<0?-1:value>0?1:0}var compare;if((compare=sgn(date1.getFullYear()-date2.getFullYear()))===0){if((compare=sgn(date1.getMonth()-date2.getMonth()))===0){compare=sgn(date1.getDate()-date2.getDate())}}return compare}function getFirstWeekStartDate(janFourth){switch(janFourth.getDay()){case 0:return new Date(janFourth.getFullYear()-1,11,29);case 1:return janFourth;case 2:return new Date(janFourth.getFullYear(),0,3);case 3:return new Date(janFourth.getFullYear(),0,2);case 4:return new Date(janFourth.getFullYear(),0,1);case 5:return new Date(janFourth.getFullYear()-1,11,31);case 6:return new Date(janFourth.getFullYear()-1,11,30)}}function getWeekBasedYear(date){var thisDate=addDays(new Date(date.tm_year+1900,0,1),date.tm_yday);var janFourthThisYear=new Date(thisDate.getFullYear(),0,4);var janFourthNextYear=new Date(thisDate.getFullYear()+1,0,4);var firstWeekStartThisYear=getFirstWeekStartDate(janFourthThisYear);var firstWeekStartNextYear=getFirstWeekStartDate(janFourthNextYear);if(compareByDay(firstWeekStartThisYear,thisDate)<=0){if(compareByDay(firstWeekStartNextYear,thisDate)<=0){return thisDate.getFullYear()+1}return thisDate.getFullYear()}return thisDate.getFullYear()-1}var EXPANSION_RULES_2={"%a":date=>WEEKDAYS[date.tm_wday].substring(0,3),"%A":date=>WEEKDAYS[date.tm_wday],"%b":date=>MONTHS[date.tm_mon].substring(0,3),"%B":date=>MONTHS[date.tm_mon],"%C":date=>{var year=date.tm_year+1900;return leadingNulls(year/100|0,2)},"%d":date=>leadingNulls(date.tm_mday,2),"%e":date=>leadingSomething(date.tm_mday,2," "),"%g":date=>getWeekBasedYear(date).toString().substring(2),"%G":getWeekBasedYear,"%H":date=>leadingNulls(date.tm_hour,2),"%I":date=>{var twelveHour=date.tm_hour;if(twelveHour==0)twelveHour=12;else if(twelveHour>12)twelveHour-=12;return leadingNulls(twelveHour,2)},"%j":date=>leadingNulls(date.tm_mday+arraySum(isLeapYear(date.tm_year+1900)?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,date.tm_mon-1),3),"%m":date=>leadingNulls(date.tm_mon+1,2),"%M":date=>leadingNulls(date.tm_min,2),"%n":()=>"\n","%p":date=>{if(date.tm_hour>=0&&date.tm_hour<12){return"AM"}return"PM"},"%S":date=>leadingNulls(date.tm_sec,2),"%t":()=>"\t","%u":date=>date.tm_wday||7,"%U":date=>{var days=date.tm_yday+7-date.tm_wday;return leadingNulls(Math.floor(days/7),2)},"%V":date=>{var val=Math.floor((date.tm_yday+7-(date.tm_wday+6)%7)/7);if((date.tm_wday+371-date.tm_yday-2)%7<=2){val++}if(!val){val=52;var dec31=(date.tm_wday+7-date.tm_yday-1)%7;if(dec31==4||dec31==5&&isLeapYear(date.tm_year%400-1)){val++}}else if(val==53){var jan1=(date.tm_wday+371-date.tm_yday)%7;if(jan1!=4&&(jan1!=3||!isLeapYear(date.tm_year)))val=1}return leadingNulls(val,2)},"%w":date=>date.tm_wday,"%W":date=>{var days=date.tm_yday+7-(date.tm_wday+6)%7;return leadingNulls(Math.floor(days/7),2)},"%y":date=>(date.tm_year+1900).toString().substring(2),"%Y":date=>date.tm_year+1900,"%z":date=>{var off=date.tm_gmtoff;var ahead=off>=0;off=Math.abs(off)/60;off=off/60*100+off%60;return(ahead?"+":"-")+String("0000"+off).slice(-4)},"%Z":date=>date.tm_zone,"%%":()=>"%"};pattern=pattern.replace(/%%/g,"\0\0");for(var rule in EXPANSION_RULES_2){if(pattern.includes(rule)){pattern=pattern.replace(new RegExp(rule,"g"),EXPANSION_RULES_2[rule](date))}}pattern=pattern.replace(/\0\0/g,"%");var bytes=intArrayFromString(pattern,false);if(bytes.length>maxsize){return 0}writeArrayToMemory(bytes,s);return bytes.length-1}function _strftime_l(s,maxsize,format,tm,loc){s>>>=0;maxsize>>>=0;format>>>=0;tm>>>=0;loc>>>=0;return _strftime(s,maxsize,format,tm)}var runtimeKeepaliveCounter=0;var keepRuntimeAlive=()=>noExitRuntime||runtimeKeepaliveCounter>0;var _proc_exit=code=>{EXITSTATUS=code;if(!keepRuntimeAlive()){Module["onExit"]?.(code);ABORT=true}quit_(code,new ExitStatus(code))};var exitJS=(status,implicit)=>{EXITSTATUS=status;_proc_exit(status)};var handleException=e=>{if(e instanceof ExitStatus||e=="unwind"){return EXITSTATUS}quit_(1,e)};var stringToUTF8=(str,outPtr,maxBytesToWrite)=>stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite);var stringToNewUTF8=str=>{var size=lengthBytesUTF8(str)+1;var ret=_malloc(size);if(ret)stringToUTF8(str,ret,size);return ret};var wasmImports={a:___assert_fail,b:___throw_exception_with_stack_trace,d:__abort_js,l:__emscripten_memcpy_js,h:_emscripten_resize_heap,i:_environ_get,k:_environ_sizes_get,f:_fd_close,g:_fd_read,j:_fd_seek,c:_fd_write,e:_strftime_l};var wasmExports=createWasm();var ___wasm_call_ctors=()=>(___wasm_call_ctors=wasmExports["n"])();var _init_random=Module["_init_random"]=a0=>(_init_random=Module["_init_random"]=wasmExports["o"])(a0);var _free=Module["_free"]=a0=>(_free=Module["_free"]=wasmExports["p"])(a0);var _malloc=Module["_malloc"]=a0=>(_malloc=Module["_malloc"]=wasmExports["q"])(a0);var _server_version=Module["_server_version"]=()=>(_server_version=Module["_server_version"]=wasmExports["r"])();var _open_document=Module["_open_document"]=(a0,a1)=>(_open_document=Module["_open_document"]=wasmExports["s"])(a0,a1);var _close_document=Module["_close_document"]=()=>(_close_document=Module["_close_document"]=wasmExports["t"])();var _is_uploaded_file=Module["_is_uploaded_file"]=a0=>(_is_uploaded_file=Module["_is_uploaded_file"]=wasmExports["u"])(a0);var _upload_file=Module["_upload_file"]=(a0,a1,a2)=>(_upload_file=Module["_upload_file"]=wasmExports["v"])(a0,a1,a2);var _modify=Module["_modify"]=a0=>(_modify=Module["_modify"]=wasmExports["w"])(a0);var _set_save_settings=Module["_set_save_settings"]=a0=>(_set_save_settings=Module["_set_save_settings"]=wasmExports["x"])(a0);var _download_modified=Module["_download_modified"]=a0=>(_download_modified=Module["_download_modified"]=wasmExports["y"])(a0);var _download_unmodified=Module["_download_unmodified"]=()=>(_download_unmodified=Module["_download_unmodified"]=wasmExports["z"])();var _free_globals=Module["_free_globals"]=()=>(_free_globals=Module["_free_globals"]=wasmExports["A"])();var _main=Module["_main"]=(a0,a1)=>(_main=Module["_main"]=wasmExports["C"])(a0,a1);var ___trap=()=>(___trap=wasmExports["E"])();var __emscripten_stack_restore=a0=>(__emscripten_stack_restore=wasmExports["F"])(a0);var __emscripten_stack_alloc=a0=>(__emscripten_stack_alloc=wasmExports["G"])(a0);var _emscripten_stack_get_current=()=>(_emscripten_stack_get_current=wasmExports["H"])();var ___cxa_decrement_exception_refcount=a0=>(___cxa_decrement_exception_refcount=wasmExports["__cxa_decrement_exception_refcount"])(a0);var ___cxa_increment_exception_refcount=a0=>(___cxa_increment_exception_refcount=wasmExports["__cxa_increment_exception_refcount"])(a0);var ___thrown_object_from_unwind_exception=a0=>(___thrown_object_from_unwind_exception=wasmExports["I"])(a0);var ___get_exception_message=(a0,a1,a2)=>(___get_exception_message=wasmExports["J"])(a0,a1,a2);function applySignatureConversions(wasmExports){wasmExports=Object.assign({},wasmExports);var makeWrapper_pp=f=>a0=>f(a0)>>>0;var makeWrapper_p=f=>()=>f()>>>0;wasmExports["q"]=makeWrapper_pp(wasmExports["q"]);wasmExports["G"]=makeWrapper_pp(wasmExports["G"]);wasmExports["H"]=makeWrapper_p(wasmExports["H"]);return wasmExports}Module["setValue"]=setValue;Module["getValue"]=getValue;Module["UTF8ToString"]=UTF8ToString;Module["stringToNewUTF8"]=stringToNewUTF8;var calledRun;dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller};function callMain(){var entryFunction=_main;var argc=0;var argv=0;try{var ret=entryFunction(argc,argv);exitJS(ret,true);return ret}catch(e){return handleException(e)}}function run(){if(runDependencies>0){return}preRun();if(runDependencies>0){return}function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();preMain();readyPromiseResolve(Module);if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();if(shouldRunNow)callMain();postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("")},1);doRun()},1)}else{doRun()}}if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}var shouldRunNow=true;if(Module["noInitialRun"])shouldRunNow=false;run();moduleRtn=readyPromise;
10
+
11
+
12
+ return moduleRtn;
13
+ }
14
+ );
15
+ })();
16
+ if (typeof exports === 'object' && typeof module === 'object')
17
+ module.exports = createDsPdfModule;
18
+ else if (typeof define === 'function' && define['amd'])
19
+ define([], () => createDsPdfModule);
package/DsPdf.wasm ADDED
Binary file