@embedpdf/pdfium 2.7.0 → 2.9.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.
@@ -51,7 +51,9 @@ var createPdfium = (() => {
51
51
  '_EPDFAction_CreateRemoteGoToDest',
52
52
  '_EPDFAction_CreateURI',
53
53
  '_EPDFAnnot_ApplyRedaction',
54
+ '_EPDFAnnot_ClearBorderEffect',
54
55
  '_EPDFAnnot_ClearColor',
56
+ '_EPDFAnnot_ClearRectangleDifferences',
55
57
  '_EPDFAnnot_Flatten',
56
58
  '_EPDFAnnot_GenerateAppearance',
57
59
  '_EPDFAnnot_GenerateAppearanceWithBlend',
@@ -79,9 +81,11 @@ var createPdfium = (() => {
79
81
  '_EPDFAnnot_GetTextAlignment',
80
82
  '_EPDFAnnot_GetUnrotatedRect',
81
83
  '_EPDFAnnot_GetVerticalAlignment',
84
+ '_EPDFAnnot_HasAppearanceStream',
82
85
  '_EPDFAnnot_SetAction',
83
86
  '_EPDFAnnot_SetAPMatrix',
84
87
  '_EPDFAnnot_SetBorderDashPattern',
88
+ '_EPDFAnnot_SetBorderEffect',
85
89
  '_EPDFAnnot_SetBorderStyle',
86
90
  '_EPDFAnnot_SetColor',
87
91
  '_EPDFAnnot_SetDefaultAppearance',
@@ -94,6 +98,7 @@ var createPdfium = (() => {
94
98
  '_EPDFAnnot_SetOpacity',
95
99
  '_EPDFAnnot_SetOverlayText',
96
100
  '_EPDFAnnot_SetOverlayTextRepeat',
101
+ '_EPDFAnnot_SetRectangleDifferences',
97
102
  '_EPDFAnnot_SetReplyType',
98
103
  '_EPDFAnnot_SetRotate',
99
104
  '_EPDFAnnot_SetTextAlignment',
@@ -5944,8 +5949,18 @@ var createPdfium = (() => {
5944
5949
  'EPDFAnnot_GetBorderEffect',
5945
5950
  2,
5946
5951
  ));
5952
+ (Module['_EPDFAnnot_SetBorderEffect'] = createExportWrapper(
5953
+ 'EPDFAnnot_SetBorderEffect',
5954
+ 2,
5955
+ ));
5956
+ (Module['_EPDFAnnot_ClearBorderEffect'] =
5957
+ createExportWrapper('EPDFAnnot_ClearBorderEffect', 1));
5947
5958
  (Module['_EPDFAnnot_GetRectangleDifferences'] =
5948
5959
  createExportWrapper('EPDFAnnot_GetRectangleDifferences', 5));
5960
+ (Module['_EPDFAnnot_SetRectangleDifferences'] =
5961
+ createExportWrapper('EPDFAnnot_SetRectangleDifferences', 5));
5962
+ (Module['_EPDFAnnot_ClearRectangleDifferences'] =
5963
+ createExportWrapper('EPDFAnnot_ClearRectangleDifferences', 1));
5949
5964
  (Module['_EPDFAnnot_GetBorderDashPatternCount'] =
5950
5965
  createExportWrapper('EPDFAnnot_GetBorderDashPatternCount', 1));
5951
5966
  (Module['_EPDFAnnot_GetBorderDashPattern'] =
@@ -6116,6 +6131,8 @@ var createPdfium = (() => {
6116
6131
  ));
6117
6132
  (Module['_EPDFAnnot_GetAvailableAppearanceModes'] =
6118
6133
  createExportWrapper('EPDFAnnot_GetAvailableAppearanceModes', 1));
6134
+ (Module['_EPDFAnnot_HasAppearanceStream'] =
6135
+ createExportWrapper('EPDFAnnot_HasAppearanceStream', 2));
6119
6136
  (Module['_FPDFDoc_GetAttachmentCount'] = createExportWrapper(
6120
6137
  'FPDFDoc_GetAttachmentCount',
6121
6138
  1,
@@ -8045,7 +8062,9 @@ const functions = {
8045
8062
  EPDFAction_CreateRemoteGoToDest: [['number', 'number', 'number'], 'number'],
8046
8063
  EPDFAction_CreateURI: [['number', 'string'], 'number'],
8047
8064
  EPDFAnnot_ApplyRedaction: [['number', 'number'], 'boolean'],
8065
+ EPDFAnnot_ClearBorderEffect: [['number'], 'boolean'],
8048
8066
  EPDFAnnot_ClearColor: [['number', 'number'], 'boolean'],
8067
+ EPDFAnnot_ClearRectangleDifferences: [['number'], 'boolean'],
8049
8068
  EPDFAnnot_Flatten: [['number', 'number'], 'boolean'],
8050
8069
  EPDFAnnot_GenerateAppearance: [['number'], 'boolean'],
8051
8070
  EPDFAnnot_GenerateAppearanceWithBlend: [['number', 'number'], 'boolean'],
@@ -8082,9 +8101,11 @@ const functions = {
8082
8101
  EPDFAnnot_GetTextAlignment: [['number'], 'number'],
8083
8102
  EPDFAnnot_GetUnrotatedRect: [['number', 'number'], 'boolean'],
8084
8103
  EPDFAnnot_GetVerticalAlignment: [['number'], 'number'],
8104
+ EPDFAnnot_HasAppearanceStream: [['number', 'number'], 'boolean'],
8085
8105
  EPDFAnnot_SetAction: [['number', 'number'], 'boolean'],
8086
8106
  EPDFAnnot_SetAPMatrix: [['number', 'number', 'number'], 'boolean'],
8087
8107
  EPDFAnnot_SetBorderDashPattern: [['number', 'number', 'number'], 'boolean'],
8108
+ EPDFAnnot_SetBorderEffect: [['number', 'number'], 'boolean'],
8088
8109
  EPDFAnnot_SetBorderStyle: [['number', 'number', 'number'], 'boolean'],
8089
8110
  EPDFAnnot_SetColor: [
8090
8111
  ['number', 'number', 'number', 'number', 'number'],
@@ -8103,6 +8124,10 @@ const functions = {
8103
8124
  EPDFAnnot_SetOpacity: [['number', 'number'], 'boolean'],
8104
8125
  EPDFAnnot_SetOverlayText: [['number', 'number'], 'boolean'],
8105
8126
  EPDFAnnot_SetOverlayTextRepeat: [['number', 'boolean'], 'boolean'],
8127
+ EPDFAnnot_SetRectangleDifferences: [
8128
+ ['number', 'number', 'number', 'number', 'number'],
8129
+ 'boolean',
8130
+ ],
8106
8131
  EPDFAnnot_SetReplyType: [['number', 'number'], 'boolean'],
8107
8132
  EPDFAnnot_SetRotate: [['number', 'number'], 'boolean'],
8108
8133
  EPDFAnnot_SetTextAlignment: [['number', 'number'], 'boolean'],
@@ -8895,7 +8920,7 @@ const functions = {
8895
8920
  PDFiumExt_SaveAsCopy: [['number', 'number'], 'number'],
8896
8921
  };
8897
8922
 
8898
- const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@2.7.0/dist/pdfium.wasm';
8923
+ const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@2.9.0/dist/pdfium.wasm';
8899
8924
  async function createWrappedModule(pdfium) {
8900
8925
  const module = {
8901
8926
  pdfium,