@embedpdf/pdfium 2.6.2 → 2.8.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 +16 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +11 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/dist/pdfium.wasm +0 -0
- package/dist/vendor/functions.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -49,6 +49,7 @@ declare const functions: {
|
|
|
49
49
|
readonly EPDFAction_CreateURI: readonly [readonly ["number", "string"], "number"];
|
|
50
50
|
readonly EPDFAnnot_ApplyRedaction: readonly [readonly ["number", "number"], "boolean"];
|
|
51
51
|
readonly EPDFAnnot_ClearColor: readonly [readonly ["number", "number"], "boolean"];
|
|
52
|
+
readonly EPDFAnnot_ClearRectangleDifferences: readonly [readonly ["number"], "boolean"];
|
|
52
53
|
readonly EPDFAnnot_Flatten: readonly [readonly ["number", "number"], "boolean"];
|
|
53
54
|
readonly EPDFAnnot_GenerateAppearance: readonly [readonly ["number"], "boolean"];
|
|
54
55
|
readonly EPDFAnnot_GenerateAppearanceWithBlend: readonly [readonly ["number", "number"], "boolean"];
|
|
@@ -76,6 +77,7 @@ declare const functions: {
|
|
|
76
77
|
readonly EPDFAnnot_GetTextAlignment: readonly [readonly ["number"], "number"];
|
|
77
78
|
readonly EPDFAnnot_GetUnrotatedRect: readonly [readonly ["number", "number"], "boolean"];
|
|
78
79
|
readonly EPDFAnnot_GetVerticalAlignment: readonly [readonly ["number"], "number"];
|
|
80
|
+
readonly EPDFAnnot_HasAppearanceStream: readonly [readonly ["number", "number"], "boolean"];
|
|
79
81
|
readonly EPDFAnnot_SetAction: readonly [readonly ["number", "number"], "boolean"];
|
|
80
82
|
readonly EPDFAnnot_SetAPMatrix: readonly [readonly ["number", "number", "number"], "boolean"];
|
|
81
83
|
readonly EPDFAnnot_SetBorderDashPattern: readonly [readonly ["number", "number", "number"], "boolean"];
|
|
@@ -91,6 +93,7 @@ declare const functions: {
|
|
|
91
93
|
readonly EPDFAnnot_SetOpacity: readonly [readonly ["number", "number"], "boolean"];
|
|
92
94
|
readonly EPDFAnnot_SetOverlayText: readonly [readonly ["number", "number"], "boolean"];
|
|
93
95
|
readonly EPDFAnnot_SetOverlayTextRepeat: readonly [readonly ["number", "boolean"], "boolean"];
|
|
96
|
+
readonly EPDFAnnot_SetRectangleDifferences: readonly [readonly ["number", "number", "number", "number", "number"], "boolean"];
|
|
94
97
|
readonly EPDFAnnot_SetReplyType: readonly [readonly ["number", "number"], "boolean"];
|
|
95
98
|
readonly EPDFAnnot_SetRotate: readonly [readonly ["number", "number"], "boolean"];
|
|
96
99
|
readonly EPDFAnnot_SetTextAlignment: readonly [readonly ["number", "number"], "boolean"];
|
package/dist/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ declare const functions: {
|
|
|
49
49
|
readonly EPDFAction_CreateURI: readonly [readonly ["number", "string"], "number"];
|
|
50
50
|
readonly EPDFAnnot_ApplyRedaction: readonly [readonly ["number", "number"], "boolean"];
|
|
51
51
|
readonly EPDFAnnot_ClearColor: readonly [readonly ["number", "number"], "boolean"];
|
|
52
|
+
readonly EPDFAnnot_ClearRectangleDifferences: readonly [readonly ["number"], "boolean"];
|
|
52
53
|
readonly EPDFAnnot_Flatten: readonly [readonly ["number", "number"], "boolean"];
|
|
53
54
|
readonly EPDFAnnot_GenerateAppearance: readonly [readonly ["number"], "boolean"];
|
|
54
55
|
readonly EPDFAnnot_GenerateAppearanceWithBlend: readonly [readonly ["number", "number"], "boolean"];
|
|
@@ -76,6 +77,7 @@ declare const functions: {
|
|
|
76
77
|
readonly EPDFAnnot_GetTextAlignment: readonly [readonly ["number"], "number"];
|
|
77
78
|
readonly EPDFAnnot_GetUnrotatedRect: readonly [readonly ["number", "number"], "boolean"];
|
|
78
79
|
readonly EPDFAnnot_GetVerticalAlignment: readonly [readonly ["number"], "number"];
|
|
80
|
+
readonly EPDFAnnot_HasAppearanceStream: readonly [readonly ["number", "number"], "boolean"];
|
|
79
81
|
readonly EPDFAnnot_SetAction: readonly [readonly ["number", "number"], "boolean"];
|
|
80
82
|
readonly EPDFAnnot_SetAPMatrix: readonly [readonly ["number", "number", "number"], "boolean"];
|
|
81
83
|
readonly EPDFAnnot_SetBorderDashPattern: readonly [readonly ["number", "number", "number"], "boolean"];
|
|
@@ -91,6 +93,7 @@ declare const functions: {
|
|
|
91
93
|
readonly EPDFAnnot_SetOpacity: readonly [readonly ["number", "number"], "boolean"];
|
|
92
94
|
readonly EPDFAnnot_SetOverlayText: readonly [readonly ["number", "number"], "boolean"];
|
|
93
95
|
readonly EPDFAnnot_SetOverlayTextRepeat: readonly [readonly ["number", "boolean"], "boolean"];
|
|
96
|
+
readonly EPDFAnnot_SetRectangleDifferences: readonly [readonly ["number", "number", "number", "number", "number"], "boolean"];
|
|
94
97
|
readonly EPDFAnnot_SetReplyType: readonly [readonly ["number", "number"], "boolean"];
|
|
95
98
|
readonly EPDFAnnot_SetRotate: readonly [readonly ["number", "number"], "boolean"];
|
|
96
99
|
readonly EPDFAnnot_SetTextAlignment: readonly [readonly ["number", "number"], "boolean"];
|
package/dist/index.js
CHANGED
|
@@ -52,6 +52,7 @@ var createPdfium = (() => {
|
|
|
52
52
|
'_EPDFAction_CreateURI',
|
|
53
53
|
'_EPDFAnnot_ApplyRedaction',
|
|
54
54
|
'_EPDFAnnot_ClearColor',
|
|
55
|
+
'_EPDFAnnot_ClearRectangleDifferences',
|
|
55
56
|
'_EPDFAnnot_Flatten',
|
|
56
57
|
'_EPDFAnnot_GenerateAppearance',
|
|
57
58
|
'_EPDFAnnot_GenerateAppearanceWithBlend',
|
|
@@ -79,6 +80,7 @@ var createPdfium = (() => {
|
|
|
79
80
|
'_EPDFAnnot_GetTextAlignment',
|
|
80
81
|
'_EPDFAnnot_GetUnrotatedRect',
|
|
81
82
|
'_EPDFAnnot_GetVerticalAlignment',
|
|
83
|
+
'_EPDFAnnot_HasAppearanceStream',
|
|
82
84
|
'_EPDFAnnot_SetAction',
|
|
83
85
|
'_EPDFAnnot_SetAPMatrix',
|
|
84
86
|
'_EPDFAnnot_SetBorderDashPattern',
|
|
@@ -94,6 +96,7 @@ var createPdfium = (() => {
|
|
|
94
96
|
'_EPDFAnnot_SetOpacity',
|
|
95
97
|
'_EPDFAnnot_SetOverlayText',
|
|
96
98
|
'_EPDFAnnot_SetOverlayTextRepeat',
|
|
99
|
+
'_EPDFAnnot_SetRectangleDifferences',
|
|
97
100
|
'_EPDFAnnot_SetReplyType',
|
|
98
101
|
'_EPDFAnnot_SetRotate',
|
|
99
102
|
'_EPDFAnnot_SetTextAlignment',
|
|
@@ -6061,6 +6064,10 @@ var createPdfium = (() => {
|
|
|
6061
6064
|
));
|
|
6062
6065
|
(Module['_EPDFAnnot_GetRectangleDifferences'] =
|
|
6063
6066
|
createExportWrapper('EPDFAnnot_GetRectangleDifferences', 5));
|
|
6067
|
+
(Module['_EPDFAnnot_SetRectangleDifferences'] =
|
|
6068
|
+
createExportWrapper('EPDFAnnot_SetRectangleDifferences', 5));
|
|
6069
|
+
(Module['_EPDFAnnot_ClearRectangleDifferences'] =
|
|
6070
|
+
createExportWrapper('EPDFAnnot_ClearRectangleDifferences', 1));
|
|
6064
6071
|
(Module['_EPDFAnnot_GetBorderDashPatternCount'] =
|
|
6065
6072
|
createExportWrapper('EPDFAnnot_GetBorderDashPatternCount', 1));
|
|
6066
6073
|
(Module['_EPDFAnnot_GetBorderDashPattern'] =
|
|
@@ -6231,6 +6238,8 @@ var createPdfium = (() => {
|
|
|
6231
6238
|
));
|
|
6232
6239
|
(Module['_EPDFAnnot_GetAvailableAppearanceModes'] =
|
|
6233
6240
|
createExportWrapper('EPDFAnnot_GetAvailableAppearanceModes', 1));
|
|
6241
|
+
(Module['_EPDFAnnot_HasAppearanceStream'] =
|
|
6242
|
+
createExportWrapper('EPDFAnnot_HasAppearanceStream', 2));
|
|
6234
6243
|
(Module['_FPDFDoc_GetAttachmentCount'] = createExportWrapper(
|
|
6235
6244
|
'FPDFDoc_GetAttachmentCount',
|
|
6236
6245
|
1,
|
|
@@ -8161,6 +8170,7 @@ const functions = {
|
|
|
8161
8170
|
EPDFAction_CreateURI: [['number', 'string'], 'number'],
|
|
8162
8171
|
EPDFAnnot_ApplyRedaction: [['number', 'number'], 'boolean'],
|
|
8163
8172
|
EPDFAnnot_ClearColor: [['number', 'number'], 'boolean'],
|
|
8173
|
+
EPDFAnnot_ClearRectangleDifferences: [['number'], 'boolean'],
|
|
8164
8174
|
EPDFAnnot_Flatten: [['number', 'number'], 'boolean'],
|
|
8165
8175
|
EPDFAnnot_GenerateAppearance: [['number'], 'boolean'],
|
|
8166
8176
|
EPDFAnnot_GenerateAppearanceWithBlend: [['number', 'number'], 'boolean'],
|
|
@@ -8197,6 +8207,7 @@ const functions = {
|
|
|
8197
8207
|
EPDFAnnot_GetTextAlignment: [['number'], 'number'],
|
|
8198
8208
|
EPDFAnnot_GetUnrotatedRect: [['number', 'number'], 'boolean'],
|
|
8199
8209
|
EPDFAnnot_GetVerticalAlignment: [['number'], 'number'],
|
|
8210
|
+
EPDFAnnot_HasAppearanceStream: [['number', 'number'], 'boolean'],
|
|
8200
8211
|
EPDFAnnot_SetAction: [['number', 'number'], 'boolean'],
|
|
8201
8212
|
EPDFAnnot_SetAPMatrix: [['number', 'number', 'number'], 'boolean'],
|
|
8202
8213
|
EPDFAnnot_SetBorderDashPattern: [['number', 'number', 'number'], 'boolean'],
|
|
@@ -8218,6 +8229,10 @@ const functions = {
|
|
|
8218
8229
|
EPDFAnnot_SetOpacity: [['number', 'number'], 'boolean'],
|
|
8219
8230
|
EPDFAnnot_SetOverlayText: [['number', 'number'], 'boolean'],
|
|
8220
8231
|
EPDFAnnot_SetOverlayTextRepeat: [['number', 'boolean'], 'boolean'],
|
|
8232
|
+
EPDFAnnot_SetRectangleDifferences: [
|
|
8233
|
+
['number', 'number', 'number', 'number', 'number'],
|
|
8234
|
+
'boolean',
|
|
8235
|
+
],
|
|
8221
8236
|
EPDFAnnot_SetReplyType: [['number', 'number'], 'boolean'],
|
|
8222
8237
|
EPDFAnnot_SetRotate: [['number', 'number'], 'boolean'],
|
|
8223
8238
|
EPDFAnnot_SetTextAlignment: [['number', 'number'], 'boolean'],
|
|
@@ -9010,7 +9025,7 @@ const functions = {
|
|
|
9010
9025
|
PDFiumExt_SaveAsCopy: [['number', 'number'], 'number'],
|
|
9011
9026
|
};
|
|
9012
9027
|
|
|
9013
|
-
const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@2.
|
|
9028
|
+
const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@2.8.0/dist/pdfium.wasm';
|
|
9014
9029
|
async function createWrappedModule(pdfium) {
|
|
9015
9030
|
const module = {
|
|
9016
9031
|
pdfium,
|