pdf-oxide-wasm 0.3.40 → 0.3.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundler/pdf_oxide.d.ts +21 -0
- package/bundler/pdf_oxide.js +1 -1
- package/bundler/pdf_oxide_bg.js +196 -114
- package/bundler/pdf_oxide_bg.wasm +0 -0
- package/bundler/pdf_oxide_bg.wasm.d.ts +3 -0
- package/nodejs/pdf_oxide.d.ts +21 -0
- package/nodejs/pdf_oxide.js +200 -115
- package/nodejs/pdf_oxide_bg.wasm +0 -0
- package/nodejs/pdf_oxide_bg.wasm.d.ts +3 -0
- package/package.json +1 -1
- package/web/pdf_oxide.d.ts +24 -0
- package/web/pdf_oxide.js +198 -115
- package/web/pdf_oxide_bg.wasm +0 -0
- package/web/pdf_oxide_bg.wasm.d.ts +3 -0
package/nodejs/pdf_oxide.js
CHANGED
|
@@ -27,7 +27,6 @@ exports.Align = Align;
|
|
|
27
27
|
*/
|
|
28
28
|
class ArtifactStyle {
|
|
29
29
|
static __wrap(ptr) {
|
|
30
|
-
ptr = ptr >>> 0;
|
|
31
30
|
const obj = Object.create(ArtifactStyle.prototype);
|
|
32
31
|
obj.__wbg_ptr = ptr;
|
|
33
32
|
ArtifactStyleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -82,7 +81,7 @@ class ArtifactStyle {
|
|
|
82
81
|
*/
|
|
83
82
|
constructor() {
|
|
84
83
|
const ret = wasm.wasmartifactstyle_new();
|
|
85
|
-
this.__wbg_ptr = ret
|
|
84
|
+
this.__wbg_ptr = ret;
|
|
86
85
|
ArtifactStyleFinalization.register(this, this.__wbg_ptr, this);
|
|
87
86
|
return this;
|
|
88
87
|
}
|
|
@@ -103,7 +102,6 @@ exports.ArtifactStyle = ArtifactStyle;
|
|
|
103
102
|
*/
|
|
104
103
|
class StreamingTable {
|
|
105
104
|
static __wrap(ptr) {
|
|
106
|
-
ptr = ptr >>> 0;
|
|
107
105
|
const obj = Object.create(StreamingTable.prototype);
|
|
108
106
|
obj.__wbg_ptr = ptr;
|
|
109
107
|
StreamingTableFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -218,7 +216,6 @@ exports.StreamingTable = StreamingTable;
|
|
|
218
216
|
*/
|
|
219
217
|
class WasmArtifact {
|
|
220
218
|
static __wrap(ptr) {
|
|
221
|
-
ptr = ptr >>> 0;
|
|
222
219
|
const obj = Object.create(WasmArtifact.prototype);
|
|
223
220
|
obj.__wbg_ptr = ptr;
|
|
224
221
|
WasmArtifactFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -261,7 +258,7 @@ class WasmArtifact {
|
|
|
261
258
|
*/
|
|
262
259
|
constructor() {
|
|
263
260
|
const ret = wasm.wasmartifact_new();
|
|
264
|
-
this.__wbg_ptr = ret
|
|
261
|
+
this.__wbg_ptr = ret;
|
|
265
262
|
WasmArtifactFinalization.register(this, this.__wbg_ptr, this);
|
|
266
263
|
return this;
|
|
267
264
|
}
|
|
@@ -308,7 +305,6 @@ exports.WasmArtifact = WasmArtifact;
|
|
|
308
305
|
*/
|
|
309
306
|
class WasmCertificate {
|
|
310
307
|
static __wrap(ptr) {
|
|
311
|
-
ptr = ptr >>> 0;
|
|
312
308
|
const obj = Object.create(WasmCertificate.prototype);
|
|
313
309
|
obj.__wbg_ptr = ptr;
|
|
314
310
|
WasmCertificateFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -724,7 +720,7 @@ class WasmDocumentBuilder {
|
|
|
724
720
|
*/
|
|
725
721
|
constructor() {
|
|
726
722
|
const ret = wasm.wasmdocumentbuilder_new();
|
|
727
|
-
this.__wbg_ptr = ret
|
|
723
|
+
this.__wbg_ptr = ret;
|
|
728
724
|
WasmDocumentBuilderFinalization.register(this, this.__wbg_ptr, this);
|
|
729
725
|
return this;
|
|
730
726
|
}
|
|
@@ -914,7 +910,6 @@ exports.WasmDocumentBuilder = WasmDocumentBuilder;
|
|
|
914
910
|
*/
|
|
915
911
|
class WasmEmbeddedFont {
|
|
916
912
|
static __wrap(ptr) {
|
|
917
|
-
ptr = ptr >>> 0;
|
|
918
913
|
const obj = Object.create(WasmEmbeddedFont.prototype);
|
|
919
914
|
obj.__wbg_ptr = ptr;
|
|
920
915
|
WasmEmbeddedFontFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -987,7 +982,6 @@ exports.WasmEmbeddedFont = WasmEmbeddedFont;
|
|
|
987
982
|
*/
|
|
988
983
|
class WasmFluentPageBuilder {
|
|
989
984
|
static __wrap(ptr) {
|
|
990
|
-
ptr = ptr >>> 0;
|
|
991
985
|
const obj = Object.create(WasmFluentPageBuilder.prototype);
|
|
992
986
|
obj.__wbg_ptr = ptr;
|
|
993
987
|
WasmFluentPageBuilderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2227,7 +2221,6 @@ exports.WasmFluentPageBuilder = WasmFluentPageBuilder;
|
|
|
2227
2221
|
*/
|
|
2228
2222
|
class WasmFooter {
|
|
2229
2223
|
static __wrap(ptr) {
|
|
2230
|
-
ptr = ptr >>> 0;
|
|
2231
2224
|
const obj = Object.create(WasmFooter.prototype);
|
|
2232
2225
|
obj.__wbg_ptr = ptr;
|
|
2233
2226
|
WasmFooterFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2270,7 +2263,7 @@ class WasmFooter {
|
|
|
2270
2263
|
*/
|
|
2271
2264
|
constructor() {
|
|
2272
2265
|
const ret = wasm.wasmfooter_new();
|
|
2273
|
-
this.__wbg_ptr = ret
|
|
2266
|
+
this.__wbg_ptr = ret;
|
|
2274
2267
|
WasmFooterFinalization.register(this, this.__wbg_ptr, this);
|
|
2275
2268
|
return this;
|
|
2276
2269
|
}
|
|
@@ -2294,7 +2287,6 @@ exports.WasmFooter = WasmFooter;
|
|
|
2294
2287
|
*/
|
|
2295
2288
|
class WasmHeader {
|
|
2296
2289
|
static __wrap(ptr) {
|
|
2297
|
-
ptr = ptr >>> 0;
|
|
2298
2290
|
const obj = Object.create(WasmHeader.prototype);
|
|
2299
2291
|
obj.__wbg_ptr = ptr;
|
|
2300
2292
|
WasmHeaderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2337,7 +2329,7 @@ class WasmHeader {
|
|
|
2337
2329
|
*/
|
|
2338
2330
|
constructor() {
|
|
2339
2331
|
const ret = wasm.wasmheader_new();
|
|
2340
|
-
this.__wbg_ptr = ret
|
|
2332
|
+
this.__wbg_ptr = ret;
|
|
2341
2333
|
WasmHeaderFinalization.register(this, this.__wbg_ptr, this);
|
|
2342
2334
|
return this;
|
|
2343
2335
|
}
|
|
@@ -2375,7 +2367,7 @@ class WasmOcrConfig {
|
|
|
2375
2367
|
*/
|
|
2376
2368
|
constructor() {
|
|
2377
2369
|
const ret = wasm.wasmocrconfig_new();
|
|
2378
|
-
this.__wbg_ptr = ret
|
|
2370
|
+
this.__wbg_ptr = ret;
|
|
2379
2371
|
WasmOcrConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
2380
2372
|
return this;
|
|
2381
2373
|
}
|
|
@@ -2425,7 +2417,7 @@ class WasmOcrEngine {
|
|
|
2425
2417
|
if (r2) {
|
|
2426
2418
|
throw takeObject(r1);
|
|
2427
2419
|
}
|
|
2428
|
-
this.__wbg_ptr = r0
|
|
2420
|
+
this.__wbg_ptr = r0;
|
|
2429
2421
|
WasmOcrEngineFinalization.register(this, this.__wbg_ptr, this);
|
|
2430
2422
|
return this;
|
|
2431
2423
|
} finally {
|
|
@@ -2441,7 +2433,6 @@ exports.WasmOcrEngine = WasmOcrEngine;
|
|
|
2441
2433
|
*/
|
|
2442
2434
|
class WasmPageTemplate {
|
|
2443
2435
|
static __wrap(ptr) {
|
|
2444
|
-
ptr = ptr >>> 0;
|
|
2445
2436
|
const obj = Object.create(WasmPageTemplate.prototype);
|
|
2446
2437
|
obj.__wbg_ptr = ptr;
|
|
2447
2438
|
WasmPageTemplateFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2484,7 +2475,7 @@ class WasmPageTemplate {
|
|
|
2484
2475
|
*/
|
|
2485
2476
|
constructor() {
|
|
2486
2477
|
const ret = wasm.wasmpagetemplate_new();
|
|
2487
|
-
this.__wbg_ptr = ret
|
|
2478
|
+
this.__wbg_ptr = ret;
|
|
2488
2479
|
WasmPageTemplateFinalization.register(this, this.__wbg_ptr, this);
|
|
2489
2480
|
return this;
|
|
2490
2481
|
}
|
|
@@ -2512,7 +2503,6 @@ exports.WasmPageTemplate = WasmPageTemplate;
|
|
|
2512
2503
|
*/
|
|
2513
2504
|
class WasmPdf {
|
|
2514
2505
|
static __wrap(ptr) {
|
|
2515
|
-
ptr = ptr >>> 0;
|
|
2516
2506
|
const obj = Object.create(WasmPdf.prototype);
|
|
2517
2507
|
obj.__wbg_ptr = ptr;
|
|
2518
2508
|
WasmPdfFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2909,6 +2899,31 @@ class WasmPdfDocument {
|
|
|
2909
2899
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2910
2900
|
}
|
|
2911
2901
|
}
|
|
2902
|
+
/**
|
|
2903
|
+
* Convert the document to PDF/A compliance.
|
|
2904
|
+
*
|
|
2905
|
+
* Level must be one of: `"1a"`, `"1b"`, `"2a"`, `"2b"`, `"2u"`, `"3a"`, `"3b"`, `"3u"`.
|
|
2906
|
+
* Returns a JS object with `success`, `level`, `actions`, and `errors` fields.
|
|
2907
|
+
* @param {string} level
|
|
2908
|
+
* @returns {any}
|
|
2909
|
+
*/
|
|
2910
|
+
convertToPdfA(level) {
|
|
2911
|
+
try {
|
|
2912
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2913
|
+
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2914
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2915
|
+
wasm.wasmpdfdocument_convertToPdfA(retptr, this.__wbg_ptr, ptr0, len0);
|
|
2916
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2917
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2918
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2919
|
+
if (r2) {
|
|
2920
|
+
throw takeObject(r1);
|
|
2921
|
+
}
|
|
2922
|
+
return takeObject(r0);
|
|
2923
|
+
} finally {
|
|
2924
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2925
|
+
}
|
|
2926
|
+
}
|
|
2912
2927
|
/**
|
|
2913
2928
|
* Crop margins from all pages.
|
|
2914
2929
|
* @param {number} left
|
|
@@ -3645,7 +3660,7 @@ class WasmPdfDocument {
|
|
|
3645
3660
|
flattenToImages(dpi) {
|
|
3646
3661
|
try {
|
|
3647
3662
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3648
|
-
wasm.wasmpdfdocument_flattenToImages(retptr, this.__wbg_ptr, isLikeNone(dpi) ?
|
|
3663
|
+
wasm.wasmpdfdocument_flattenToImages(retptr, this.__wbg_ptr, isLikeNone(dpi) ? Number.MAX_SAFE_INTEGER : (dpi) >>> 0);
|
|
3649
3664
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3650
3665
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3651
3666
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -3891,7 +3906,7 @@ class WasmPdfDocument {
|
|
|
3891
3906
|
if (r2) {
|
|
3892
3907
|
throw takeObject(r1);
|
|
3893
3908
|
}
|
|
3894
|
-
this.__wbg_ptr = r0
|
|
3909
|
+
this.__wbg_ptr = r0;
|
|
3895
3910
|
WasmPdfDocumentFinalization.register(this, this.__wbg_ptr, this);
|
|
3896
3911
|
return this;
|
|
3897
3912
|
} finally {
|
|
@@ -4113,7 +4128,7 @@ class WasmPdfDocument {
|
|
|
4113
4128
|
renderPage(page_index, dpi) {
|
|
4114
4129
|
try {
|
|
4115
4130
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4116
|
-
wasm.wasmpdfdocument_renderPage(retptr, this.__wbg_ptr, page_index, isLikeNone(dpi) ?
|
|
4131
|
+
wasm.wasmpdfdocument_renderPage(retptr, this.__wbg_ptr, page_index, isLikeNone(dpi) ? Number.MAX_SAFE_INTEGER : (dpi) >>> 0);
|
|
4117
4132
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4118
4133
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4119
4134
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -4341,7 +4356,7 @@ class WasmPdfDocument {
|
|
|
4341
4356
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4342
4357
|
const ptr0 = passStringToWasm0(pattern, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4343
4358
|
const len0 = WASM_VECTOR_LEN;
|
|
4344
|
-
wasm.wasmpdfdocument_search(retptr, this.__wbg_ptr, ptr0, len0, isLikeNone(case_insensitive) ? 0xFFFFFF : case_insensitive ? 1 : 0, isLikeNone(literal) ? 0xFFFFFF : literal ? 1 : 0, isLikeNone(whole_word) ? 0xFFFFFF : whole_word ? 1 : 0, isLikeNone(max_results) ?
|
|
4359
|
+
wasm.wasmpdfdocument_search(retptr, this.__wbg_ptr, ptr0, len0, isLikeNone(case_insensitive) ? 0xFFFFFF : case_insensitive ? 1 : 0, isLikeNone(literal) ? 0xFFFFFF : literal ? 1 : 0, isLikeNone(whole_word) ? 0xFFFFFF : whole_word ? 1 : 0, isLikeNone(max_results) ? Number.MAX_SAFE_INTEGER : (max_results) >>> 0);
|
|
4345
4360
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4346
4361
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4347
4362
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -4368,7 +4383,7 @@ class WasmPdfDocument {
|
|
|
4368
4383
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4369
4384
|
const ptr0 = passStringToWasm0(pattern, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4370
4385
|
const len0 = WASM_VECTOR_LEN;
|
|
4371
|
-
wasm.wasmpdfdocument_searchPage(retptr, this.__wbg_ptr, page_index, ptr0, len0, isLikeNone(case_insensitive) ? 0xFFFFFF : case_insensitive ? 1 : 0, isLikeNone(literal) ? 0xFFFFFF : literal ? 1 : 0, isLikeNone(whole_word) ? 0xFFFFFF : whole_word ? 1 : 0, isLikeNone(max_results) ?
|
|
4386
|
+
wasm.wasmpdfdocument_searchPage(retptr, this.__wbg_ptr, page_index, ptr0, len0, isLikeNone(case_insensitive) ? 0xFFFFFF : case_insensitive ? 1 : 0, isLikeNone(literal) ? 0xFFFFFF : literal ? 1 : 0, isLikeNone(whole_word) ? 0xFFFFFF : whole_word ? 1 : 0, isLikeNone(max_results) ? Number.MAX_SAFE_INTEGER : (max_results) >>> 0);
|
|
4372
4387
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4373
4388
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4374
4389
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -4942,7 +4957,6 @@ exports.WasmPdfDocument = WasmPdfDocument;
|
|
|
4942
4957
|
*/
|
|
4943
4958
|
class WasmPdfPageRegion {
|
|
4944
4959
|
static __wrap(ptr) {
|
|
4945
|
-
ptr = ptr >>> 0;
|
|
4946
4960
|
const obj = Object.create(WasmPdfPageRegion.prototype);
|
|
4947
4961
|
obj.__wbg_ptr = ptr;
|
|
4948
4962
|
WasmPdfPageRegionFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -5184,7 +5198,6 @@ exports.WasmPdfPageRegion = WasmPdfPageRegion;
|
|
|
5184
5198
|
*/
|
|
5185
5199
|
class WasmSignature {
|
|
5186
5200
|
static __wrap(ptr) {
|
|
5187
|
-
ptr = ptr >>> 0;
|
|
5188
5201
|
const obj = Object.create(WasmSignature.prototype);
|
|
5189
5202
|
obj.__wbg_ptr = ptr;
|
|
5190
5203
|
WasmSignatureFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -5378,7 +5391,6 @@ exports.WasmSignature = WasmSignature;
|
|
|
5378
5391
|
*/
|
|
5379
5392
|
class WasmTimestamp {
|
|
5380
5393
|
static __wrap(ptr) {
|
|
5381
|
-
ptr = ptr >>> 0;
|
|
5382
5394
|
const obj = Object.create(WasmTimestamp.prototype);
|
|
5383
5395
|
obj.__wbg_ptr = ptr;
|
|
5384
5396
|
WasmTimestampFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -5547,6 +5559,79 @@ function disableLogging() {
|
|
|
5547
5559
|
}
|
|
5548
5560
|
exports.disableLogging = disableLogging;
|
|
5549
5561
|
|
|
5562
|
+
/**
|
|
5563
|
+
* Generate a 1D barcode as an SVG string.
|
|
5564
|
+
*
|
|
5565
|
+
* `barcodeType`: 0=Code128, 1=Code39, 2=EAN13, 3=EAN8, 4=UPCA, 5=ITF, 6=Code93, 7=Codabar.
|
|
5566
|
+
* @param {number} barcode_type
|
|
5567
|
+
* @param {string} data
|
|
5568
|
+
* @returns {string}
|
|
5569
|
+
*/
|
|
5570
|
+
function generateBarcodeSvg(barcode_type, data) {
|
|
5571
|
+
let deferred3_0;
|
|
5572
|
+
let deferred3_1;
|
|
5573
|
+
try {
|
|
5574
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5575
|
+
const ptr0 = passStringToWasm0(data, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5576
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5577
|
+
wasm.generateBarcodeSvg(retptr, barcode_type, ptr0, len0);
|
|
5578
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5579
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5580
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
5581
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
5582
|
+
var ptr2 = r0;
|
|
5583
|
+
var len2 = r1;
|
|
5584
|
+
if (r3) {
|
|
5585
|
+
ptr2 = 0; len2 = 0;
|
|
5586
|
+
throw takeObject(r2);
|
|
5587
|
+
}
|
|
5588
|
+
deferred3_0 = ptr2;
|
|
5589
|
+
deferred3_1 = len2;
|
|
5590
|
+
return getStringFromWasm0(ptr2, len2);
|
|
5591
|
+
} finally {
|
|
5592
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5593
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
5594
|
+
}
|
|
5595
|
+
}
|
|
5596
|
+
exports.generateBarcodeSvg = generateBarcodeSvg;
|
|
5597
|
+
|
|
5598
|
+
/**
|
|
5599
|
+
* Generate a QR code as an SVG string.
|
|
5600
|
+
*
|
|
5601
|
+
* `errorCorrection`: 0=Low, 1=Medium, 2=Quartile, 3=High. `size`: advisory pixel size.
|
|
5602
|
+
* @param {string} data
|
|
5603
|
+
* @param {number} error_correction
|
|
5604
|
+
* @param {number} size
|
|
5605
|
+
* @returns {string}
|
|
5606
|
+
*/
|
|
5607
|
+
function generateQrSvg(data, error_correction, size) {
|
|
5608
|
+
let deferred3_0;
|
|
5609
|
+
let deferred3_1;
|
|
5610
|
+
try {
|
|
5611
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5612
|
+
const ptr0 = passStringToWasm0(data, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5613
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5614
|
+
wasm.generateQrSvg(retptr, ptr0, len0, error_correction, size);
|
|
5615
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5616
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5617
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
5618
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
5619
|
+
var ptr2 = r0;
|
|
5620
|
+
var len2 = r1;
|
|
5621
|
+
if (r3) {
|
|
5622
|
+
ptr2 = 0; len2 = 0;
|
|
5623
|
+
throw takeObject(r2);
|
|
5624
|
+
}
|
|
5625
|
+
deferred3_0 = ptr2;
|
|
5626
|
+
deferred3_1 = len2;
|
|
5627
|
+
return getStringFromWasm0(ptr2, len2);
|
|
5628
|
+
} finally {
|
|
5629
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5630
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
5631
|
+
}
|
|
5632
|
+
}
|
|
5633
|
+
exports.generateQrSvg = generateQrSvg;
|
|
5634
|
+
|
|
5550
5635
|
/**
|
|
5551
5636
|
* Set the maximum log level for pdf_oxide messages.
|
|
5552
5637
|
*
|
|
@@ -5622,11 +5707,11 @@ exports.signPdfBytes = signPdfBytes;
|
|
|
5622
5707
|
function __wbg_get_imports() {
|
|
5623
5708
|
const import0 = {
|
|
5624
5709
|
__proto__: null,
|
|
5625
|
-
|
|
5710
|
+
__wbg_Error_3639a60ed15f87e7: function(arg0, arg1) {
|
|
5626
5711
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
5627
5712
|
return addHeapObject(ret);
|
|
5628
5713
|
},
|
|
5629
|
-
|
|
5714
|
+
__wbg_Number_a3d737fd183f7dca: function(arg0) {
|
|
5630
5715
|
const ret = Number(getObject(arg0));
|
|
5631
5716
|
return ret;
|
|
5632
5717
|
},
|
|
@@ -5637,68 +5722,68 @@ function __wbg_get_imports() {
|
|
|
5637
5722
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
5638
5723
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
5639
5724
|
},
|
|
5640
|
-
|
|
5725
|
+
__wbg___wbindgen_bigint_get_as_i64_3af6d4ca77193a4b: function(arg0, arg1) {
|
|
5641
5726
|
const v = getObject(arg1);
|
|
5642
5727
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
5643
5728
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
5644
5729
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
5645
5730
|
},
|
|
5646
|
-
|
|
5731
|
+
__wbg___wbindgen_boolean_get_c3dd5c39f1b5a12b: function(arg0) {
|
|
5647
5732
|
const v = getObject(arg0);
|
|
5648
5733
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
5649
5734
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
5650
5735
|
},
|
|
5651
|
-
|
|
5736
|
+
__wbg___wbindgen_debug_string_07cb72cfcc952e2b: function(arg0, arg1) {
|
|
5652
5737
|
const ret = debugString(getObject(arg1));
|
|
5653
5738
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5654
5739
|
const len1 = WASM_VECTOR_LEN;
|
|
5655
5740
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
5656
5741
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
5657
5742
|
},
|
|
5658
|
-
|
|
5743
|
+
__wbg___wbindgen_in_2617fa76397620d3: function(arg0, arg1) {
|
|
5659
5744
|
const ret = getObject(arg0) in getObject(arg1);
|
|
5660
5745
|
return ret;
|
|
5661
5746
|
},
|
|
5662
|
-
|
|
5747
|
+
__wbg___wbindgen_is_bigint_d6a8167cac401b95: function(arg0) {
|
|
5663
5748
|
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
5664
5749
|
return ret;
|
|
5665
5750
|
},
|
|
5666
|
-
|
|
5751
|
+
__wbg___wbindgen_is_function_2f0fd7ceb86e64c5: function(arg0) {
|
|
5667
5752
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
5668
5753
|
return ret;
|
|
5669
5754
|
},
|
|
5670
|
-
|
|
5755
|
+
__wbg___wbindgen_is_null_066086be3abe9bb3: function(arg0) {
|
|
5671
5756
|
const ret = getObject(arg0) === null;
|
|
5672
5757
|
return ret;
|
|
5673
5758
|
},
|
|
5674
|
-
|
|
5759
|
+
__wbg___wbindgen_is_object_5b22ff2418063a9c: function(arg0) {
|
|
5675
5760
|
const val = getObject(arg0);
|
|
5676
5761
|
const ret = typeof(val) === 'object' && val !== null;
|
|
5677
5762
|
return ret;
|
|
5678
5763
|
},
|
|
5679
|
-
|
|
5764
|
+
__wbg___wbindgen_is_string_eddc07a3efad52e6: function(arg0) {
|
|
5680
5765
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
5681
5766
|
return ret;
|
|
5682
5767
|
},
|
|
5683
|
-
|
|
5768
|
+
__wbg___wbindgen_is_undefined_244a92c34d3b6ec0: function(arg0) {
|
|
5684
5769
|
const ret = getObject(arg0) === undefined;
|
|
5685
5770
|
return ret;
|
|
5686
5771
|
},
|
|
5687
|
-
|
|
5772
|
+
__wbg___wbindgen_jsval_eq_403eaa3610500a25: function(arg0, arg1) {
|
|
5688
5773
|
const ret = getObject(arg0) === getObject(arg1);
|
|
5689
5774
|
return ret;
|
|
5690
5775
|
},
|
|
5691
|
-
|
|
5776
|
+
__wbg___wbindgen_jsval_loose_eq_1978f1e77b4bce62: function(arg0, arg1) {
|
|
5692
5777
|
const ret = getObject(arg0) == getObject(arg1);
|
|
5693
5778
|
return ret;
|
|
5694
5779
|
},
|
|
5695
|
-
|
|
5780
|
+
__wbg___wbindgen_number_get_dd6d69a6079f26f1: function(arg0, arg1) {
|
|
5696
5781
|
const obj = getObject(arg1);
|
|
5697
5782
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
5698
5783
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
5699
5784
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
5700
5785
|
},
|
|
5701
|
-
|
|
5786
|
+
__wbg___wbindgen_string_get_965592073e5d848c: function(arg0, arg1) {
|
|
5702
5787
|
const obj = getObject(arg1);
|
|
5703
5788
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
5704
5789
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -5706,23 +5791,20 @@ function __wbg_get_imports() {
|
|
|
5706
5791
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
5707
5792
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
5708
5793
|
},
|
|
5709
|
-
|
|
5794
|
+
__wbg___wbindgen_throw_9c75d47bf9e7731e: function(arg0, arg1) {
|
|
5710
5795
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
5711
5796
|
},
|
|
5712
|
-
|
|
5797
|
+
__wbg_call_add9e5a76382e668: function() { return handleError(function (arg0, arg1) {
|
|
5713
5798
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
5714
5799
|
return addHeapObject(ret);
|
|
5715
5800
|
}, arguments); },
|
|
5716
|
-
|
|
5801
|
+
__wbg_debug_94a9fb2c3e2982f9: function(arg0, arg1, arg2, arg3) {
|
|
5717
5802
|
console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5718
5803
|
},
|
|
5719
|
-
|
|
5804
|
+
__wbg_done_b1afd6201ac045e0: function(arg0) {
|
|
5720
5805
|
const ret = getObject(arg0).done;
|
|
5721
5806
|
return ret;
|
|
5722
5807
|
},
|
|
5723
|
-
__wbg_error_a6a4bb2525a88971: function(arg0, arg1, arg2, arg3) {
|
|
5724
|
-
console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5725
|
-
},
|
|
5726
5808
|
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
5727
5809
|
let deferred0_0;
|
|
5728
5810
|
let deferred0_1;
|
|
@@ -5734,34 +5816,37 @@ function __wbg_get_imports() {
|
|
|
5734
5816
|
wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
|
|
5735
5817
|
}
|
|
5736
5818
|
},
|
|
5737
|
-
|
|
5819
|
+
__wbg_error_e92447754a575869: function(arg0, arg1, arg2, arg3) {
|
|
5820
|
+
console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5821
|
+
},
|
|
5822
|
+
__wbg_fromCodePoint_ac3a66d5b95b4ddf: function() { return handleError(function (arg0) {
|
|
5738
5823
|
const ret = String.fromCodePoint(arg0 >>> 0);
|
|
5739
5824
|
return addHeapObject(ret);
|
|
5740
5825
|
}, arguments); },
|
|
5741
|
-
|
|
5826
|
+
__wbg_from_ff141b1e4c69b979: function(arg0) {
|
|
5742
5827
|
const ret = Array.from(getObject(arg0));
|
|
5743
5828
|
return addHeapObject(ret);
|
|
5744
5829
|
},
|
|
5745
5830
|
__wbg_getRandomValues_ef12552bf5acd2fe: function() { return handleError(function (arg0, arg1) {
|
|
5746
5831
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
5747
5832
|
}, arguments); },
|
|
5748
|
-
|
|
5833
|
+
__wbg_getTime_e599bee315e19eba: function(arg0) {
|
|
5749
5834
|
const ret = getObject(arg0).getTime();
|
|
5750
5835
|
return ret;
|
|
5751
5836
|
},
|
|
5752
|
-
|
|
5837
|
+
__wbg_getTimezoneOffset_d843b3968046e734: function(arg0) {
|
|
5753
5838
|
const ret = getObject(arg0).getTimezoneOffset();
|
|
5754
5839
|
return ret;
|
|
5755
5840
|
},
|
|
5756
|
-
|
|
5757
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
5758
|
-
return addHeapObject(ret);
|
|
5759
|
-
}, arguments); },
|
|
5760
|
-
__wbg_get_8360291721e2339f: function(arg0, arg1) {
|
|
5841
|
+
__wbg_get_652f640b3b0b6e3e: function(arg0, arg1) {
|
|
5761
5842
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
5762
5843
|
return addHeapObject(ret);
|
|
5763
5844
|
},
|
|
5764
|
-
|
|
5845
|
+
__wbg_get_9cfea9b7bbf12a15: function() { return handleError(function (arg0, arg1) {
|
|
5846
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
5847
|
+
return addHeapObject(ret);
|
|
5848
|
+
}, arguments); },
|
|
5849
|
+
__wbg_get_unchecked_be562b1421656321: function(arg0, arg1) {
|
|
5765
5850
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
5766
5851
|
return addHeapObject(ret);
|
|
5767
5852
|
},
|
|
@@ -5769,10 +5854,10 @@ function __wbg_get_imports() {
|
|
|
5769
5854
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
5770
5855
|
return addHeapObject(ret);
|
|
5771
5856
|
},
|
|
5772
|
-
|
|
5857
|
+
__wbg_info_eba996fb48d58831: function(arg0, arg1, arg2, arg3) {
|
|
5773
5858
|
console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5774
5859
|
},
|
|
5775
|
-
|
|
5860
|
+
__wbg_instanceof_ArrayBuffer_eab9f28fbec23477: function(arg0) {
|
|
5776
5861
|
let result;
|
|
5777
5862
|
try {
|
|
5778
5863
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -5782,7 +5867,7 @@ function __wbg_get_imports() {
|
|
|
5782
5867
|
const ret = result;
|
|
5783
5868
|
return ret;
|
|
5784
5869
|
},
|
|
5785
|
-
|
|
5870
|
+
__wbg_instanceof_Uint8Array_57d77acd50e4c44d: function(arg0) {
|
|
5786
5871
|
let result;
|
|
5787
5872
|
try {
|
|
5788
5873
|
result = getObject(arg0) instanceof Uint8Array;
|
|
@@ -5792,90 +5877,90 @@ function __wbg_get_imports() {
|
|
|
5792
5877
|
const ret = result;
|
|
5793
5878
|
return ret;
|
|
5794
5879
|
},
|
|
5795
|
-
|
|
5880
|
+
__wbg_isArray_c6c6ef8308995bcf: function(arg0) {
|
|
5796
5881
|
const ret = Array.isArray(getObject(arg0));
|
|
5797
5882
|
return ret;
|
|
5798
5883
|
},
|
|
5799
|
-
|
|
5884
|
+
__wbg_isSafeInteger_3c56c421a5b4cce4: function(arg0) {
|
|
5800
5885
|
const ret = Number.isSafeInteger(getObject(arg0));
|
|
5801
5886
|
return ret;
|
|
5802
5887
|
},
|
|
5803
|
-
|
|
5888
|
+
__wbg_iterator_9d68985a1d096fc2: function() {
|
|
5804
5889
|
const ret = Symbol.iterator;
|
|
5805
5890
|
return addHeapObject(ret);
|
|
5806
5891
|
},
|
|
5807
|
-
|
|
5892
|
+
__wbg_length_0a6ce016dc1460b0: function(arg0) {
|
|
5808
5893
|
const ret = getObject(arg0).length;
|
|
5809
5894
|
return ret;
|
|
5810
5895
|
},
|
|
5811
|
-
|
|
5896
|
+
__wbg_length_ba3c032602efe310: function(arg0) {
|
|
5812
5897
|
const ret = getObject(arg0).length;
|
|
5813
5898
|
return ret;
|
|
5814
5899
|
},
|
|
5815
|
-
|
|
5900
|
+
__wbg_log_36199e35916a41aa: function(arg0, arg1, arg2, arg3) {
|
|
5816
5901
|
console.log(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5817
5902
|
},
|
|
5818
|
-
|
|
5903
|
+
__wbg_new_0_e486ec9936f7edbf: function() {
|
|
5819
5904
|
const ret = new Date();
|
|
5820
5905
|
return addHeapObject(ret);
|
|
5821
5906
|
},
|
|
5822
|
-
__wbg_new_0c7403db6e782f19: function(arg0) {
|
|
5823
|
-
const ret = new Uint8Array(getObject(arg0));
|
|
5824
|
-
return addHeapObject(ret);
|
|
5825
|
-
},
|
|
5826
5907
|
__wbg_new_227d7c05414eb861: function() {
|
|
5827
5908
|
const ret = new Error();
|
|
5828
5909
|
return addHeapObject(ret);
|
|
5829
5910
|
},
|
|
5830
|
-
|
|
5831
|
-
const ret = new
|
|
5911
|
+
__wbg_new_2fad8ca02fd00684: function() {
|
|
5912
|
+
const ret = new Object();
|
|
5832
5913
|
return addHeapObject(ret);
|
|
5833
5914
|
},
|
|
5834
|
-
|
|
5915
|
+
__wbg_new_3baa8d9866155c79: function() {
|
|
5835
5916
|
const ret = new Array();
|
|
5836
5917
|
return addHeapObject(ret);
|
|
5837
5918
|
},
|
|
5838
|
-
|
|
5839
|
-
const ret = new
|
|
5919
|
+
__wbg_new_46ae4e4ff2a07a64: function() {
|
|
5920
|
+
const ret = new Map();
|
|
5840
5921
|
return addHeapObject(ret);
|
|
5841
5922
|
},
|
|
5842
|
-
|
|
5843
|
-
const ret = new
|
|
5923
|
+
__wbg_new_8454eee672b2ba6e: function(arg0) {
|
|
5924
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
5844
5925
|
return addHeapObject(ret);
|
|
5845
5926
|
},
|
|
5846
|
-
|
|
5847
|
-
const ret = new
|
|
5927
|
+
__wbg_new_b47e026ba742fe65: function(arg0) {
|
|
5928
|
+
const ret = new Date(getObject(arg0));
|
|
5848
5929
|
return addHeapObject(ret);
|
|
5849
5930
|
},
|
|
5850
|
-
|
|
5851
|
-
const ret =
|
|
5931
|
+
__wbg_new_from_slice_5a173c243af2e823: function(arg0, arg1) {
|
|
5932
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
5852
5933
|
return addHeapObject(ret);
|
|
5853
|
-
},
|
|
5854
|
-
|
|
5934
|
+
},
|
|
5935
|
+
__wbg_next_261c3c48c6e309a5: function(arg0) {
|
|
5855
5936
|
const ret = getObject(arg0).next;
|
|
5856
5937
|
return addHeapObject(ret);
|
|
5857
5938
|
},
|
|
5858
|
-
|
|
5939
|
+
__wbg_next_aacee310bcfe6461: function() { return handleError(function (arg0) {
|
|
5940
|
+
const ret = getObject(arg0).next();
|
|
5941
|
+
return addHeapObject(ret);
|
|
5942
|
+
}, arguments); },
|
|
5943
|
+
__wbg_prototypesetcall_fd4050e806e1d519: function(arg0, arg1, arg2) {
|
|
5859
5944
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
5860
5945
|
},
|
|
5861
|
-
|
|
5946
|
+
__wbg_push_60a5366c0bb22a7d: function(arg0, arg1) {
|
|
5862
5947
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
5863
5948
|
return ret;
|
|
5864
5949
|
},
|
|
5865
|
-
|
|
5950
|
+
__wbg_set_5337f8ac82364a3f: function() { return handleError(function (arg0, arg1, arg2) {
|
|
5866
5951
|
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
5867
5952
|
return ret;
|
|
5868
5953
|
}, arguments); },
|
|
5869
|
-
__wbg_set_3bf1de9fab0cd644: function(arg0, arg1, arg2) {
|
|
5870
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
5871
|
-
},
|
|
5872
5954
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
5873
5955
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5874
5956
|
},
|
|
5875
|
-
|
|
5957
|
+
__wbg_set_82f7a370f604db70: function(arg0, arg1, arg2) {
|
|
5876
5958
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5877
5959
|
return addHeapObject(ret);
|
|
5878
5960
|
},
|
|
5961
|
+
__wbg_set_f614f6a0608d1d1d: function(arg0, arg1, arg2) {
|
|
5962
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
5963
|
+
},
|
|
5879
5964
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
5880
5965
|
const ret = getObject(arg1).stack;
|
|
5881
5966
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -5883,11 +5968,11 @@ function __wbg_get_imports() {
|
|
|
5883
5968
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
5884
5969
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
5885
5970
|
},
|
|
5886
|
-
|
|
5971
|
+
__wbg_value_f852716acdeb3e82: function(arg0) {
|
|
5887
5972
|
const ret = getObject(arg0).value;
|
|
5888
5973
|
return addHeapObject(ret);
|
|
5889
5974
|
},
|
|
5890
|
-
|
|
5975
|
+
__wbg_warn_d258f6e2da5e0422: function(arg0, arg1, arg2, arg3) {
|
|
5891
5976
|
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5892
5977
|
},
|
|
5893
5978
|
__wbg_wasmsignature_new: function(arg0) {
|
|
@@ -5930,55 +6015,55 @@ function __wbg_get_imports() {
|
|
|
5930
6015
|
|
|
5931
6016
|
const WasmArtifactFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5932
6017
|
? { register: () => {}, unregister: () => {} }
|
|
5933
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmartifact_free(ptr
|
|
6018
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmartifact_free(ptr, 1));
|
|
5934
6019
|
const ArtifactStyleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5935
6020
|
? { register: () => {}, unregister: () => {} }
|
|
5936
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_artifactstyle_free(ptr
|
|
6021
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_artifactstyle_free(ptr, 1));
|
|
5937
6022
|
const WasmCertificateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5938
6023
|
? { register: () => {}, unregister: () => {} }
|
|
5939
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmcertificate_free(ptr
|
|
6024
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmcertificate_free(ptr, 1));
|
|
5940
6025
|
const WasmDocumentBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5941
6026
|
? { register: () => {}, unregister: () => {} }
|
|
5942
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocumentbuilder_free(ptr
|
|
6027
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocumentbuilder_free(ptr, 1));
|
|
5943
6028
|
const WasmEmbeddedFontFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5944
6029
|
? { register: () => {}, unregister: () => {} }
|
|
5945
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmembeddedfont_free(ptr
|
|
6030
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmembeddedfont_free(ptr, 1));
|
|
5946
6031
|
const WasmFluentPageBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5947
6032
|
? { register: () => {}, unregister: () => {} }
|
|
5948
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmfluentpagebuilder_free(ptr
|
|
6033
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmfluentpagebuilder_free(ptr, 1));
|
|
5949
6034
|
const WasmFooterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5950
6035
|
? { register: () => {}, unregister: () => {} }
|
|
5951
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmfooter_free(ptr
|
|
6036
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmfooter_free(ptr, 1));
|
|
5952
6037
|
const WasmHeaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5953
6038
|
? { register: () => {}, unregister: () => {} }
|
|
5954
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmheader_free(ptr
|
|
6039
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmheader_free(ptr, 1));
|
|
5955
6040
|
const WasmOcrConfigFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5956
6041
|
? { register: () => {}, unregister: () => {} }
|
|
5957
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmocrconfig_free(ptr
|
|
6042
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmocrconfig_free(ptr, 1));
|
|
5958
6043
|
const WasmOcrEngineFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5959
6044
|
? { register: () => {}, unregister: () => {} }
|
|
5960
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmocrengine_free(ptr
|
|
6045
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmocrengine_free(ptr, 1));
|
|
5961
6046
|
const WasmPageTemplateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5962
6047
|
? { register: () => {}, unregister: () => {} }
|
|
5963
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpagetemplate_free(ptr
|
|
6048
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpagetemplate_free(ptr, 1));
|
|
5964
6049
|
const WasmPdfFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5965
6050
|
? { register: () => {}, unregister: () => {} }
|
|
5966
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpdf_free(ptr
|
|
6051
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpdf_free(ptr, 1));
|
|
5967
6052
|
const WasmPdfDocumentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5968
6053
|
? { register: () => {}, unregister: () => {} }
|
|
5969
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpdfdocument_free(ptr
|
|
6054
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpdfdocument_free(ptr, 1));
|
|
5970
6055
|
const WasmPdfPageRegionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5971
6056
|
? { register: () => {}, unregister: () => {} }
|
|
5972
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpdfpageregion_free(ptr
|
|
6057
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpdfpageregion_free(ptr, 1));
|
|
5973
6058
|
const WasmSignatureFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5974
6059
|
? { register: () => {}, unregister: () => {} }
|
|
5975
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmsignature_free(ptr
|
|
6060
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmsignature_free(ptr, 1));
|
|
5976
6061
|
const StreamingTableFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5977
6062
|
? { register: () => {}, unregister: () => {} }
|
|
5978
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_streamingtable_free(ptr
|
|
6063
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_streamingtable_free(ptr, 1));
|
|
5979
6064
|
const WasmTimestampFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5980
6065
|
? { register: () => {}, unregister: () => {} }
|
|
5981
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtimestamp_free(ptr
|
|
6066
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtimestamp_free(ptr, 1));
|
|
5982
6067
|
|
|
5983
6068
|
function addHeapObject(obj) {
|
|
5984
6069
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
@@ -6116,8 +6201,7 @@ function getFloat32ArrayMemory0() {
|
|
|
6116
6201
|
}
|
|
6117
6202
|
|
|
6118
6203
|
function getStringFromWasm0(ptr, len) {
|
|
6119
|
-
|
|
6120
|
-
return decodeText(ptr, len);
|
|
6204
|
+
return decodeText(ptr >>> 0, len);
|
|
6121
6205
|
}
|
|
6122
6206
|
|
|
6123
6207
|
let cachedUint32ArrayMemory0 = null;
|
|
@@ -6253,4 +6337,5 @@ let WASM_VECTOR_LEN = 0;
|
|
|
6253
6337
|
const wasmPath = `${__dirname}/pdf_oxide_bg.wasm`;
|
|
6254
6338
|
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
6255
6339
|
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
6256
|
-
let
|
|
6340
|
+
let wasmInstance = new WebAssembly.Instance(wasmModule, __wbg_get_imports());
|
|
6341
|
+
let wasm = wasmInstance.exports;
|