@embedpdf/pdfium 2.1.2 → 2.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.
- package/dist/index.browser.js +29 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +12 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +29 -1
- package/dist/index.js.map +1 -1
- package/dist/pdfium.wasm +0 -0
- package/dist/vendor/functions.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -29,10 +29,15 @@ declare const functions: {
|
|
|
29
29
|
readonly EPDF_GetMetaTrapped: readonly [readonly ["number"], "number"];
|
|
30
30
|
readonly EPDF_GetPageRotationByIndex: readonly [readonly ["number", "number"], "number"];
|
|
31
31
|
readonly EPDF_HasMetaText: readonly [readonly ["number", "string"], "boolean"];
|
|
32
|
+
readonly EPDF_IsEncrypted: readonly [readonly ["number"], "boolean"];
|
|
33
|
+
readonly EPDF_IsOwnerUnlocked: readonly [readonly ["number"], "boolean"];
|
|
32
34
|
readonly EPDF_PNG_EncodeRGBA: readonly [readonly ["number", "number", "number", "number", "number", "number"], "number"];
|
|
35
|
+
readonly EPDF_RemoveEncryption: readonly [readonly ["number"], "boolean"];
|
|
33
36
|
readonly EPDF_RenderAnnotBitmap: readonly [readonly ["number", "number", "number", "number", "number", "number"], "boolean"];
|
|
37
|
+
readonly EPDF_SetEncryption: readonly [readonly ["number", "string", "string", "number"], "boolean"];
|
|
34
38
|
readonly EPDF_SetMetaText: readonly [readonly ["number", "string", "number"], "boolean"];
|
|
35
39
|
readonly EPDF_SetMetaTrapped: readonly [readonly ["number", "number"], "boolean"];
|
|
40
|
+
readonly EPDF_UnlockOwnerPermissions: readonly [readonly ["number", "string"], "boolean"];
|
|
36
41
|
readonly EPDFAction_CreateGoTo: readonly [readonly ["number", "number"], "number"];
|
|
37
42
|
readonly EPDFAction_CreateGoToNamed: readonly [readonly ["number", "string"], "number"];
|
|
38
43
|
readonly EPDFAction_CreateLaunch: readonly [readonly ["number", "number"], "number"];
|
package/dist/index.d.ts
CHANGED
|
@@ -29,10 +29,15 @@ declare const functions: {
|
|
|
29
29
|
readonly EPDF_GetMetaTrapped: readonly [readonly ["number"], "number"];
|
|
30
30
|
readonly EPDF_GetPageRotationByIndex: readonly [readonly ["number", "number"], "number"];
|
|
31
31
|
readonly EPDF_HasMetaText: readonly [readonly ["number", "string"], "boolean"];
|
|
32
|
+
readonly EPDF_IsEncrypted: readonly [readonly ["number"], "boolean"];
|
|
33
|
+
readonly EPDF_IsOwnerUnlocked: readonly [readonly ["number"], "boolean"];
|
|
32
34
|
readonly EPDF_PNG_EncodeRGBA: readonly [readonly ["number", "number", "number", "number", "number", "number"], "number"];
|
|
35
|
+
readonly EPDF_RemoveEncryption: readonly [readonly ["number"], "boolean"];
|
|
33
36
|
readonly EPDF_RenderAnnotBitmap: readonly [readonly ["number", "number", "number", "number", "number", "number"], "boolean"];
|
|
37
|
+
readonly EPDF_SetEncryption: readonly [readonly ["number", "string", "string", "number"], "boolean"];
|
|
34
38
|
readonly EPDF_SetMetaText: readonly [readonly ["number", "string", "number"], "boolean"];
|
|
35
39
|
readonly EPDF_SetMetaTrapped: readonly [readonly ["number", "number"], "boolean"];
|
|
40
|
+
readonly EPDF_UnlockOwnerPermissions: readonly [readonly ["number", "string"], "boolean"];
|
|
36
41
|
readonly EPDFAction_CreateGoTo: readonly [readonly ["number", "number"], "number"];
|
|
37
42
|
readonly EPDFAction_CreateGoToNamed: readonly [readonly ["number", "string"], "number"];
|
|
38
43
|
readonly EPDFAction_CreateLaunch: readonly [readonly ["number", "number"], "number"];
|
package/dist/index.js
CHANGED
|
@@ -32,10 +32,15 @@ var createPdfium = (() => {
|
|
|
32
32
|
'_EPDF_GetMetaTrapped',
|
|
33
33
|
'_EPDF_GetPageRotationByIndex',
|
|
34
34
|
'_EPDF_HasMetaText',
|
|
35
|
+
'_EPDF_IsEncrypted',
|
|
36
|
+
'_EPDF_IsOwnerUnlocked',
|
|
35
37
|
'_EPDF_PNG_EncodeRGBA',
|
|
38
|
+
'_EPDF_RemoveEncryption',
|
|
36
39
|
'_EPDF_RenderAnnotBitmap',
|
|
40
|
+
'_EPDF_SetEncryption',
|
|
37
41
|
'_EPDF_SetMetaText',
|
|
38
42
|
'_EPDF_SetMetaTrapped',
|
|
43
|
+
'_EPDF_UnlockOwnerPermissions',
|
|
39
44
|
'_EPDFAction_CreateGoTo',
|
|
40
45
|
'_EPDFAction_CreateGoToNamed',
|
|
41
46
|
'_EPDFAction_CreateLaunch',
|
|
@@ -7310,6 +7315,24 @@ var createPdfium = (() => {
|
|
|
7310
7315
|
));
|
|
7311
7316
|
(Module['_FPDF_GetSecurityHandlerRevision'] =
|
|
7312
7317
|
createExportWrapper('FPDF_GetSecurityHandlerRevision', 1));
|
|
7318
|
+
(Module['_EPDF_SetEncryption'] = createExportWrapper(
|
|
7319
|
+
'EPDF_SetEncryption',
|
|
7320
|
+
4,
|
|
7321
|
+
));
|
|
7322
|
+
(Module['_EPDF_RemoveEncryption'] = createExportWrapper(
|
|
7323
|
+
'EPDF_RemoveEncryption',
|
|
7324
|
+
1,
|
|
7325
|
+
));
|
|
7326
|
+
(Module['_EPDF_UnlockOwnerPermissions'] =
|
|
7327
|
+
createExportWrapper('EPDF_UnlockOwnerPermissions', 2));
|
|
7328
|
+
(Module['_EPDF_IsEncrypted'] = createExportWrapper(
|
|
7329
|
+
'EPDF_IsEncrypted',
|
|
7330
|
+
1,
|
|
7331
|
+
));
|
|
7332
|
+
(Module['_EPDF_IsOwnerUnlocked'] = createExportWrapper(
|
|
7333
|
+
'EPDF_IsOwnerUnlocked',
|
|
7334
|
+
1,
|
|
7335
|
+
));
|
|
7313
7336
|
(Module['_FPDF_GetPageCount'] = createExportWrapper(
|
|
7314
7337
|
'FPDF_GetPageCount',
|
|
7315
7338
|
1,
|
|
@@ -7997,16 +8020,21 @@ const functions = {
|
|
|
7997
8020
|
EPDF_GetMetaTrapped: [['number'], 'number'],
|
|
7998
8021
|
EPDF_GetPageRotationByIndex: [['number', 'number'], 'number'],
|
|
7999
8022
|
EPDF_HasMetaText: [['number', 'string'], 'boolean'],
|
|
8023
|
+
EPDF_IsEncrypted: [['number'], 'boolean'],
|
|
8024
|
+
EPDF_IsOwnerUnlocked: [['number'], 'boolean'],
|
|
8000
8025
|
EPDF_PNG_EncodeRGBA: [
|
|
8001
8026
|
['number', 'number', 'number', 'number', 'number', 'number'],
|
|
8002
8027
|
'number',
|
|
8003
8028
|
],
|
|
8029
|
+
EPDF_RemoveEncryption: [['number'], 'boolean'],
|
|
8004
8030
|
EPDF_RenderAnnotBitmap: [
|
|
8005
8031
|
['number', 'number', 'number', 'number', 'number', 'number'],
|
|
8006
8032
|
'boolean',
|
|
8007
8033
|
],
|
|
8034
|
+
EPDF_SetEncryption: [['number', 'string', 'string', 'number'], 'boolean'],
|
|
8008
8035
|
EPDF_SetMetaText: [['number', 'string', 'number'], 'boolean'],
|
|
8009
8036
|
EPDF_SetMetaTrapped: [['number', 'number'], 'boolean'],
|
|
8037
|
+
EPDF_UnlockOwnerPermissions: [['number', 'string'], 'boolean'],
|
|
8010
8038
|
EPDFAction_CreateGoTo: [['number', 'number'], 'number'],
|
|
8011
8039
|
EPDFAction_CreateGoToNamed: [['number', 'string'], 'number'],
|
|
8012
8040
|
EPDFAction_CreateLaunch: [['number', 'number'], 'number'],
|
|
@@ -8838,7 +8866,7 @@ const functions = {
|
|
|
8838
8866
|
PDFiumExt_SaveAsCopy: [['number', 'number'], 'number'],
|
|
8839
8867
|
};
|
|
8840
8868
|
|
|
8841
|
-
const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@2.
|
|
8869
|
+
const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@2.2.0/dist/pdfium.wasm';
|
|
8842
8870
|
async function createWrappedModule(pdfium) {
|
|
8843
8871
|
const module = {
|
|
8844
8872
|
pdfium,
|