@pdfluent/sdk-wasm 1.0.0-beta.17.2 → 1.0.0-beta.17.4
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/package.json +6 -6
- package/xfa_wasm.d.ts +72 -0
- package/xfa_wasm.js +214 -2
- package/xfa_wasm_bg.wasm +0 -0
- package/xfa_wasm_bg.wasm.d.ts +7 -0
- package/snippets/xfa-wasm-24036f6340bfe813/inline0.js +0 -19
- package/snippets/xfa-wasm-312742e1abcfad9e/inline0.js +0 -19
- package/snippets/xfa-wasm-fee712eeb752192d/inline0.js +0 -19
- /package/snippets/{xfa-wasm-181d735f21a945e7 → xfa-wasm-f07fc2bb4f3d6191}/inline0.js +0 -0
package/package.json
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pdfluent/sdk-wasm",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"description": "PDFluent browser SDK —
|
|
5
|
-
"version": "1.0.0-beta.17.
|
|
4
|
+
"description": "PDFluent browser SDK — find and replace PDF text programmatically while preserving fonts and layout, plus edit, annotate, redact, sign and validate PDFs (including XFA), entirely client-side via WASM.",
|
|
5
|
+
"version": "1.0.0-beta.17.4",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "https://github.com/pdfluent/pdfluent"
|
|
10
|
-
},
|
|
11
7
|
"files": [
|
|
12
8
|
"xfa_wasm_bg.wasm",
|
|
13
9
|
"xfa_wasm.js",
|
|
@@ -26,6 +22,10 @@
|
|
|
26
22
|
"pdfluent",
|
|
27
23
|
"browser",
|
|
28
24
|
"sdk",
|
|
25
|
+
"pdf-text-replace",
|
|
26
|
+
"find-and-replace",
|
|
27
|
+
"edit-pdf-text",
|
|
28
|
+
"pdf-editor",
|
|
29
29
|
"xfa",
|
|
30
30
|
"acroform",
|
|
31
31
|
"pades",
|
package/xfa_wasm.d.ts
CHANGED
|
@@ -502,6 +502,71 @@ export class PdfDocMut {
|
|
|
502
502
|
setTextRunStyle(page_num: number, runs_json: string, run_index: number, bold?: boolean | null, italic?: boolean | null): string;
|
|
503
503
|
}
|
|
504
504
|
|
|
505
|
+
/**
|
|
506
|
+
* Find-and-replace editor over a PDF document (SDK surface, licensed).
|
|
507
|
+
*/
|
|
508
|
+
export class TextEditor {
|
|
509
|
+
private constructor();
|
|
510
|
+
free(): void;
|
|
511
|
+
[Symbol.dispose](): void;
|
|
512
|
+
/**
|
|
513
|
+
* Find text occurrences. `query_json` is a JSON object:
|
|
514
|
+
*
|
|
515
|
+
* ```json
|
|
516
|
+
* {
|
|
517
|
+
* "text": "Acme B.V.", // required
|
|
518
|
+
* "caseInsensitive": false, // optional
|
|
519
|
+
* "pages": [1, 5], // optional inclusive 1-based range
|
|
520
|
+
* "region": { // optional
|
|
521
|
+
* "page": 1,
|
|
522
|
+
* "rect": [x0, y0, x1, y1],
|
|
523
|
+
* "relation": "intersects" // or "contained"
|
|
524
|
+
* },
|
|
525
|
+
* "limit": 100 // optional
|
|
526
|
+
* }
|
|
527
|
+
* ```
|
|
528
|
+
*
|
|
529
|
+
* Returns a JSON array of matches; each match carries an opaque `id`
|
|
530
|
+
* token valid until the next applied edit on this document.
|
|
531
|
+
*/
|
|
532
|
+
findText(query_json: string): string;
|
|
533
|
+
/**
|
|
534
|
+
* Open a PDF from raw bytes.
|
|
535
|
+
*/
|
|
536
|
+
static open(data: Uint8Array): TextEditor;
|
|
537
|
+
/**
|
|
538
|
+
* Number of pages.
|
|
539
|
+
*/
|
|
540
|
+
pageCount(): number;
|
|
541
|
+
/**
|
|
542
|
+
* Apply per-match replacements located earlier with `findText`.
|
|
543
|
+
*
|
|
544
|
+
* `edits_json` is a JSON array of `{"id": "<match token>", "text":
|
|
545
|
+
* "<replacement>"}`. All edits commit in one atomic transaction under
|
|
546
|
+
* `options_json` (see [`TextEditor::replace_text`]); the default is
|
|
547
|
+
* all-or-nothing. Returns the JSON replacement report.
|
|
548
|
+
*/
|
|
549
|
+
replaceMatches(edits_json: string, options_json: string): string;
|
|
550
|
+
/**
|
|
551
|
+
* Find and replace in one call. Returns the JSON replacement report.
|
|
552
|
+
*
|
|
553
|
+
* `options_json` may be empty/`"{}"` for defaults, or:
|
|
554
|
+
*
|
|
555
|
+
* ```json
|
|
556
|
+
* {
|
|
557
|
+
* "fontFallback": "deny" | "injectStandard" | {"explicit": "F1"},
|
|
558
|
+
* "signaturePolicy": "reject" | "allowPostSignatureChange",
|
|
559
|
+
* "commitPolicy": "allOrNothing" | "bestEffort"
|
|
560
|
+
* }
|
|
561
|
+
* ```
|
|
562
|
+
*/
|
|
563
|
+
replaceText(query_json: string, replacement: string, options_json: string): string;
|
|
564
|
+
/**
|
|
565
|
+
* Serialize the (possibly edited) document to PDF bytes.
|
|
566
|
+
*/
|
|
567
|
+
save(): Uint8Array;
|
|
568
|
+
}
|
|
569
|
+
|
|
505
570
|
/**
|
|
506
571
|
* The main XFA processing engine for WASM.
|
|
507
572
|
*
|
|
@@ -647,6 +712,7 @@ export interface InitOutput {
|
|
|
647
712
|
readonly __wbg_licensestatus_free: (a: number, b: number) => void;
|
|
648
713
|
readonly __wbg_pdfdoc_free: (a: number, b: number) => void;
|
|
649
714
|
readonly __wbg_pdfdocmut_free: (a: number, b: number) => void;
|
|
715
|
+
readonly __wbg_texteditor_free: (a: number, b: number) => void;
|
|
650
716
|
readonly __wbg_xfaengine_free: (a: number, b: number) => void;
|
|
651
717
|
readonly activateLicenseKey: (a: number, b: number, c: number) => void;
|
|
652
718
|
readonly licenseStatus: () => number;
|
|
@@ -711,6 +777,12 @@ export interface InitOutput {
|
|
|
711
777
|
readonly pdfdocmut_setTextRunStyle: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
712
778
|
readonly setLicensePayload: (a: number, b: number, c: number) => void;
|
|
713
779
|
readonly setLicensePublicKey: (a: number, b: number, c: number) => void;
|
|
780
|
+
readonly texteditor_findText: (a: number, b: number, c: number, d: number) => void;
|
|
781
|
+
readonly texteditor_open: (a: number, b: number, c: number) => void;
|
|
782
|
+
readonly texteditor_pageCount: (a: number) => number;
|
|
783
|
+
readonly texteditor_replaceMatches: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
784
|
+
readonly texteditor_replaceText: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
785
|
+
readonly texteditor_save: (a: number, b: number) => void;
|
|
714
786
|
readonly xfaengine_exportJson: (a: number, b: number) => void;
|
|
715
787
|
readonly xfaengine_exportSchema: (a: number, b: number) => void;
|
|
716
788
|
readonly xfaengine_fromFields: (a: number, b: number, c: number) => void;
|
package/xfa_wasm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* @ts-self-types="./xfa_wasm.d.ts" */
|
|
2
|
-
import { __pdfluent_error_ctor } from './snippets/xfa-wasm-
|
|
2
|
+
import { __pdfluent_error_ctor } from './snippets/xfa-wasm-f07fc2bb4f3d6191/inline0.js';
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1629,6 +1629,215 @@ export class PdfDocMut {
|
|
|
1629
1629
|
}
|
|
1630
1630
|
if (Symbol.dispose) PdfDocMut.prototype[Symbol.dispose] = PdfDocMut.prototype.free;
|
|
1631
1631
|
|
|
1632
|
+
/**
|
|
1633
|
+
* Find-and-replace editor over a PDF document (SDK surface, licensed).
|
|
1634
|
+
*/
|
|
1635
|
+
export class TextEditor {
|
|
1636
|
+
static __wrap(ptr) {
|
|
1637
|
+
const obj = Object.create(TextEditor.prototype);
|
|
1638
|
+
obj.__wbg_ptr = ptr;
|
|
1639
|
+
TextEditorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1640
|
+
return obj;
|
|
1641
|
+
}
|
|
1642
|
+
__destroy_into_raw() {
|
|
1643
|
+
const ptr = this.__wbg_ptr;
|
|
1644
|
+
this.__wbg_ptr = 0;
|
|
1645
|
+
TextEditorFinalization.unregister(this);
|
|
1646
|
+
return ptr;
|
|
1647
|
+
}
|
|
1648
|
+
free() {
|
|
1649
|
+
const ptr = this.__destroy_into_raw();
|
|
1650
|
+
wasm.__wbg_texteditor_free(ptr, 0);
|
|
1651
|
+
}
|
|
1652
|
+
/**
|
|
1653
|
+
* Find text occurrences. `query_json` is a JSON object:
|
|
1654
|
+
*
|
|
1655
|
+
* ```json
|
|
1656
|
+
* {
|
|
1657
|
+
* "text": "Acme B.V.", // required
|
|
1658
|
+
* "caseInsensitive": false, // optional
|
|
1659
|
+
* "pages": [1, 5], // optional inclusive 1-based range
|
|
1660
|
+
* "region": { // optional
|
|
1661
|
+
* "page": 1,
|
|
1662
|
+
* "rect": [x0, y0, x1, y1],
|
|
1663
|
+
* "relation": "intersects" // or "contained"
|
|
1664
|
+
* },
|
|
1665
|
+
* "limit": 100 // optional
|
|
1666
|
+
* }
|
|
1667
|
+
* ```
|
|
1668
|
+
*
|
|
1669
|
+
* Returns a JSON array of matches; each match carries an opaque `id`
|
|
1670
|
+
* token valid until the next applied edit on this document.
|
|
1671
|
+
* @param {string} query_json
|
|
1672
|
+
* @returns {string}
|
|
1673
|
+
*/
|
|
1674
|
+
findText(query_json) {
|
|
1675
|
+
let deferred3_0;
|
|
1676
|
+
let deferred3_1;
|
|
1677
|
+
try {
|
|
1678
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1679
|
+
const ptr0 = passStringToWasm0(query_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1680
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1681
|
+
wasm.texteditor_findText(retptr, this.__wbg_ptr, ptr0, len0);
|
|
1682
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1683
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1684
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1685
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
1686
|
+
var ptr2 = r0;
|
|
1687
|
+
var len2 = r1;
|
|
1688
|
+
if (r3) {
|
|
1689
|
+
ptr2 = 0; len2 = 0;
|
|
1690
|
+
throw takeObject(r2);
|
|
1691
|
+
}
|
|
1692
|
+
deferred3_0 = ptr2;
|
|
1693
|
+
deferred3_1 = len2;
|
|
1694
|
+
return getStringFromWasm0(ptr2, len2);
|
|
1695
|
+
} finally {
|
|
1696
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1697
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
/**
|
|
1701
|
+
* Open a PDF from raw bytes.
|
|
1702
|
+
* @param {Uint8Array} data
|
|
1703
|
+
* @returns {TextEditor}
|
|
1704
|
+
*/
|
|
1705
|
+
static open(data) {
|
|
1706
|
+
try {
|
|
1707
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1708
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_export);
|
|
1709
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1710
|
+
wasm.texteditor_open(retptr, ptr0, len0);
|
|
1711
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1712
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1713
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1714
|
+
if (r2) {
|
|
1715
|
+
throw takeObject(r1);
|
|
1716
|
+
}
|
|
1717
|
+
return TextEditor.__wrap(r0);
|
|
1718
|
+
} finally {
|
|
1719
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
/**
|
|
1723
|
+
* Number of pages.
|
|
1724
|
+
* @returns {number}
|
|
1725
|
+
*/
|
|
1726
|
+
pageCount() {
|
|
1727
|
+
const ret = wasm.texteditor_pageCount(this.__wbg_ptr);
|
|
1728
|
+
return ret >>> 0;
|
|
1729
|
+
}
|
|
1730
|
+
/**
|
|
1731
|
+
* Apply per-match replacements located earlier with `findText`.
|
|
1732
|
+
*
|
|
1733
|
+
* `edits_json` is a JSON array of `{"id": "<match token>", "text":
|
|
1734
|
+
* "<replacement>"}`. All edits commit in one atomic transaction under
|
|
1735
|
+
* `options_json` (see [`TextEditor::replace_text`]); the default is
|
|
1736
|
+
* all-or-nothing. Returns the JSON replacement report.
|
|
1737
|
+
* @param {string} edits_json
|
|
1738
|
+
* @param {string} options_json
|
|
1739
|
+
* @returns {string}
|
|
1740
|
+
*/
|
|
1741
|
+
replaceMatches(edits_json, options_json) {
|
|
1742
|
+
let deferred4_0;
|
|
1743
|
+
let deferred4_1;
|
|
1744
|
+
try {
|
|
1745
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1746
|
+
const ptr0 = passStringToWasm0(edits_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1747
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1748
|
+
const ptr1 = passStringToWasm0(options_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1749
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1750
|
+
wasm.texteditor_replaceMatches(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1751
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1752
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1753
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1754
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
1755
|
+
var ptr3 = r0;
|
|
1756
|
+
var len3 = r1;
|
|
1757
|
+
if (r3) {
|
|
1758
|
+
ptr3 = 0; len3 = 0;
|
|
1759
|
+
throw takeObject(r2);
|
|
1760
|
+
}
|
|
1761
|
+
deferred4_0 = ptr3;
|
|
1762
|
+
deferred4_1 = len3;
|
|
1763
|
+
return getStringFromWasm0(ptr3, len3);
|
|
1764
|
+
} finally {
|
|
1765
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1766
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
/**
|
|
1770
|
+
* Find and replace in one call. Returns the JSON replacement report.
|
|
1771
|
+
*
|
|
1772
|
+
* `options_json` may be empty/`"{}"` for defaults, or:
|
|
1773
|
+
*
|
|
1774
|
+
* ```json
|
|
1775
|
+
* {
|
|
1776
|
+
* "fontFallback": "deny" | "injectStandard" | {"explicit": "F1"},
|
|
1777
|
+
* "signaturePolicy": "reject" | "allowPostSignatureChange",
|
|
1778
|
+
* "commitPolicy": "allOrNothing" | "bestEffort"
|
|
1779
|
+
* }
|
|
1780
|
+
* ```
|
|
1781
|
+
* @param {string} query_json
|
|
1782
|
+
* @param {string} replacement
|
|
1783
|
+
* @param {string} options_json
|
|
1784
|
+
* @returns {string}
|
|
1785
|
+
*/
|
|
1786
|
+
replaceText(query_json, replacement, options_json) {
|
|
1787
|
+
let deferred5_0;
|
|
1788
|
+
let deferred5_1;
|
|
1789
|
+
try {
|
|
1790
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1791
|
+
const ptr0 = passStringToWasm0(query_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1792
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1793
|
+
const ptr1 = passStringToWasm0(replacement, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1794
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1795
|
+
const ptr2 = passStringToWasm0(options_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1796
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1797
|
+
wasm.texteditor_replaceText(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
1798
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1799
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1800
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1801
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
1802
|
+
var ptr4 = r0;
|
|
1803
|
+
var len4 = r1;
|
|
1804
|
+
if (r3) {
|
|
1805
|
+
ptr4 = 0; len4 = 0;
|
|
1806
|
+
throw takeObject(r2);
|
|
1807
|
+
}
|
|
1808
|
+
deferred5_0 = ptr4;
|
|
1809
|
+
deferred5_1 = len4;
|
|
1810
|
+
return getStringFromWasm0(ptr4, len4);
|
|
1811
|
+
} finally {
|
|
1812
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1813
|
+
wasm.__wbindgen_export4(deferred5_0, deferred5_1, 1);
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
/**
|
|
1817
|
+
* Serialize the (possibly edited) document to PDF bytes.
|
|
1818
|
+
* @returns {Uint8Array}
|
|
1819
|
+
*/
|
|
1820
|
+
save() {
|
|
1821
|
+
try {
|
|
1822
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1823
|
+
wasm.texteditor_save(retptr, this.__wbg_ptr);
|
|
1824
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1825
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1826
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1827
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
1828
|
+
if (r3) {
|
|
1829
|
+
throw takeObject(r2);
|
|
1830
|
+
}
|
|
1831
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
1832
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
1833
|
+
return v1;
|
|
1834
|
+
} finally {
|
|
1835
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
if (Symbol.dispose) TextEditor.prototype[Symbol.dispose] = TextEditor.prototype.free;
|
|
1840
|
+
|
|
1632
1841
|
/**
|
|
1633
1842
|
* The main XFA processing engine for WASM.
|
|
1634
1843
|
*
|
|
@@ -1992,7 +2201,7 @@ export function setLicensePublicKey(public_key) {
|
|
|
1992
2201
|
function __wbg_get_imports() {
|
|
1993
2202
|
const import0 = {
|
|
1994
2203
|
__proto__: null,
|
|
1995
|
-
|
|
2204
|
+
__wbg___pdfluent_error_ctor_13a5495e607abf5c: function() {
|
|
1996
2205
|
const ret = __pdfluent_error_ctor();
|
|
1997
2206
|
return addHeapObject(ret);
|
|
1998
2207
|
},
|
|
@@ -2194,6 +2403,9 @@ const PdfDocFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
2194
2403
|
const PdfDocMutFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2195
2404
|
? { register: () => {}, unregister: () => {} }
|
|
2196
2405
|
: new FinalizationRegistry(ptr => wasm.__wbg_pdfdocmut_free(ptr, 1));
|
|
2406
|
+
const TextEditorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2407
|
+
? { register: () => {}, unregister: () => {} }
|
|
2408
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_texteditor_free(ptr, 1));
|
|
2197
2409
|
const XfaEngineFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2198
2410
|
? { register: () => {}, unregister: () => {} }
|
|
2199
2411
|
: new FinalizationRegistry(ptr => wasm.__wbg_xfaengine_free(ptr, 1));
|
package/xfa_wasm_bg.wasm
CHANGED
|
Binary file
|
package/xfa_wasm_bg.wasm.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export const memory: WebAssembly.Memory;
|
|
|
4
4
|
export const __wbg_licensestatus_free: (a: number, b: number) => void;
|
|
5
5
|
export const __wbg_pdfdoc_free: (a: number, b: number) => void;
|
|
6
6
|
export const __wbg_pdfdocmut_free: (a: number, b: number) => void;
|
|
7
|
+
export const __wbg_texteditor_free: (a: number, b: number) => void;
|
|
7
8
|
export const __wbg_xfaengine_free: (a: number, b: number) => void;
|
|
8
9
|
export const activateLicenseKey: (a: number, b: number, c: number) => void;
|
|
9
10
|
export const licenseStatus: () => number;
|
|
@@ -68,6 +69,12 @@ export const pdfdocmut_setMultiSelect: (a: number, b: number, c: number, d: numb
|
|
|
68
69
|
export const pdfdocmut_setTextRunStyle: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
69
70
|
export const setLicensePayload: (a: number, b: number, c: number) => void;
|
|
70
71
|
export const setLicensePublicKey: (a: number, b: number, c: number) => void;
|
|
72
|
+
export const texteditor_findText: (a: number, b: number, c: number, d: number) => void;
|
|
73
|
+
export const texteditor_open: (a: number, b: number, c: number) => void;
|
|
74
|
+
export const texteditor_pageCount: (a: number) => number;
|
|
75
|
+
export const texteditor_replaceMatches: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
76
|
+
export const texteditor_replaceText: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
77
|
+
export const texteditor_save: (a: number, b: number) => void;
|
|
71
78
|
export const xfaengine_exportJson: (a: number, b: number) => void;
|
|
72
79
|
export const xfaengine_exportSchema: (a: number, b: number) => void;
|
|
73
80
|
export const xfaengine_fromFields: (a: number, b: number, c: number) => void;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export function __pdfluent_error_ctor() {
|
|
3
|
-
if (globalThis.__PdfluentError) {
|
|
4
|
-
return globalThis.__PdfluentError;
|
|
5
|
-
}
|
|
6
|
-
class PdfluentError extends Error {
|
|
7
|
-
constructor(message, code, operation, help, docsUrl, legacyCode) {
|
|
8
|
-
super(message);
|
|
9
|
-
this.name = "PdfluentError";
|
|
10
|
-
this.code = code;
|
|
11
|
-
this.operation = operation;
|
|
12
|
-
this.help = help;
|
|
13
|
-
this.docsUrl = docsUrl;
|
|
14
|
-
this.legacyCode = legacyCode;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
globalThis.__PdfluentError = PdfluentError;
|
|
18
|
-
return PdfluentError;
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export function __pdfluent_error_ctor() {
|
|
3
|
-
if (globalThis.__PdfluentError) {
|
|
4
|
-
return globalThis.__PdfluentError;
|
|
5
|
-
}
|
|
6
|
-
class PdfluentError extends Error {
|
|
7
|
-
constructor(message, code, operation, help, docsUrl, legacyCode) {
|
|
8
|
-
super(message);
|
|
9
|
-
this.name = "PdfluentError";
|
|
10
|
-
this.code = code;
|
|
11
|
-
this.operation = operation;
|
|
12
|
-
this.help = help;
|
|
13
|
-
this.docsUrl = docsUrl;
|
|
14
|
-
this.legacyCode = legacyCode;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
globalThis.__PdfluentError = PdfluentError;
|
|
18
|
-
return PdfluentError;
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export function __pdfluent_error_ctor() {
|
|
3
|
-
if (globalThis.__PdfluentError) {
|
|
4
|
-
return globalThis.__PdfluentError;
|
|
5
|
-
}
|
|
6
|
-
class PdfluentError extends Error {
|
|
7
|
-
constructor(message, code, operation, help, docsUrl, legacyCode) {
|
|
8
|
-
super(message);
|
|
9
|
-
this.name = "PdfluentError";
|
|
10
|
-
this.code = code;
|
|
11
|
-
this.operation = operation;
|
|
12
|
-
this.help = help;
|
|
13
|
-
this.docsUrl = docsUrl;
|
|
14
|
-
this.legacyCode = legacyCode;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
globalThis.__PdfluentError = PdfluentError;
|
|
18
|
-
return PdfluentError;
|
|
19
|
-
}
|
|
File without changes
|