@embedpdf/pdfium 2.1.2 → 2.3.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 +47 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +18 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +47 -1
- package/dist/index.js.map +1 -1
- package/dist/pdfium.wasm +0 -0
- package/dist/vendor/functions.d.ts +8 -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',
|
|
@@ -57,9 +62,11 @@ var createPdfium = (() => {
|
|
|
57
62
|
'_EPDFAnnot_GetLineEndings',
|
|
58
63
|
'_EPDFAnnot_GetOpacity',
|
|
59
64
|
'_EPDFAnnot_GetRectangleDifferences',
|
|
65
|
+
'_EPDFAnnot_GetReplyType',
|
|
60
66
|
'_EPDFAnnot_GetRichContent',
|
|
61
67
|
'_EPDFAnnot_GetTextAlignment',
|
|
62
68
|
'_EPDFAnnot_GetVerticalAlignment',
|
|
69
|
+
'_EPDFAnnot_SetAction',
|
|
63
70
|
'_EPDFAnnot_SetBorderDashPattern',
|
|
64
71
|
'_EPDFAnnot_SetBorderStyle',
|
|
65
72
|
'_EPDFAnnot_SetColor',
|
|
@@ -70,6 +77,7 @@ var createPdfium = (() => {
|
|
|
70
77
|
'_EPDFAnnot_SetLineEndings',
|
|
71
78
|
'_EPDFAnnot_SetLinkedAnnot',
|
|
72
79
|
'_EPDFAnnot_SetOpacity',
|
|
80
|
+
'_EPDFAnnot_SetReplyType',
|
|
73
81
|
'_EPDFAnnot_SetTextAlignment',
|
|
74
82
|
'_EPDFAnnot_SetVerticalAlignment',
|
|
75
83
|
'_EPDFAnnot_SetVertices',
|
|
@@ -5881,6 +5889,10 @@ var createPdfium = (() => {
|
|
|
5881
5889
|
'FPDFAnnot_SetURI',
|
|
5882
5890
|
2,
|
|
5883
5891
|
));
|
|
5892
|
+
(Module['_EPDFAnnot_SetAction'] = createExportWrapper(
|
|
5893
|
+
'EPDFAnnot_SetAction',
|
|
5894
|
+
2,
|
|
5895
|
+
));
|
|
5884
5896
|
(Module['_FPDFAnnot_GetFileAttachment'] =
|
|
5885
5897
|
createExportWrapper('FPDFAnnot_GetFileAttachment', 1));
|
|
5886
5898
|
(Module['_FPDFAnnot_AddFileAttachment'] =
|
|
@@ -6015,6 +6027,14 @@ var createPdfium = (() => {
|
|
|
6015
6027
|
'EPDFPage_CreateAnnot',
|
|
6016
6028
|
2,
|
|
6017
6029
|
));
|
|
6030
|
+
(Module['_EPDFAnnot_GetReplyType'] = createExportWrapper(
|
|
6031
|
+
'EPDFAnnot_GetReplyType',
|
|
6032
|
+
1,
|
|
6033
|
+
));
|
|
6034
|
+
(Module['_EPDFAnnot_SetReplyType'] = createExportWrapper(
|
|
6035
|
+
'EPDFAnnot_SetReplyType',
|
|
6036
|
+
2,
|
|
6037
|
+
));
|
|
6018
6038
|
(Module['_FPDFDoc_GetAttachmentCount'] = createExportWrapper(
|
|
6019
6039
|
'FPDFDoc_GetAttachmentCount',
|
|
6020
6040
|
1,
|
|
@@ -7195,6 +7215,24 @@ var createPdfium = (() => {
|
|
|
7195
7215
|
));
|
|
7196
7216
|
(Module['_FPDF_GetSecurityHandlerRevision'] =
|
|
7197
7217
|
createExportWrapper('FPDF_GetSecurityHandlerRevision', 1));
|
|
7218
|
+
(Module['_EPDF_SetEncryption'] = createExportWrapper(
|
|
7219
|
+
'EPDF_SetEncryption',
|
|
7220
|
+
4,
|
|
7221
|
+
));
|
|
7222
|
+
(Module['_EPDF_RemoveEncryption'] = createExportWrapper(
|
|
7223
|
+
'EPDF_RemoveEncryption',
|
|
7224
|
+
1,
|
|
7225
|
+
));
|
|
7226
|
+
(Module['_EPDF_UnlockOwnerPermissions'] =
|
|
7227
|
+
createExportWrapper('EPDF_UnlockOwnerPermissions', 2));
|
|
7228
|
+
(Module['_EPDF_IsEncrypted'] = createExportWrapper(
|
|
7229
|
+
'EPDF_IsEncrypted',
|
|
7230
|
+
1,
|
|
7231
|
+
));
|
|
7232
|
+
(Module['_EPDF_IsOwnerUnlocked'] = createExportWrapper(
|
|
7233
|
+
'EPDF_IsOwnerUnlocked',
|
|
7234
|
+
1,
|
|
7235
|
+
));
|
|
7198
7236
|
(Module['_FPDF_GetPageCount'] = createExportWrapper(
|
|
7199
7237
|
'FPDF_GetPageCount',
|
|
7200
7238
|
1,
|
|
@@ -7882,16 +7920,21 @@ const functions = {
|
|
|
7882
7920
|
EPDF_GetMetaTrapped: [['number'], 'number'],
|
|
7883
7921
|
EPDF_GetPageRotationByIndex: [['number', 'number'], 'number'],
|
|
7884
7922
|
EPDF_HasMetaText: [['number', 'string'], 'boolean'],
|
|
7923
|
+
EPDF_IsEncrypted: [['number'], 'boolean'],
|
|
7924
|
+
EPDF_IsOwnerUnlocked: [['number'], 'boolean'],
|
|
7885
7925
|
EPDF_PNG_EncodeRGBA: [
|
|
7886
7926
|
['number', 'number', 'number', 'number', 'number', 'number'],
|
|
7887
7927
|
'number',
|
|
7888
7928
|
],
|
|
7929
|
+
EPDF_RemoveEncryption: [['number'], 'boolean'],
|
|
7889
7930
|
EPDF_RenderAnnotBitmap: [
|
|
7890
7931
|
['number', 'number', 'number', 'number', 'number', 'number'],
|
|
7891
7932
|
'boolean',
|
|
7892
7933
|
],
|
|
7934
|
+
EPDF_SetEncryption: [['number', 'string', 'string', 'number'], 'boolean'],
|
|
7893
7935
|
EPDF_SetMetaText: [['number', 'string', 'number'], 'boolean'],
|
|
7894
7936
|
EPDF_SetMetaTrapped: [['number', 'number'], 'boolean'],
|
|
7937
|
+
EPDF_UnlockOwnerPermissions: [['number', 'string'], 'boolean'],
|
|
7895
7938
|
EPDFAction_CreateGoTo: [['number', 'number'], 'number'],
|
|
7896
7939
|
EPDFAction_CreateGoToNamed: [['number', 'string'], 'number'],
|
|
7897
7940
|
EPDFAction_CreateLaunch: [['number', 'number'], 'number'],
|
|
@@ -7922,9 +7965,11 @@ const functions = {
|
|
|
7922
7965
|
['number', 'number', 'number', 'number', 'number'],
|
|
7923
7966
|
'boolean',
|
|
7924
7967
|
],
|
|
7968
|
+
EPDFAnnot_GetReplyType: [['number'], 'number'],
|
|
7925
7969
|
EPDFAnnot_GetRichContent: [['number', 'number', 'number'], 'number'],
|
|
7926
7970
|
EPDFAnnot_GetTextAlignment: [['number'], 'number'],
|
|
7927
7971
|
EPDFAnnot_GetVerticalAlignment: [['number'], 'number'],
|
|
7972
|
+
EPDFAnnot_SetAction: [['number', 'number'], 'boolean'],
|
|
7928
7973
|
EPDFAnnot_SetBorderDashPattern: [['number', 'number', 'number'], 'boolean'],
|
|
7929
7974
|
EPDFAnnot_SetBorderStyle: [['number', 'number', 'number'], 'boolean'],
|
|
7930
7975
|
EPDFAnnot_SetColor: [
|
|
@@ -7941,6 +7986,7 @@ const functions = {
|
|
|
7941
7986
|
EPDFAnnot_SetLineEndings: [['number', 'number', 'number'], 'boolean'],
|
|
7942
7987
|
EPDFAnnot_SetLinkedAnnot: [['number', 'string', 'number'], 'boolean'],
|
|
7943
7988
|
EPDFAnnot_SetOpacity: [['number', 'number'], 'boolean'],
|
|
7989
|
+
EPDFAnnot_SetReplyType: [['number', 'number'], 'boolean'],
|
|
7944
7990
|
EPDFAnnot_SetTextAlignment: [['number', 'number'], 'boolean'],
|
|
7945
7991
|
EPDFAnnot_SetVerticalAlignment: [['number', 'number'], 'boolean'],
|
|
7946
7992
|
EPDFAnnot_SetVertices: [['number', 'number', 'number'], 'boolean'],
|
|
@@ -8723,7 +8769,7 @@ const functions = {
|
|
|
8723
8769
|
PDFiumExt_SaveAsCopy: [['number', 'number'], 'number'],
|
|
8724
8770
|
};
|
|
8725
8771
|
|
|
8726
|
-
const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@2.
|
|
8772
|
+
const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@2.3.0/dist/pdfium.wasm';
|
|
8727
8773
|
async function createWrappedModule(pdfium) {
|
|
8728
8774
|
const module = {
|
|
8729
8775
|
pdfium,
|