@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.browser.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',
|
|
@@ -6058,6 +6063,16 @@ var createPdfium = (() => {
|
|
|
6058
6063
|
'FPDFAttachment_GetSubtype',
|
|
6059
6064
|
3,
|
|
6060
6065
|
));
|
|
6066
|
+
(Module['_EPDFAttachment_SetSubtype'] = createExportWrapper(
|
|
6067
|
+
'EPDFAttachment_SetSubtype',
|
|
6068
|
+
2,
|
|
6069
|
+
));
|
|
6070
|
+
(Module['_EPDFAttachment_SetDescription'] =
|
|
6071
|
+
createExportWrapper('EPDFAttachment_SetDescription', 2));
|
|
6072
|
+
(Module['_EPDFAttachment_GetDescription'] =
|
|
6073
|
+
createExportWrapper('EPDFAttachment_GetDescription', 3));
|
|
6074
|
+
(Module['_EPDFAttachment_GetIntegerValue'] =
|
|
6075
|
+
createExportWrapper('EPDFAttachment_GetIntegerValue', 3));
|
|
6061
6076
|
(Module['_FPDFCatalog_IsTagged'] = createExportWrapper(
|
|
6062
6077
|
'FPDFCatalog_IsTagged',
|
|
6063
6078
|
1,
|
|
@@ -7278,6 +7293,8 @@ var createPdfium = (() => {
|
|
|
7278
7293
|
'FPDF_GetPageSizeByIndexF',
|
|
7279
7294
|
3,
|
|
7280
7295
|
));
|
|
7296
|
+
(Module['_EPDF_GetPageRotationByIndex'] =
|
|
7297
|
+
createExportWrapper('EPDF_GetPageRotationByIndex', 2));
|
|
7281
7298
|
(Module['_FPDF_GetPageSizeByIndex'] = createExportWrapper(
|
|
7282
7299
|
'FPDF_GetPageSizeByIndex',
|
|
7283
7300
|
4,
|
|
@@ -7869,6 +7886,7 @@ const functions = {
|
|
|
7869
7886
|
'number',
|
|
7870
7887
|
],
|
|
7871
7888
|
EPDF_GetMetaTrapped: [['number'], 'number'],
|
|
7889
|
+
EPDF_GetPageRotationByIndex: [['number', 'number'], 'number'],
|
|
7872
7890
|
EPDF_HasMetaText: [['number', 'string'], 'boolean'],
|
|
7873
7891
|
EPDF_PNG_EncodeRGBA: [
|
|
7874
7892
|
['number', 'number', 'number', 'number', 'number', 'number'],
|
|
@@ -7933,6 +7951,10 @@ const functions = {
|
|
|
7933
7951
|
EPDFAnnot_SetVerticalAlignment: [['number', 'number'], 'boolean'],
|
|
7934
7952
|
EPDFAnnot_SetVertices: [['number', 'number', 'number'], 'boolean'],
|
|
7935
7953
|
EPDFAnnot_UpdateAppearanceToRect: [['number', 'number'], 'boolean'],
|
|
7954
|
+
EPDFAttachment_GetDescription: [['number', 'number', 'number'], 'number'],
|
|
7955
|
+
EPDFAttachment_GetIntegerValue: [['number', 'string', 'number'], 'boolean'],
|
|
7956
|
+
EPDFAttachment_SetDescription: [['number', 'number'], 'boolean'],
|
|
7957
|
+
EPDFAttachment_SetSubtype: [['number', 'string'], 'boolean'],
|
|
7936
7958
|
EPDFBookmark_AppendChild: [['number', 'number', 'number'], 'number'],
|
|
7937
7959
|
EPDFBookmark_Clear: [['number'], 'boolean'],
|
|
7938
7960
|
EPDFBookmark_ClearTarget: [['number'], 'boolean'],
|
|
@@ -8707,7 +8729,7 @@ const functions = {
|
|
|
8707
8729
|
PDFiumExt_SaveAsCopy: [['number', 'number'], 'number'],
|
|
8708
8730
|
};
|
|
8709
8731
|
|
|
8710
|
-
const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@1.3.
|
|
8732
|
+
const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@1.3.2/dist/pdfium.wasm';
|
|
8711
8733
|
async function createWrappedModule(pdfium) {
|
|
8712
8734
|
const module = {
|
|
8713
8735
|
pdfium,
|