@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.browser.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',
|
|
@@ -5946,6 +5949,10 @@ var createPdfium = (() => {
|
|
|
5946
5949
|
));
|
|
5947
5950
|
(Module['_EPDFAnnot_GetRectangleDifferences'] =
|
|
5948
5951
|
createExportWrapper('EPDFAnnot_GetRectangleDifferences', 5));
|
|
5952
|
+
(Module['_EPDFAnnot_SetRectangleDifferences'] =
|
|
5953
|
+
createExportWrapper('EPDFAnnot_SetRectangleDifferences', 5));
|
|
5954
|
+
(Module['_EPDFAnnot_ClearRectangleDifferences'] =
|
|
5955
|
+
createExportWrapper('EPDFAnnot_ClearRectangleDifferences', 1));
|
|
5949
5956
|
(Module['_EPDFAnnot_GetBorderDashPatternCount'] =
|
|
5950
5957
|
createExportWrapper('EPDFAnnot_GetBorderDashPatternCount', 1));
|
|
5951
5958
|
(Module['_EPDFAnnot_GetBorderDashPattern'] =
|
|
@@ -6116,6 +6123,8 @@ var createPdfium = (() => {
|
|
|
6116
6123
|
));
|
|
6117
6124
|
(Module['_EPDFAnnot_GetAvailableAppearanceModes'] =
|
|
6118
6125
|
createExportWrapper('EPDFAnnot_GetAvailableAppearanceModes', 1));
|
|
6126
|
+
(Module['_EPDFAnnot_HasAppearanceStream'] =
|
|
6127
|
+
createExportWrapper('EPDFAnnot_HasAppearanceStream', 2));
|
|
6119
6128
|
(Module['_FPDFDoc_GetAttachmentCount'] = createExportWrapper(
|
|
6120
6129
|
'FPDFDoc_GetAttachmentCount',
|
|
6121
6130
|
1,
|
|
@@ -8046,6 +8055,7 @@ const functions = {
|
|
|
8046
8055
|
EPDFAction_CreateURI: [['number', 'string'], 'number'],
|
|
8047
8056
|
EPDFAnnot_ApplyRedaction: [['number', 'number'], 'boolean'],
|
|
8048
8057
|
EPDFAnnot_ClearColor: [['number', 'number'], 'boolean'],
|
|
8058
|
+
EPDFAnnot_ClearRectangleDifferences: [['number'], 'boolean'],
|
|
8049
8059
|
EPDFAnnot_Flatten: [['number', 'number'], 'boolean'],
|
|
8050
8060
|
EPDFAnnot_GenerateAppearance: [['number'], 'boolean'],
|
|
8051
8061
|
EPDFAnnot_GenerateAppearanceWithBlend: [['number', 'number'], 'boolean'],
|
|
@@ -8082,6 +8092,7 @@ const functions = {
|
|
|
8082
8092
|
EPDFAnnot_GetTextAlignment: [['number'], 'number'],
|
|
8083
8093
|
EPDFAnnot_GetUnrotatedRect: [['number', 'number'], 'boolean'],
|
|
8084
8094
|
EPDFAnnot_GetVerticalAlignment: [['number'], 'number'],
|
|
8095
|
+
EPDFAnnot_HasAppearanceStream: [['number', 'number'], 'boolean'],
|
|
8085
8096
|
EPDFAnnot_SetAction: [['number', 'number'], 'boolean'],
|
|
8086
8097
|
EPDFAnnot_SetAPMatrix: [['number', 'number', 'number'], 'boolean'],
|
|
8087
8098
|
EPDFAnnot_SetBorderDashPattern: [['number', 'number', 'number'], 'boolean'],
|
|
@@ -8103,6 +8114,10 @@ const functions = {
|
|
|
8103
8114
|
EPDFAnnot_SetOpacity: [['number', 'number'], 'boolean'],
|
|
8104
8115
|
EPDFAnnot_SetOverlayText: [['number', 'number'], 'boolean'],
|
|
8105
8116
|
EPDFAnnot_SetOverlayTextRepeat: [['number', 'boolean'], 'boolean'],
|
|
8117
|
+
EPDFAnnot_SetRectangleDifferences: [
|
|
8118
|
+
['number', 'number', 'number', 'number', 'number'],
|
|
8119
|
+
'boolean',
|
|
8120
|
+
],
|
|
8106
8121
|
EPDFAnnot_SetReplyType: [['number', 'number'], 'boolean'],
|
|
8107
8122
|
EPDFAnnot_SetRotate: [['number', 'number'], 'boolean'],
|
|
8108
8123
|
EPDFAnnot_SetTextAlignment: [['number', 'number'], 'boolean'],
|
|
@@ -8895,7 +8910,7 @@ const functions = {
|
|
|
8895
8910
|
PDFiumExt_SaveAsCopy: [['number', 'number'], 'number'],
|
|
8896
8911
|
};
|
|
8897
8912
|
|
|
8898
|
-
const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@2.
|
|
8913
|
+
const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@2.8.0/dist/pdfium.wasm';
|
|
8899
8914
|
async function createWrappedModule(pdfium) {
|
|
8900
8915
|
const module = {
|
|
8901
8916
|
pdfium,
|