@embedpdf/engine-runtime 3.0.0-next.1 → 3.0.0-next.10
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/dist/build-id.cjs +75 -0
- package/dist/build-id.cjs.map +1 -0
- package/dist/build-id.d.cts +15 -0
- package/dist/build-id.d.ts +15 -0
- package/dist/build-id.js +70 -0
- package/dist/build-id.js.map +1 -0
- package/dist/core/pdf-functions.generated.d.ts +205 -0
- package/dist/index.browser.js +752 -17013
- package/dist/index.browser.js.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.node.cjs +752 -17013
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +752 -17013
- package/dist/index.node.js.map +1 -1
- package/package.json +23 -10
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var node_module = require('node:module');
|
|
4
|
+
var detectLibc = require('detect-libc');
|
|
5
|
+
|
|
6
|
+
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
7
|
+
function isNodeLike() {
|
|
8
|
+
return (typeof process !== 'undefined' &&
|
|
9
|
+
!!process.versions?.node &&
|
|
10
|
+
typeof process.platform === 'string');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Node-ONLY target detection. `detect-libc` (musl vs glibc for the native
|
|
15
|
+
* addons) requires Node builtins at module load, so this file may only appear
|
|
16
|
+
* in the `node` export condition's graph — never in the browser entry.
|
|
17
|
+
*/
|
|
18
|
+
function resolveRuntimeTarget() {
|
|
19
|
+
if (!isNodeLike())
|
|
20
|
+
return 'wasm32';
|
|
21
|
+
const platform = process.platform;
|
|
22
|
+
const arch = process.arch;
|
|
23
|
+
if (platform === 'darwin' && arch === 'arm64')
|
|
24
|
+
return 'darwin-arm64';
|
|
25
|
+
if (platform === 'darwin' && arch === 'x64')
|
|
26
|
+
return 'darwin-x64';
|
|
27
|
+
if (platform === 'win32' && arch === 'arm64')
|
|
28
|
+
return 'win32-arm64';
|
|
29
|
+
if (platform === 'win32' && arch === 'x64')
|
|
30
|
+
return 'win32-x64';
|
|
31
|
+
if (platform === 'linux') {
|
|
32
|
+
const libc = detectLibc.familySync();
|
|
33
|
+
const isMusl = libc === detectLibc.MUSL;
|
|
34
|
+
const isGlibc = libc === detectLibc.GLIBC || libc == null;
|
|
35
|
+
if (arch === 'arm64')
|
|
36
|
+
return isMusl ? 'linuxmusl-arm64' : isGlibc ? 'linux-arm64' : null;
|
|
37
|
+
if (arch === 'x64')
|
|
38
|
+
return isMusl ? 'linuxmusl-x64' : isGlibc ? 'linux-x64' : null;
|
|
39
|
+
}
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The runtime's public build identity — a Node-only, SIDE-EFFECT-FREE
|
|
45
|
+
* subpath (`@embedpdf/engine-runtime/build-id`): importing it never
|
|
46
|
+
* touches native-addon loading, so supervisors and diagnostics can name
|
|
47
|
+
* the engine without running it.
|
|
48
|
+
*
|
|
49
|
+
* The identity is `version:target` (e.g. `3.0.0-next.7:linux-arm64`),
|
|
50
|
+
* BOTH axes on purpose: deployments sharing one database can run
|
|
51
|
+
* different native binaries (multi-arch images, mixed node pools), and
|
|
52
|
+
* native crashers can be target-specific — consumers keying state on the
|
|
53
|
+
* engine identity (e.g. crash quarantine) must never pool evidence
|
|
54
|
+
* across different binaries, nor reset it when only the *other* arch
|
|
55
|
+
* upgraded.
|
|
56
|
+
*
|
|
57
|
+
* The version is read from this package's own manifest at import time —
|
|
58
|
+
* a self-relative read, which the `exports` map does not govern — so
|
|
59
|
+
* there is no generation step and nothing to drift.
|
|
60
|
+
*/
|
|
61
|
+
const require$1 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('build-id.cjs', document.baseURI).href)));
|
|
62
|
+
const ENGINE_RUNTIME_VERSION = require$1('../package.json').version;
|
|
63
|
+
/** The native target this process would load (null: unsupported platform). */
|
|
64
|
+
function engineRuntimeTarget() {
|
|
65
|
+
return resolveRuntimeTarget();
|
|
66
|
+
}
|
|
67
|
+
/** `version:target` — the engine identity for supervisors and journals. */
|
|
68
|
+
function engineRuntimeBuildId() {
|
|
69
|
+
return `${ENGINE_RUNTIME_VERSION}:${resolveRuntimeTarget() ?? 'unknown'}`;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
exports.ENGINE_RUNTIME_VERSION = ENGINE_RUNTIME_VERSION;
|
|
73
|
+
exports.engineRuntimeBuildId = engineRuntimeBuildId;
|
|
74
|
+
exports.engineRuntimeTarget = engineRuntimeTarget;
|
|
75
|
+
//# sourceMappingURL=build-id.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-id.cjs","sources":["../src/core/platform.ts","../src/core/platform.node.ts","../src/build-id.ts"],"sourcesContent":["/**\n * Environment-NEUTRAL platform vocabulary. This module must stay importable\n * from every graph (browser, worker, node) — so it carries no Node imports.\n * The node-only target detection (detect-libc) lives in `platform.node.ts`;\n * the browser graph pins `wasm32` in `index.browser.ts`.\n */\nexport type RuntimeTarget =\n | 'wasm32'\n | 'darwin-arm64'\n | 'darwin-x64'\n | 'linux-x64'\n | 'linux-arm64'\n | 'linuxmusl-x64'\n | 'linuxmusl-arm64'\n | 'win32-x64'\n | 'win32-arm64';\n\nexport function isNodeLike(): boolean {\n return (\n typeof process !== 'undefined' &&\n !!process.versions?.node &&\n typeof process.platform === 'string'\n );\n}\n\nexport function packageNameForTarget(target: RuntimeTarget): string {\n return `@embedpdf/engine-runtime-${target}`;\n}\n","/**\n * Node-ONLY target detection. `detect-libc` (musl vs glibc for the native\n * addons) requires Node builtins at module load, so this file may only appear\n * in the `node` export condition's graph — never in the browser entry.\n */\nimport { familySync, GLIBC, MUSL } from 'detect-libc';\nimport { isNodeLike, type RuntimeTarget } from './platform';\n\nexport function resolveRuntimeTarget(): RuntimeTarget | null {\n if (!isNodeLike()) return 'wasm32';\n\n const platform = process.platform;\n const arch = process.arch;\n\n if (platform === 'darwin' && arch === 'arm64') return 'darwin-arm64';\n if (platform === 'darwin' && arch === 'x64') return 'darwin-x64';\n if (platform === 'win32' && arch === 'arm64') return 'win32-arm64';\n if (platform === 'win32' && arch === 'x64') return 'win32-x64';\n\n if (platform === 'linux') {\n const libc = familySync();\n const isMusl = libc === MUSL;\n const isGlibc = libc === GLIBC || libc == null;\n\n if (arch === 'arm64') return isMusl ? 'linuxmusl-arm64' : isGlibc ? 'linux-arm64' : null;\n if (arch === 'x64') return isMusl ? 'linuxmusl-x64' : isGlibc ? 'linux-x64' : null;\n }\n\n return null;\n}\n","/**\n * The runtime's public build identity — a Node-only, SIDE-EFFECT-FREE\n * subpath (`@embedpdf/engine-runtime/build-id`): importing it never\n * touches native-addon loading, so supervisors and diagnostics can name\n * the engine without running it.\n *\n * The identity is `version:target` (e.g. `3.0.0-next.7:linux-arm64`),\n * BOTH axes on purpose: deployments sharing one database can run\n * different native binaries (multi-arch images, mixed node pools), and\n * native crashers can be target-specific — consumers keying state on the\n * engine identity (e.g. crash quarantine) must never pool evidence\n * across different binaries, nor reset it when only the *other* arch\n * upgraded.\n *\n * The version is read from this package's own manifest at import time —\n * a self-relative read, which the `exports` map does not govern — so\n * there is no generation step and nothing to drift.\n */\nimport { createRequire } from 'node:module';\n\nimport type { RuntimeTarget } from './core/platform';\nimport { resolveRuntimeTarget } from './core/platform.node';\n\nconst require = createRequire(import.meta.url);\n\nexport const ENGINE_RUNTIME_VERSION: string = (\n require('../package.json') as { version: string }\n).version;\n\n/** The native target this process would load (null: unsupported platform). */\nexport function engineRuntimeTarget(): RuntimeTarget | null {\n return resolveRuntimeTarget();\n}\n\n/** `version:target` — the engine identity for supervisors and journals. */\nexport function engineRuntimeBuildId(): string {\n return `${ENGINE_RUNTIME_VERS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A,OAAO,IAAI;AACb;;AC7BA;;;;;;;;;;;;;;;;;AAiBG;AAMH,MAAMC,SAAO,GAAGC,yBAAa,CAAC,8PAAe,CAAC;AAEvC,MAAM,sBAAsB,GACjCD,SAAO,CAAC,iBAAiB,CAC1B,CAAC;AAEF;SACgB,mBAAmB,GAAA;IACjC,OAAO,oBAAoB,EAAE;AAC/B;AAEA;SACgB,oBAAoB,GAAA;IAClC,OAAO,CAAA,EAAG,sBAAsB,CAAA,CAAA,EAAI,oBAAoB,EAAE,IAAI,SAAS,EAAE;AAC3E;;;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Environment-NEUTRAL platform vocabulary. This module must stay importable
|
|
3
|
+
* from every graph (browser, worker, node) — so it carries no Node imports.
|
|
4
|
+
* The node-only target detection (detect-libc) lives in `platform.node.ts`;
|
|
5
|
+
* the browser graph pins `wasm32` in `index.browser.ts`.
|
|
6
|
+
*/
|
|
7
|
+
type RuntimeTarget = 'wasm32' | 'darwin-arm64' | 'darwin-x64' | 'linux-x64' | 'linux-arm64' | 'linuxmusl-x64' | 'linuxmusl-arm64' | 'win32-x64' | 'win32-arm64';
|
|
8
|
+
|
|
9
|
+
declare const ENGINE_RUNTIME_VERSION: string;
|
|
10
|
+
/** The native target this process would load (null: unsupported platform). */
|
|
11
|
+
declare function engineRuntimeTarget(): RuntimeTarget | null;
|
|
12
|
+
/** `version:target` — the engine identity for supervisors and journals. */
|
|
13
|
+
declare function engineRuntimeBuildId(): string;
|
|
14
|
+
|
|
15
|
+
export { ENGINE_RUNTIME_VERSION, engineRuntimeBuildId, engineRuntimeTarget };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Environment-NEUTRAL platform vocabulary. This module must stay importable
|
|
3
|
+
* from every graph (browser, worker, node) — so it carries no Node imports.
|
|
4
|
+
* The node-only target detection (detect-libc) lives in `platform.node.ts`;
|
|
5
|
+
* the browser graph pins `wasm32` in `index.browser.ts`.
|
|
6
|
+
*/
|
|
7
|
+
type RuntimeTarget = 'wasm32' | 'darwin-arm64' | 'darwin-x64' | 'linux-x64' | 'linux-arm64' | 'linuxmusl-x64' | 'linuxmusl-arm64' | 'win32-x64' | 'win32-arm64';
|
|
8
|
+
|
|
9
|
+
declare const ENGINE_RUNTIME_VERSION: string;
|
|
10
|
+
/** The native target this process would load (null: unsupported platform). */
|
|
11
|
+
declare function engineRuntimeTarget(): RuntimeTarget | null;
|
|
12
|
+
/** `version:target` — the engine identity for supervisors and journals. */
|
|
13
|
+
declare function engineRuntimeBuildId(): string;
|
|
14
|
+
|
|
15
|
+
export { ENGINE_RUNTIME_VERSION, engineRuntimeBuildId, engineRuntimeTarget };
|
package/dist/build-id.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';
|
|
2
|
+
import { familySync, MUSL, GLIBC } from 'detect-libc';
|
|
3
|
+
|
|
4
|
+
function isNodeLike() {
|
|
5
|
+
return (typeof process !== 'undefined' &&
|
|
6
|
+
!!process.versions?.node &&
|
|
7
|
+
typeof process.platform === 'string');
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Node-ONLY target detection. `detect-libc` (musl vs glibc for the native
|
|
12
|
+
* addons) requires Node builtins at module load, so this file may only appear
|
|
13
|
+
* in the `node` export condition's graph — never in the browser entry.
|
|
14
|
+
*/
|
|
15
|
+
function resolveRuntimeTarget() {
|
|
16
|
+
if (!isNodeLike())
|
|
17
|
+
return 'wasm32';
|
|
18
|
+
const platform = process.platform;
|
|
19
|
+
const arch = process.arch;
|
|
20
|
+
if (platform === 'darwin' && arch === 'arm64')
|
|
21
|
+
return 'darwin-arm64';
|
|
22
|
+
if (platform === 'darwin' && arch === 'x64')
|
|
23
|
+
return 'darwin-x64';
|
|
24
|
+
if (platform === 'win32' && arch === 'arm64')
|
|
25
|
+
return 'win32-arm64';
|
|
26
|
+
if (platform === 'win32' && arch === 'x64')
|
|
27
|
+
return 'win32-x64';
|
|
28
|
+
if (platform === 'linux') {
|
|
29
|
+
const libc = familySync();
|
|
30
|
+
const isMusl = libc === MUSL;
|
|
31
|
+
const isGlibc = libc === GLIBC || libc == null;
|
|
32
|
+
if (arch === 'arm64')
|
|
33
|
+
return isMusl ? 'linuxmusl-arm64' : isGlibc ? 'linux-arm64' : null;
|
|
34
|
+
if (arch === 'x64')
|
|
35
|
+
return isMusl ? 'linuxmusl-x64' : isGlibc ? 'linux-x64' : null;
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The runtime's public build identity — a Node-only, SIDE-EFFECT-FREE
|
|
42
|
+
* subpath (`@embedpdf/engine-runtime/build-id`): importing it never
|
|
43
|
+
* touches native-addon loading, so supervisors and diagnostics can name
|
|
44
|
+
* the engine without running it.
|
|
45
|
+
*
|
|
46
|
+
* The identity is `version:target` (e.g. `3.0.0-next.7:linux-arm64`),
|
|
47
|
+
* BOTH axes on purpose: deployments sharing one database can run
|
|
48
|
+
* different native binaries (multi-arch images, mixed node pools), and
|
|
49
|
+
* native crashers can be target-specific — consumers keying state on the
|
|
50
|
+
* engine identity (e.g. crash quarantine) must never pool evidence
|
|
51
|
+
* across different binaries, nor reset it when only the *other* arch
|
|
52
|
+
* upgraded.
|
|
53
|
+
*
|
|
54
|
+
* The version is read from this package's own manifest at import time —
|
|
55
|
+
* a self-relative read, which the `exports` map does not govern — so
|
|
56
|
+
* there is no generation step and nothing to drift.
|
|
57
|
+
*/
|
|
58
|
+
const require$1 = createRequire(import.meta.url);
|
|
59
|
+
const ENGINE_RUNTIME_VERSION = require$1('../package.json').version;
|
|
60
|
+
/** The native target this process would load (null: unsupported platform). */
|
|
61
|
+
function engineRuntimeTarget() {
|
|
62
|
+
return resolveRuntimeTarget();
|
|
63
|
+
}
|
|
64
|
+
/** `version:target` — the engine identity for supervisors and journals. */
|
|
65
|
+
function engineRuntimeBuildId() {
|
|
66
|
+
return `${ENGINE_RUNTIME_VERSION}:${resolveRuntimeTarget() ?? 'unknown'}`;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export { ENGINE_RUNTIME_VERSION, engineRuntimeBuildId, engineRuntimeTarget };
|
|
70
|
+
//# sourceMappingURL=build-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-id.js","sources":["../src/core/platform.ts","../src/core/platform.node.ts","../src/build-id.ts"],"sourcesContent":["/**\n * Environment-NEUTRAL platform vocabulary. This module must stay importable\n * from every graph (browser, worker, node) — so it carries no Node imports.\n * The node-only target detection (detect-libc) lives in `platform.node.ts`;\n * the browser graph pins `wasm32` in `index.browser.ts`.\n */\nexport type RuntimeTarget =\n | 'wasm32'\n | 'darwin-arm64'\n | 'darwin-x64'\n | 'linux-x64'\n | 'linux-arm64'\n | 'linuxmusl-x64'\n | 'linuxmusl-arm64'\n | 'win32-x64'\n | 'win32-arm64';\n\nexport function isNodeLike(): boolean {\n return (\n typeof process !== 'undefined' &&\n !!process.versions?.node &&\n typeof process.platform === 'string'\n );\n}\n\nexport function packageNameForTarget(target: RuntimeTarget): string {\n return `@embedpdf/engine-runtime-${target}`;\n}\n","/**\n * Node-ONLY target detection. `detect-libc` (musl vs glibc for the native\n * addons) requires Node builtins at module load, so this file may only appear\n * in the `node` export condition's graph — never in the browser entry.\n */\nimport { familySync, GLIBC, MUSL } from 'detect-libc';\nimport { isNodeLike, type RuntimeTarget } from './platform';\n\nexport function resolveRuntimeTarget(): RuntimeTarget | null {\n if (!isNodeLike()) return 'wasm32';\n\n const platform = process.platform;\n const arch = process.arch;\n\n if (platform === 'darwin' && arch === 'arm64') return 'darwin-arm64';\n if (platform === 'darwin' && arch === 'x64') return 'darwin-x64';\n if (platform === 'win32' && arch === 'arm64') return 'win32-arm64';\n if (platform === 'win32' && arch === 'x64') return 'win32-x64';\n\n if (platform === 'linux') {\n const libc = familySync();\n const isMusl = libc === MUSL;\n const isGlibc = libc === GLIBC || libc == null;\n\n if (arch === 'arm64') return isMusl ? 'linuxmusl-arm64' : isGlibc ? 'linux-arm64' : null;\n if (arch === 'x64') return isMusl ? 'linuxmusl-x64' : isGlibc ? 'linux-x64' : null;\n }\n\n return null;\n}\n","/**\n * The runtime's public build identity — a Node-only, SIDE-EFFECT-FREE\n * subpath (`@embedpdf/engine-runtime/build-id`): importing it never\n * touches native-addon loading, so supervisors and diagnostics can name\n * the engine without running it.\n *\n * The identity is `version:target` (e.g. `3.0.0-next.7:linux-arm64`),\n * BOTH axes on purpose: deployments sharing one database can run\n * different native binaries (multi-arch images, mixed node pools), and\n * native crashers can be target-specific — consumers keying state on the\n * engine identity (e.g. crash quarantine) must never pool evidence\n * across different binaries, nor reset it when only the *other* arch\n * upgraded.\n *\n * The version is read from this package's own manifest at import time —\n * a self-relative read, which the `exports` map does not govern — so\n * there is no generation step and nothing to drift.\n */\nimport { createRequire } from 'node:module';\n\nimport type { RuntimeTarget } from './core/platform';\nimport { resolveRuntimeTarget } from './core/platform.node';\n\nconst require = createRequire(import.meta.url);\n\nexport const ENGINE_RUNTIME_VERSION: string = (\n require('../package.json') as { version: string }\n).version;\n\n/** The native target this process would load (null: unsupported platform). */\nexport function engineRuntimeTarget(): RuntimeTarget | null {\n return resolveRuntimeTarget();\n}\n\n/** `version:target` — the engine identity for supervisors and journals. */\nexport function engineRuntimeBuildId(): string {\n return `${ENGINE_RUNTIME_VERSION}:${resolveRuntimeTarget() ?? 'unknown'}`;\n}\n"],"names":["require"],"mappings":";;;SAiBgB,UAAU,GAAA;AACxB,IAAA,QACE,OAAO,OAAO,KAAK,WAAW;AAC9B,QAAA,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI;AACxB,QAAA,OAAO,OAAO,CAAC,QAAQ,KAAK,QAAQ;AAExC;;ACvBA;;;;AAIG;SAIa,oBAAoB,GAAA;IAClC,IAAI,CAAC,UAAU,EAAE;AAAE,QAAA,OAAO,QAAQ;AAElC,IAAA,M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
|
@@ -100,6 +100,7 @@ export interface PdfFunctions {
|
|
|
100
100
|
EPDFAnnot_HasEmbedMetadata: (arg0: Ptr) => boolean;
|
|
101
101
|
EPDFAnnot_RemoveAction: (arg0: Ptr) => boolean;
|
|
102
102
|
EPDFAnnot_RemoveDest: (arg0: Ptr) => boolean;
|
|
103
|
+
EPDFAnnot_RemoveKey: (arg0: Ptr, arg1: string) => boolean;
|
|
103
104
|
EPDFAnnot_SetAction: (arg0: Ptr, arg1: Ptr) => boolean;
|
|
104
105
|
EPDFAnnot_SetAPMatrix: (arg0: Ptr, arg1: number, arg2: Ptr) => boolean;
|
|
105
106
|
EPDFAnnot_SetAppearanceFromPage: (arg0: Ptr, arg1: Ptr, arg2: number) => boolean;
|
|
@@ -125,6 +126,7 @@ export interface PdfFunctions {
|
|
|
125
126
|
EPDFAnnot_SetOpacity: (arg0: Ptr, arg1: number) => boolean;
|
|
126
127
|
EPDFAnnot_SetOverlayText: (arg0: Ptr, arg1: Ptr) => boolean;
|
|
127
128
|
EPDFAnnot_SetOverlayTextRepeat: (arg0: Ptr, arg1: boolean) => boolean;
|
|
129
|
+
EPDFAnnot_SetRect: (arg0: Ptr, arg1: Ptr) => boolean;
|
|
128
130
|
EPDFAnnot_SetRectangleDifferences: (arg0: Ptr, arg1: number, arg2: number, arg3: number, arg4: number) => boolean;
|
|
129
131
|
EPDFAnnot_SetReplyType: (arg0: Ptr, arg1: number) => boolean;
|
|
130
132
|
EPDFAnnot_SetRotate: (arg0: Ptr, arg1: number) => boolean;
|
|
@@ -296,6 +298,9 @@ export interface PdfFunctions {
|
|
|
296
298
|
EPDFPage_RemoveAnnotByName: (arg0: Ptr, arg1: Ptr) => boolean;
|
|
297
299
|
EPDFPage_RemoveAnnotByObjectNumber: (arg0: Ptr, arg1: number) => boolean;
|
|
298
300
|
EPDFPage_RemoveAnnotRaw: (arg0: Ptr, arg1: number, arg2: number) => boolean;
|
|
301
|
+
EPDFText_GetCharGeometry: (arg0: Ptr, arg1: number, arg2: Ptr) => boolean;
|
|
302
|
+
EPDFText_GetCharToTextMap: (arg0: Ptr, arg1: Ptr, arg2: number) => number;
|
|
303
|
+
EPDFText_GetTextFull: (arg0: Ptr, arg1: Ptr, arg2: number) => number;
|
|
299
304
|
EPDFText_RedactInQuads: (arg0: Ptr, arg1: Ptr, arg2: number, arg3: boolean, arg4: boolean) => boolean;
|
|
300
305
|
EPDFText_RedactInRect: (arg0: Ptr, arg1: Ptr, arg2: boolean, arg3: boolean) => boolean;
|
|
301
306
|
FORM_CanRedo: (arg0: Ptr, arg1: Ptr) => boolean;
|
|
@@ -4527,6 +4532,40 @@ export declare const pdfFunctionSignatures: {
|
|
|
4527
4532
|
};
|
|
4528
4533
|
};
|
|
4529
4534
|
};
|
|
4535
|
+
readonly EPDFAnnot_RemoveKey: {
|
|
4536
|
+
readonly params: readonly [{
|
|
4537
|
+
readonly ts: "Ptr";
|
|
4538
|
+
readonly wasm: {
|
|
4539
|
+
readonly kind: "pointer";
|
|
4540
|
+
readonly cwrap: "number";
|
|
4541
|
+
};
|
|
4542
|
+
readonly native: {
|
|
4543
|
+
readonly kind: "pointer";
|
|
4544
|
+
readonly cwrap: "bigint";
|
|
4545
|
+
};
|
|
4546
|
+
}, {
|
|
4547
|
+
readonly ts: "string";
|
|
4548
|
+
readonly wasm: {
|
|
4549
|
+
readonly kind: "cstring";
|
|
4550
|
+
readonly cwrap: "string";
|
|
4551
|
+
};
|
|
4552
|
+
readonly native: {
|
|
4553
|
+
readonly kind: "cstring";
|
|
4554
|
+
readonly cwrap: "string";
|
|
4555
|
+
};
|
|
4556
|
+
}];
|
|
4557
|
+
readonly result: {
|
|
4558
|
+
readonly ts: "boolean";
|
|
4559
|
+
readonly wasm: {
|
|
4560
|
+
readonly kind: "bool";
|
|
4561
|
+
readonly cwrap: "boolean";
|
|
4562
|
+
};
|
|
4563
|
+
readonly native: {
|
|
4564
|
+
readonly kind: "bool";
|
|
4565
|
+
readonly cwrap: "boolean";
|
|
4566
|
+
};
|
|
4567
|
+
};
|
|
4568
|
+
};
|
|
4530
4569
|
readonly EPDFAnnot_SetAction: {
|
|
4531
4570
|
readonly params: readonly [{
|
|
4532
4571
|
readonly ts: "Ptr";
|
|
@@ -5647,6 +5686,40 @@ export declare const pdfFunctionSignatures: {
|
|
|
5647
5686
|
};
|
|
5648
5687
|
};
|
|
5649
5688
|
};
|
|
5689
|
+
readonly EPDFAnnot_SetRect: {
|
|
5690
|
+
readonly params: readonly [{
|
|
5691
|
+
readonly ts: "Ptr";
|
|
5692
|
+
readonly wasm: {
|
|
5693
|
+
readonly kind: "pointer";
|
|
5694
|
+
readonly cwrap: "number";
|
|
5695
|
+
};
|
|
5696
|
+
readonly native: {
|
|
5697
|
+
readonly kind: "pointer";
|
|
5698
|
+
readonly cwrap: "bigint";
|
|
5699
|
+
};
|
|
5700
|
+
}, {
|
|
5701
|
+
readonly ts: "Ptr";
|
|
5702
|
+
readonly wasm: {
|
|
5703
|
+
readonly kind: "pointer";
|
|
5704
|
+
readonly cwrap: "number";
|
|
5705
|
+
};
|
|
5706
|
+
readonly native: {
|
|
5707
|
+
readonly kind: "pointer";
|
|
5708
|
+
readonly cwrap: "bigint";
|
|
5709
|
+
};
|
|
5710
|
+
}];
|
|
5711
|
+
readonly result: {
|
|
5712
|
+
readonly ts: "boolean";
|
|
5713
|
+
readonly wasm: {
|
|
5714
|
+
readonly kind: "bool";
|
|
5715
|
+
readonly cwrap: "boolean";
|
|
5716
|
+
};
|
|
5717
|
+
readonly native: {
|
|
5718
|
+
readonly kind: "bool";
|
|
5719
|
+
readonly cwrap: "boolean";
|
|
5720
|
+
};
|
|
5721
|
+
};
|
|
5722
|
+
};
|
|
5650
5723
|
readonly EPDFAnnot_SetRectangleDifferences: {
|
|
5651
5724
|
readonly params: readonly [{
|
|
5652
5725
|
readonly ts: "Ptr";
|
|
@@ -13761,6 +13834,138 @@ export declare const pdfFunctionSignatures: {
|
|
|
13761
13834
|
};
|
|
13762
13835
|
};
|
|
13763
13836
|
};
|
|
13837
|
+
readonly EPDFText_GetCharGeometry: {
|
|
13838
|
+
readonly params: readonly [{
|
|
13839
|
+
readonly ts: "Ptr";
|
|
13840
|
+
readonly wasm: {
|
|
13841
|
+
readonly kind: "pointer";
|
|
13842
|
+
readonly cwrap: "number";
|
|
13843
|
+
};
|
|
13844
|
+
readonly native: {
|
|
13845
|
+
readonly kind: "pointer";
|
|
13846
|
+
readonly cwrap: "bigint";
|
|
13847
|
+
};
|
|
13848
|
+
}, {
|
|
13849
|
+
readonly ts: "number";
|
|
13850
|
+
readonly wasm: {
|
|
13851
|
+
readonly kind: "i32";
|
|
13852
|
+
readonly cwrap: "number";
|
|
13853
|
+
};
|
|
13854
|
+
readonly native: {
|
|
13855
|
+
readonly kind: "i32";
|
|
13856
|
+
readonly cwrap: "number";
|
|
13857
|
+
};
|
|
13858
|
+
}, {
|
|
13859
|
+
readonly ts: "Ptr";
|
|
13860
|
+
readonly wasm: {
|
|
13861
|
+
readonly kind: "pointer";
|
|
13862
|
+
readonly cwrap: "number";
|
|
13863
|
+
};
|
|
13864
|
+
readonly native: {
|
|
13865
|
+
readonly kind: "pointer";
|
|
13866
|
+
readonly cwrap: "bigint";
|
|
13867
|
+
};
|
|
13868
|
+
}];
|
|
13869
|
+
readonly result: {
|
|
13870
|
+
readonly ts: "boolean";
|
|
13871
|
+
readonly wasm: {
|
|
13872
|
+
readonly kind: "bool";
|
|
13873
|
+
readonly cwrap: "boolean";
|
|
13874
|
+
};
|
|
13875
|
+
readonly native: {
|
|
13876
|
+
readonly kind: "bool";
|
|
13877
|
+
readonly cwrap: "boolean";
|
|
13878
|
+
};
|
|
13879
|
+
};
|
|
13880
|
+
};
|
|
13881
|
+
readonly EPDFText_GetCharToTextMap: {
|
|
13882
|
+
readonly params: readonly [{
|
|
13883
|
+
readonly ts: "Ptr";
|
|
13884
|
+
readonly wasm: {
|
|
13885
|
+
readonly kind: "pointer";
|
|
13886
|
+
readonly cwrap: "number";
|
|
13887
|
+
};
|
|
13888
|
+
readonly native: {
|
|
13889
|
+
readonly kind: "pointer";
|
|
13890
|
+
readonly cwrap: "bigint";
|
|
13891
|
+
};
|
|
13892
|
+
}, {
|
|
13893
|
+
readonly ts: "Ptr";
|
|
13894
|
+
readonly wasm: {
|
|
13895
|
+
readonly kind: "pointer";
|
|
13896
|
+
readonly cwrap: "number";
|
|
13897
|
+
};
|
|
13898
|
+
readonly native: {
|
|
13899
|
+
readonly kind: "pointer";
|
|
13900
|
+
readonly cwrap: "bigint";
|
|
13901
|
+
};
|
|
13902
|
+
}, {
|
|
13903
|
+
readonly ts: "number";
|
|
13904
|
+
readonly wasm: {
|
|
13905
|
+
readonly kind: "i32";
|
|
13906
|
+
readonly cwrap: "number";
|
|
13907
|
+
};
|
|
13908
|
+
readonly native: {
|
|
13909
|
+
readonly kind: "i32";
|
|
13910
|
+
readonly cwrap: "number";
|
|
13911
|
+
};
|
|
13912
|
+
}];
|
|
13913
|
+
readonly result: {
|
|
13914
|
+
readonly ts: "number";
|
|
13915
|
+
readonly wasm: {
|
|
13916
|
+
readonly kind: "i32";
|
|
13917
|
+
readonly cwrap: "number";
|
|
13918
|
+
};
|
|
13919
|
+
readonly native: {
|
|
13920
|
+
readonly kind: "i32";
|
|
13921
|
+
readonly cwrap: "number";
|
|
13922
|
+
};
|
|
13923
|
+
};
|
|
13924
|
+
};
|
|
13925
|
+
readonly EPDFText_GetTextFull: {
|
|
13926
|
+
readonly params: readonly [{
|
|
13927
|
+
readonly ts: "Ptr";
|
|
13928
|
+
readonly wasm: {
|
|
13929
|
+
readonly kind: "pointer";
|
|
13930
|
+
readonly cwrap: "number";
|
|
13931
|
+
};
|
|
13932
|
+
readonly native: {
|
|
13933
|
+
readonly kind: "pointer";
|
|
13934
|
+
readonly cwrap: "bigint";
|
|
13935
|
+
};
|
|
13936
|
+
}, {
|
|
13937
|
+
readonly ts: "Ptr";
|
|
13938
|
+
readonly wasm: {
|
|
13939
|
+
readonly kind: "pointer";
|
|
13940
|
+
readonly cwrap: "number";
|
|
13941
|
+
};
|
|
13942
|
+
readonly native: {
|
|
13943
|
+
readonly kind: "pointer";
|
|
13944
|
+
readonly cwrap: "bigint";
|
|
13945
|
+
};
|
|
13946
|
+
}, {
|
|
13947
|
+
readonly ts: "number";
|
|
13948
|
+
readonly wasm: {
|
|
13949
|
+
readonly kind: "i32";
|
|
13950
|
+
readonly cwrap: "number";
|
|
13951
|
+
};
|
|
13952
|
+
readonly native: {
|
|
13953
|
+
readonly kind: "i32";
|
|
13954
|
+
readonly cwrap: "number";
|
|
13955
|
+
};
|
|
13956
|
+
}];
|
|
13957
|
+
readonly result: {
|
|
13958
|
+
readonly ts: "number";
|
|
13959
|
+
readonly wasm: {
|
|
13960
|
+
readonly kind: "i32";
|
|
13961
|
+
readonly cwrap: "number";
|
|
13962
|
+
};
|
|
13963
|
+
readonly native: {
|
|
13964
|
+
readonly kind: "i32";
|
|
13965
|
+
readonly cwrap: "number";
|
|
13966
|
+
};
|
|
13967
|
+
};
|
|
13968
|
+
};
|
|
13764
13969
|
readonly EPDFText_RedactInQuads: {
|
|
13765
13970
|
readonly params: readonly [{
|
|
13766
13971
|
readonly ts: "Ptr";
|