@embedpdf/pdfium 1.3.0 → 1.3.2
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 +23 -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 +23 -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
|
@@ -27,6 +27,7 @@ declare const functions: {
|
|
|
27
27
|
readonly EPDF_GetMetaKeyCount: readonly [readonly ["number", "boolean"], "number"];
|
|
28
28
|
readonly EPDF_GetMetaKeyName: readonly [readonly ["number", "number", "boolean", "number", "number"], "number"];
|
|
29
29
|
readonly EPDF_GetMetaTrapped: readonly [readonly ["number"], "number"];
|
|
30
|
+
readonly EPDF_GetPageRotationByIndex: readonly [readonly ["number", "number"], "number"];
|
|
30
31
|
readonly EPDF_HasMetaText: readonly [readonly ["number", "string"], "boolean"];
|
|
31
32
|
readonly EPDF_PNG_EncodeRGBA: readonly [readonly ["number", "number", "number", "number", "number", "number"], "number"];
|
|
32
33
|
readonly EPDF_RenderAnnotBitmap: readonly [readonly ["number", "number", "number", "number", "number", "number"], "boolean"];
|
|
@@ -70,6 +71,10 @@ declare const functions: {
|
|
|
70
71
|
readonly EPDFAnnot_SetVerticalAlignment: readonly [readonly ["number", "number"], "boolean"];
|
|
71
72
|
readonly EPDFAnnot_SetVertices: readonly [readonly ["number", "number", "number"], "boolean"];
|
|
72
73
|
readonly EPDFAnnot_UpdateAppearanceToRect: readonly [readonly ["number", "number"], "boolean"];
|
|
74
|
+
readonly EPDFAttachment_GetDescription: readonly [readonly ["number", "number", "number"], "number"];
|
|
75
|
+
readonly EPDFAttachment_GetIntegerValue: readonly [readonly ["number", "string", "number"], "boolean"];
|
|
76
|
+
readonly EPDFAttachment_SetDescription: readonly [readonly ["number", "number"], "boolean"];
|
|
77
|
+
readonly EPDFAttachment_SetSubtype: readonly [readonly ["number", "string"], "boolean"];
|
|
73
78
|
readonly EPDFBookmark_AppendChild: readonly [readonly ["number", "number", "number"], "number"];
|
|
74
79
|
readonly EPDFBookmark_Clear: readonly [readonly ["number"], "boolean"];
|
|
75
80
|
readonly EPDFBookmark_ClearTarget: readonly [readonly ["number"], "boolean"];
|
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ declare const functions: {
|
|
|
27
27
|
readonly EPDF_GetMetaKeyCount: readonly [readonly ["number", "boolean"], "number"];
|
|
28
28
|
readonly EPDF_GetMetaKeyName: readonly [readonly ["number", "number", "boolean", "number", "number"], "number"];
|
|
29
29
|
readonly EPDF_GetMetaTrapped: readonly [readonly ["number"], "number"];
|
|
30
|
+
readonly EPDF_GetPageRotationByIndex: readonly [readonly ["number", "number"], "number"];
|
|
30
31
|
readonly EPDF_HasMetaText: readonly [readonly ["number", "string"], "boolean"];
|
|
31
32
|
readonly EPDF_PNG_EncodeRGBA: readonly [readonly ["number", "number", "number", "number", "number", "number"], "number"];
|
|
32
33
|
readonly EPDF_RenderAnnotBitmap: readonly [readonly ["number", "number", "number", "number", "number", "number"], "boolean"];
|
|
@@ -70,6 +71,10 @@ declare const functions: {
|
|
|
70
71
|
readonly EPDFAnnot_SetVerticalAlignment: readonly [readonly ["number", "number"], "boolean"];
|
|
71
72
|
readonly EPDFAnnot_SetVertices: readonly [readonly ["number", "number", "number"], "boolean"];
|
|
72
73
|
readonly EPDFAnnot_UpdateAppearanceToRect: readonly [readonly ["number", "number"], "boolean"];
|
|
74
|
+
readonly EPDFAttachment_GetDescription: readonly [readonly ["number", "number", "number"], "number"];
|
|
75
|
+
readonly EPDFAttachment_GetIntegerValue: readonly [readonly ["number", "string", "number"], "boolean"];
|
|
76
|
+
readonly EPDFAttachment_SetDescription: readonly [readonly ["number", "number"], "boolean"];
|
|
77
|
+
readonly EPDFAttachment_SetSubtype: readonly [readonly ["number", "string"], "boolean"];
|
|
73
78
|
readonly EPDFBookmark_AppendChild: readonly [readonly ["number", "number", "number"], "number"];
|
|
74
79
|
readonly EPDFBookmark_Clear: readonly [readonly ["number"], "boolean"];
|
|
75
80
|
readonly EPDFBookmark_ClearTarget: readonly [readonly ["number"], "boolean"];
|
package/dist/index.js
CHANGED
|
@@ -30,6 +30,7 @@ var createPdfium = (() => {
|
|
|
30
30
|
'_EPDF_GetMetaKeyCount',
|
|
31
31
|
'_EPDF_GetMetaKeyName',
|
|
32
32
|
'_EPDF_GetMetaTrapped',
|
|
33
|
+
'_EPDF_GetPageRotationByIndex',
|
|
33
34
|
'_EPDF_HasMetaText',
|
|
34
35
|
'_EPDF_PNG_EncodeRGBA',
|
|
35
36
|
'_EPDF_RenderAnnotBitmap',
|
|
@@ -73,6 +74,10 @@ var createPdfium = (() => {
|
|
|
73
74
|
'_EPDFAnnot_SetVerticalAlignment',
|
|
74
75
|
'_EPDFAnnot_SetVertices',
|
|
75
76
|
'_EPDFAnnot_UpdateAppearanceToRect',
|
|
77
|
+
'_EPDFAttachment_GetDescription',
|
|
78
|
+
'_EPDFAttachment_GetIntegerValue',
|
|
79
|
+
'_EPDFAttachment_SetDescription',
|
|
80
|
+
'_EPDFAttachment_SetSubtype',
|
|
76
81
|
'_EPDFBookmark_AppendChild',
|
|
77
82
|
'_EPDFBookmark_Clear',
|
|
78
83
|
'_EPDFBookmark_ClearTarget',
|
|
@@ -6173,6 +6178,16 @@ var createPdfium = (() => {
|
|
|
6173
6178
|
'FPDFAttachment_GetSubtype',
|
|
6174
6179
|
3,
|
|
6175
6180
|
));
|
|
6181
|
+
(Module['_EPDFAttachment_SetSubtype'] = createExportWrapper(
|
|
6182
|
+
'EPDFAttachment_SetSubtype',
|
|
6183
|
+
2,
|
|
6184
|
+
));
|
|
6185
|
+
(Module['_EPDFAttachment_SetDescription'] =
|
|
6186
|
+
createExportWrapper('EPDFAttachment_SetDescription', 2));
|
|
6187
|
+
(Module['_EPDFAttachment_GetDescription'] =
|
|
6188
|
+
createExportWrapper('EPDFAttachment_GetDescription', 3));
|
|
6189
|
+
(Module['_EPDFAttachment_GetIntegerValue'] =
|
|
6190
|
+
createExportWrapper('EPDFAttachment_GetIntegerValue', 3));
|
|
6176
6191
|
(Module['_FPDFCatalog_IsTagged'] = createExportWrapper(
|
|
6177
6192
|
'FPDFCatalog_IsTagged',
|
|
6178
6193
|
1,
|
|
@@ -7393,6 +7408,8 @@ var createPdfium = (() => {
|
|
|
7393
7408
|
'FPDF_GetPageSizeByIndexF',
|
|
7394
7409
|
3,
|
|
7395
7410
|
));
|
|
7411
|
+
(Module['_EPDF_GetPageRotationByIndex'] =
|
|
7412
|
+
createExportWrapper('EPDF_GetPageRotationByIndex', 2));
|
|
7396
7413
|
(Module['_FPDF_GetPageSizeByIndex'] = createExportWrapper(
|
|
7397
7414
|
'FPDF_GetPageSizeByIndex',
|
|
7398
7415
|
4,
|
|
@@ -7984,6 +8001,7 @@ const functions = {
|
|
|
7984
8001
|
'number',
|
|
7985
8002
|
],
|
|
7986
8003
|
EPDF_GetMetaTrapped: [['number'], 'number'],
|
|
8004
|
+
EPDF_GetPageRotationByIndex: [['number', 'number'], 'number'],
|
|
7987
8005
|
EPDF_HasMetaText: [['number', 'string'], 'boolean'],
|
|
7988
8006
|
EPDF_PNG_EncodeRGBA: [
|
|
7989
8007
|
['number', 'number', 'number', 'number', 'number', 'number'],
|
|
@@ -8048,6 +8066,10 @@ const functions = {
|
|
|
8048
8066
|
EPDFAnnot_SetVerticalAlignment: [['number', 'number'], 'boolean'],
|
|
8049
8067
|
EPDFAnnot_SetVertices: [['number', 'number', 'number'], 'boolean'],
|
|
8050
8068
|
EPDFAnnot_UpdateAppearanceToRect: [['number', 'number'], 'boolean'],
|
|
8069
|
+
EPDFAttachment_GetDescription: [['number', 'number', 'number'], 'number'],
|
|
8070
|
+
EPDFAttachment_GetIntegerValue: [['number', 'string', 'number'], 'boolean'],
|
|
8071
|
+
EPDFAttachment_SetDescription: [['number', 'number'], 'boolean'],
|
|
8072
|
+
EPDFAttachment_SetSubtype: [['number', 'string'], 'boolean'],
|
|
8051
8073
|
EPDFBookmark_AppendChild: [['number', 'number', 'number'], 'number'],
|
|
8052
8074
|
EPDFBookmark_Clear: [['number'], 'boolean'],
|
|
8053
8075
|
EPDFBookmark_ClearTarget: [['number'], 'boolean'],
|
|
@@ -8822,7 +8844,7 @@ const functions = {
|
|
|
8822
8844
|
PDFiumExt_SaveAsCopy: [['number', 'number'], 'number'],
|
|
8823
8845
|
};
|
|
8824
8846
|
|
|
8825
|
-
const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@1.3.
|
|
8847
|
+
const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@1.3.2/dist/pdfium.wasm';
|
|
8826
8848
|
async function createWrappedModule(pdfium) {
|
|
8827
8849
|
const module = {
|
|
8828
8850
|
pdfium,
|