@embedpdf/pdfium 2.1.1 → 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.browser.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',
|
|
@@ -7195,6 +7200,24 @@ var createPdfium = (() => {
|
|
|
7195
7200
|
));
|
|
7196
7201
|
(Module['_FPDF_GetSecurityHandlerRevision'] =
|
|
7197
7202
|
createExportWrapper('FPDF_GetSecurityHandlerRevision', 1));
|
|
7203
|
+
(Module['_EPDF_SetEncryption'] = createExportWrapper(
|
|
7204
|
+
'EPDF_SetEncryption',
|
|
7205
|
+
4,
|
|
7206
|
+
));
|
|
7207
|
+
(Module['_EPDF_RemoveEncryption'] = createExportWrapper(
|
|
7208
|
+
'EPDF_RemoveEncryption',
|
|
7209
|
+
1,
|
|
7210
|
+
));
|
|
7211
|
+
(Module['_EPDF_UnlockOwnerPermissions'] =
|
|
7212
|
+
createExportWrapper('EPDF_UnlockOwnerPermissions', 2));
|
|
7213
|
+
(Module['_EPDF_IsEncrypted'] = createExportWrapper(
|
|
7214
|
+
'EPDF_IsEncrypted',
|
|
7215
|
+
1,
|
|
7216
|
+
));
|
|
7217
|
+
(Module['_EPDF_IsOwnerUnlocked'] = createExportWrapper(
|
|
7218
|
+
'EPDF_IsOwnerUnlocked',
|
|
7219
|
+
1,
|
|
7220
|
+
));
|
|
7198
7221
|
(Module['_FPDF_GetPageCount'] = createExportWrapper(
|
|
7199
7222
|
'FPDF_GetPageCount',
|
|
7200
7223
|
1,
|
|
@@ -7882,16 +7905,21 @@ const functions = {
|
|
|
7882
7905
|
EPDF_GetMetaTrapped: [['number'], 'number'],
|
|
7883
7906
|
EPDF_GetPageRotationByIndex: [['number', 'number'], 'number'],
|
|
7884
7907
|
EPDF_HasMetaText: [['number', 'string'], 'boolean'],
|
|
7908
|
+
EPDF_IsEncrypted: [['number'], 'boolean'],
|
|
7909
|
+
EPDF_IsOwnerUnlocked: [['number'], 'boolean'],
|
|
7885
7910
|
EPDF_PNG_EncodeRGBA: [
|
|
7886
7911
|
['number', 'number', 'number', 'number', 'number', 'number'],
|
|
7887
7912
|
'number',
|
|
7888
7913
|
],
|
|
7914
|
+
EPDF_RemoveEncryption: [['number'], 'boolean'],
|
|
7889
7915
|
EPDF_RenderAnnotBitmap: [
|
|
7890
7916
|
['number', 'number', 'number', 'number', 'number', 'number'],
|
|
7891
7917
|
'boolean',
|
|
7892
7918
|
],
|
|
7919
|
+
EPDF_SetEncryption: [['number', 'string', 'string', 'number'], 'boolean'],
|
|
7893
7920
|
EPDF_SetMetaText: [['number', 'string', 'number'], 'boolean'],
|
|
7894
7921
|
EPDF_SetMetaTrapped: [['number', 'number'], 'boolean'],
|
|
7922
|
+
EPDF_UnlockOwnerPermissions: [['number', 'string'], 'boolean'],
|
|
7895
7923
|
EPDFAction_CreateGoTo: [['number', 'number'], 'number'],
|
|
7896
7924
|
EPDFAction_CreateGoToNamed: [['number', 'string'], 'number'],
|
|
7897
7925
|
EPDFAction_CreateLaunch: [['number', 'number'], 'number'],
|
|
@@ -8723,7 +8751,7 @@ const functions = {
|
|
|
8723
8751
|
PDFiumExt_SaveAsCopy: [['number', 'number'], 'number'],
|
|
8724
8752
|
};
|
|
8725
8753
|
|
|
8726
|
-
const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@2.
|
|
8754
|
+
const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@2.2.0/dist/pdfium.wasm';
|
|
8727
8755
|
async function createWrappedModule(pdfium) {
|
|
8728
8756
|
const module = {
|
|
8729
8757
|
pdfium,
|