@d0paminedriven/pdfdown-ocr 0.11.0 → 0.13.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.
@@ -2,6 +2,9 @@
2
2
  // @ts-nocheck
3
3
  /* auto-generated by NAPI-RS */
4
4
 
5
+ import { createRequire } from 'module'
6
+ const require = createRequire(import.meta.url)
7
+
5
8
  const { readFileSync } = require('fs')
6
9
  let nativeBinding = null
7
10
  // Which artifact actually loaded. The WASI fallback chain overwrites it with
@@ -87,15 +90,15 @@ function requireNative() {
87
90
  } else if (process.platform === 'android') {
88
91
  if (process.arch === 'arm64') {
89
92
  try {
90
- return require('./pdfdown_ocr.android-arm64.node')
93
+ return require('./pdfdown-node-ocr.android-arm64.node')
91
94
  } catch (e) {
92
95
  loadErrors.push(e)
93
96
  }
94
97
  try {
95
98
  const binding = require('@d0paminedriven/pdfdown-ocr-android-arm64')
96
99
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-android-arm64/package.json').version
97
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
98
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
100
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
101
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
99
102
  }
100
103
  return binding
101
104
  } catch (e) {
@@ -103,15 +106,15 @@ function requireNative() {
103
106
  }
104
107
  } else if (process.arch === 'arm') {
105
108
  try {
106
- return require('./pdfdown_ocr.android-arm-eabi.node')
109
+ return require('./pdfdown-node-ocr.android-arm-eabi.node')
107
110
  } catch (e) {
108
111
  loadErrors.push(e)
109
112
  }
110
113
  try {
111
114
  const binding = require('@d0paminedriven/pdfdown-ocr-android-arm-eabi')
112
115
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-android-arm-eabi/package.json').version
113
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
114
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
116
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
117
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
115
118
  }
116
119
  return binding
117
120
  } catch (e) {
@@ -124,15 +127,15 @@ function requireNative() {
124
127
  if (process.arch === 'x64') {
125
128
  if ((process.config && process.config.variables && process.config.variables.shlib_suffix === 'dll.a') || (process.config && process.config.variables && process.config.variables.node_target_type === 'shared_library')) {
126
129
  try {
127
- return require('./pdfdown_ocr.win32-x64-gnu.node')
130
+ return require('./pdfdown-node-ocr.win32-x64-gnu.node')
128
131
  } catch (e) {
129
132
  loadErrors.push(e)
130
133
  }
131
134
  try {
132
135
  const binding = require('@d0paminedriven/pdfdown-ocr-win32-x64-gnu')
133
136
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-win32-x64-gnu/package.json').version
134
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
135
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
137
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
138
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
136
139
  }
137
140
  return binding
138
141
  } catch (e) {
@@ -140,15 +143,15 @@ function requireNative() {
140
143
  }
141
144
  } else {
142
145
  try {
143
- return require('./pdfdown_ocr.win32-x64-msvc.node')
146
+ return require('./pdfdown-node-ocr.win32-x64-msvc.node')
144
147
  } catch (e) {
145
148
  loadErrors.push(e)
146
149
  }
147
150
  try {
148
151
  const binding = require('@d0paminedriven/pdfdown-ocr-win32-x64-msvc')
149
152
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-win32-x64-msvc/package.json').version
150
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
153
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
154
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
152
155
  }
153
156
  return binding
154
157
  } catch (e) {
@@ -157,15 +160,15 @@ function requireNative() {
157
160
  }
158
161
  } else if (process.arch === 'ia32') {
159
162
  try {
160
- return require('./pdfdown_ocr.win32-ia32-msvc.node')
163
+ return require('./pdfdown-node-ocr.win32-ia32-msvc.node')
161
164
  } catch (e) {
162
165
  loadErrors.push(e)
163
166
  }
164
167
  try {
165
168
  const binding = require('@d0paminedriven/pdfdown-ocr-win32-ia32-msvc')
166
169
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-win32-ia32-msvc/package.json').version
167
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
168
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
170
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
171
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
169
172
  }
170
173
  return binding
171
174
  } catch (e) {
@@ -173,15 +176,15 @@ function requireNative() {
173
176
  }
174
177
  } else if (process.arch === 'arm64') {
175
178
  try {
176
- return require('./pdfdown_ocr.win32-arm64-msvc.node')
179
+ return require('./pdfdown-node-ocr.win32-arm64-msvc.node')
177
180
  } catch (e) {
178
181
  loadErrors.push(e)
179
182
  }
180
183
  try {
181
184
  const binding = require('@d0paminedriven/pdfdown-ocr-win32-arm64-msvc')
182
185
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-win32-arm64-msvc/package.json').version
183
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
184
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
186
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
187
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
185
188
  }
186
189
  return binding
187
190
  } catch (e) {
@@ -192,15 +195,15 @@ function requireNative() {
192
195
  }
193
196
  } else if (process.platform === 'darwin') {
194
197
  try {
195
- return require('./pdfdown_ocr.darwin-universal.node')
198
+ return require('./pdfdown-node-ocr.darwin-universal.node')
196
199
  } catch (e) {
197
200
  loadErrors.push(e)
198
201
  }
199
202
  try {
200
203
  const binding = require('@d0paminedriven/pdfdown-ocr-darwin-universal')
201
204
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-darwin-universal/package.json').version
202
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
203
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
205
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
206
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
204
207
  }
205
208
  return binding
206
209
  } catch (e) {
@@ -208,15 +211,15 @@ function requireNative() {
208
211
  }
209
212
  if (process.arch === 'x64') {
210
213
  try {
211
- return require('./pdfdown_ocr.darwin-x64.node')
214
+ return require('./pdfdown-node-ocr.darwin-x64.node')
212
215
  } catch (e) {
213
216
  loadErrors.push(e)
214
217
  }
215
218
  try {
216
219
  const binding = require('@d0paminedriven/pdfdown-ocr-darwin-x64')
217
220
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-darwin-x64/package.json').version
218
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
219
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
221
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
222
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
220
223
  }
221
224
  return binding
222
225
  } catch (e) {
@@ -224,15 +227,15 @@ function requireNative() {
224
227
  }
225
228
  } else if (process.arch === 'arm64') {
226
229
  try {
227
- return require('./pdfdown_ocr.darwin-arm64.node')
230
+ return require('./pdfdown-node-ocr.darwin-arm64.node')
228
231
  } catch (e) {
229
232
  loadErrors.push(e)
230
233
  }
231
234
  try {
232
235
  const binding = require('@d0paminedriven/pdfdown-ocr-darwin-arm64')
233
236
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-darwin-arm64/package.json').version
234
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
235
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
237
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
238
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
236
239
  }
237
240
  return binding
238
241
  } catch (e) {
@@ -244,15 +247,15 @@ function requireNative() {
244
247
  } else if (process.platform === 'freebsd') {
245
248
  if (process.arch === 'x64') {
246
249
  try {
247
- return require('./pdfdown_ocr.freebsd-x64.node')
250
+ return require('./pdfdown-node-ocr.freebsd-x64.node')
248
251
  } catch (e) {
249
252
  loadErrors.push(e)
250
253
  }
251
254
  try {
252
255
  const binding = require('@d0paminedriven/pdfdown-ocr-freebsd-x64')
253
256
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-freebsd-x64/package.json').version
254
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
255
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
257
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
258
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
256
259
  }
257
260
  return binding
258
261
  } catch (e) {
@@ -260,15 +263,15 @@ function requireNative() {
260
263
  }
261
264
  } else if (process.arch === 'arm64') {
262
265
  try {
263
- return require('./pdfdown_ocr.freebsd-arm64.node')
266
+ return require('./pdfdown-node-ocr.freebsd-arm64.node')
264
267
  } catch (e) {
265
268
  loadErrors.push(e)
266
269
  }
267
270
  try {
268
271
  const binding = require('@d0paminedriven/pdfdown-ocr-freebsd-arm64')
269
272
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-freebsd-arm64/package.json').version
270
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
271
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
273
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
274
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
272
275
  }
273
276
  return binding
274
277
  } catch (e) {
@@ -276,15 +279,15 @@ function requireNative() {
276
279
  }
277
280
  } else if (process.arch === 'ppc64') {
278
281
  try {
279
- return require('./pdfdown_ocr.freebsd-ppc64.node')
282
+ return require('./pdfdown-node-ocr.freebsd-ppc64.node')
280
283
  } catch (e) {
281
284
  loadErrors.push(e)
282
285
  }
283
286
  try {
284
287
  const binding = require('@d0paminedriven/pdfdown-ocr-freebsd-ppc64')
285
288
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-freebsd-ppc64/package.json').version
286
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
287
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
289
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
290
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
288
291
  }
289
292
  return binding
290
293
  } catch (e) {
@@ -297,15 +300,15 @@ function requireNative() {
297
300
  if (process.arch === 'x64') {
298
301
  if (isMusl()) {
299
302
  try {
300
- return require('./pdfdown_ocr.linux-x64-musl.node')
303
+ return require('./pdfdown-node-ocr.linux-x64-musl.node')
301
304
  } catch (e) {
302
305
  loadErrors.push(e)
303
306
  }
304
307
  try {
305
308
  const binding = require('@d0paminedriven/pdfdown-ocr-linux-x64-musl')
306
309
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-linux-x64-musl/package.json').version
307
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
308
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
310
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
311
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
309
312
  }
310
313
  return binding
311
314
  } catch (e) {
@@ -313,15 +316,15 @@ function requireNative() {
313
316
  }
314
317
  } else {
315
318
  try {
316
- return require('./pdfdown_ocr.linux-x64-gnu.node')
319
+ return require('./pdfdown-node-ocr.linux-x64-gnu.node')
317
320
  } catch (e) {
318
321
  loadErrors.push(e)
319
322
  }
320
323
  try {
321
324
  const binding = require('@d0paminedriven/pdfdown-ocr-linux-x64-gnu')
322
325
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-linux-x64-gnu/package.json').version
323
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
324
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
326
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
327
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
325
328
  }
326
329
  return binding
327
330
  } catch (e) {
@@ -331,15 +334,15 @@ function requireNative() {
331
334
  } else if (process.arch === 'arm64') {
332
335
  if (isMusl()) {
333
336
  try {
334
- return require('./pdfdown_ocr.linux-arm64-musl.node')
337
+ return require('./pdfdown-node-ocr.linux-arm64-musl.node')
335
338
  } catch (e) {
336
339
  loadErrors.push(e)
337
340
  }
338
341
  try {
339
342
  const binding = require('@d0paminedriven/pdfdown-ocr-linux-arm64-musl')
340
343
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-linux-arm64-musl/package.json').version
341
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
342
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
344
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
345
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
343
346
  }
344
347
  return binding
345
348
  } catch (e) {
@@ -347,15 +350,15 @@ function requireNative() {
347
350
  }
348
351
  } else {
349
352
  try {
350
- return require('./pdfdown_ocr.linux-arm64-gnu.node')
353
+ return require('./pdfdown-node-ocr.linux-arm64-gnu.node')
351
354
  } catch (e) {
352
355
  loadErrors.push(e)
353
356
  }
354
357
  try {
355
358
  const binding = require('@d0paminedriven/pdfdown-ocr-linux-arm64-gnu')
356
359
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-linux-arm64-gnu/package.json').version
357
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
358
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
360
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
361
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
359
362
  }
360
363
  return binding
361
364
  } catch (e) {
@@ -365,15 +368,15 @@ function requireNative() {
365
368
  } else if (process.arch === 'arm') {
366
369
  if (isMusl()) {
367
370
  try {
368
- return require('./pdfdown_ocr.linux-arm-musleabihf.node')
371
+ return require('./pdfdown-node-ocr.linux-arm-musleabihf.node')
369
372
  } catch (e) {
370
373
  loadErrors.push(e)
371
374
  }
372
375
  try {
373
376
  const binding = require('@d0paminedriven/pdfdown-ocr-linux-arm-musleabihf')
374
377
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-linux-arm-musleabihf/package.json').version
375
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
376
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
378
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
379
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
377
380
  }
378
381
  return binding
379
382
  } catch (e) {
@@ -381,15 +384,15 @@ function requireNative() {
381
384
  }
382
385
  } else {
383
386
  try {
384
- return require('./pdfdown_ocr.linux-arm-gnueabihf.node')
387
+ return require('./pdfdown-node-ocr.linux-arm-gnueabihf.node')
385
388
  } catch (e) {
386
389
  loadErrors.push(e)
387
390
  }
388
391
  try {
389
392
  const binding = require('@d0paminedriven/pdfdown-ocr-linux-arm-gnueabihf')
390
393
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-linux-arm-gnueabihf/package.json').version
391
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
392
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
394
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
395
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
393
396
  }
394
397
  return binding
395
398
  } catch (e) {
@@ -399,15 +402,15 @@ function requireNative() {
399
402
  } else if (process.arch === 'loong64') {
400
403
  if (isMusl()) {
401
404
  try {
402
- return require('./pdfdown_ocr.linux-loong64-musl.node')
405
+ return require('./pdfdown-node-ocr.linux-loong64-musl.node')
403
406
  } catch (e) {
404
407
  loadErrors.push(e)
405
408
  }
406
409
  try {
407
410
  const binding = require('@d0paminedriven/pdfdown-ocr-linux-loong64-musl')
408
411
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-linux-loong64-musl/package.json').version
409
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
410
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
412
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
413
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
411
414
  }
412
415
  return binding
413
416
  } catch (e) {
@@ -415,15 +418,15 @@ function requireNative() {
415
418
  }
416
419
  } else {
417
420
  try {
418
- return require('./pdfdown_ocr.linux-loong64-gnu.node')
421
+ return require('./pdfdown-node-ocr.linux-loong64-gnu.node')
419
422
  } catch (e) {
420
423
  loadErrors.push(e)
421
424
  }
422
425
  try {
423
426
  const binding = require('@d0paminedriven/pdfdown-ocr-linux-loong64-gnu')
424
427
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-linux-loong64-gnu/package.json').version
425
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
426
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
428
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
429
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
427
430
  }
428
431
  return binding
429
432
  } catch (e) {
@@ -433,15 +436,15 @@ function requireNative() {
433
436
  } else if (process.arch === 'riscv64') {
434
437
  if (isMusl()) {
435
438
  try {
436
- return require('./pdfdown_ocr.linux-riscv64-musl.node')
439
+ return require('./pdfdown-node-ocr.linux-riscv64-musl.node')
437
440
  } catch (e) {
438
441
  loadErrors.push(e)
439
442
  }
440
443
  try {
441
444
  const binding = require('@d0paminedriven/pdfdown-ocr-linux-riscv64-musl')
442
445
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-linux-riscv64-musl/package.json').version
443
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
446
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
447
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
445
448
  }
446
449
  return binding
447
450
  } catch (e) {
@@ -449,15 +452,15 @@ function requireNative() {
449
452
  }
450
453
  } else {
451
454
  try {
452
- return require('./pdfdown_ocr.linux-riscv64-gnu.node')
455
+ return require('./pdfdown-node-ocr.linux-riscv64-gnu.node')
453
456
  } catch (e) {
454
457
  loadErrors.push(e)
455
458
  }
456
459
  try {
457
460
  const binding = require('@d0paminedriven/pdfdown-ocr-linux-riscv64-gnu')
458
461
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-linux-riscv64-gnu/package.json').version
459
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
462
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
463
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
461
464
  }
462
465
  return binding
463
466
  } catch (e) {
@@ -466,15 +469,15 @@ function requireNative() {
466
469
  }
467
470
  } else if (process.arch === 'ppc64') {
468
471
  try {
469
- return require('./pdfdown_ocr.linux-ppc64-gnu.node')
472
+ return require('./pdfdown-node-ocr.linux-ppc64-gnu.node')
470
473
  } catch (e) {
471
474
  loadErrors.push(e)
472
475
  }
473
476
  try {
474
477
  const binding = require('@d0paminedriven/pdfdown-ocr-linux-ppc64-gnu')
475
478
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-linux-ppc64-gnu/package.json').version
476
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
477
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
479
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
480
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
478
481
  }
479
482
  return binding
480
483
  } catch (e) {
@@ -482,15 +485,15 @@ function requireNative() {
482
485
  }
483
486
  } else if (process.arch === 's390x') {
484
487
  try {
485
- return require('./pdfdown_ocr.linux-s390x-gnu.node')
488
+ return require('./pdfdown-node-ocr.linux-s390x-gnu.node')
486
489
  } catch (e) {
487
490
  loadErrors.push(e)
488
491
  }
489
492
  try {
490
493
  const binding = require('@d0paminedriven/pdfdown-ocr-linux-s390x-gnu')
491
494
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-linux-s390x-gnu/package.json').version
492
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
493
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
495
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
496
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
494
497
  }
495
498
  return binding
496
499
  } catch (e) {
@@ -502,15 +505,15 @@ function requireNative() {
502
505
  } else if (process.platform === 'openharmony') {
503
506
  if (process.arch === 'arm64') {
504
507
  try {
505
- return require('./pdfdown_ocr.openharmony-arm64.node')
508
+ return require('./pdfdown-node-ocr.openharmony-arm64.node')
506
509
  } catch (e) {
507
510
  loadErrors.push(e)
508
511
  }
509
512
  try {
510
513
  const binding = require('@d0paminedriven/pdfdown-ocr-openharmony-arm64')
511
514
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-openharmony-arm64/package.json').version
512
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
513
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
515
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
516
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
514
517
  }
515
518
  return binding
516
519
  } catch (e) {
@@ -518,15 +521,15 @@ function requireNative() {
518
521
  }
519
522
  } else if (process.arch === 'x64') {
520
523
  try {
521
- return require('./pdfdown_ocr.openharmony-x64.node')
524
+ return require('./pdfdown-node-ocr.openharmony-x64.node')
522
525
  } catch (e) {
523
526
  loadErrors.push(e)
524
527
  }
525
528
  try {
526
529
  const binding = require('@d0paminedriven/pdfdown-ocr-openharmony-x64')
527
530
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-openharmony-x64/package.json').version
528
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
529
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
531
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
532
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
530
533
  }
531
534
  return binding
532
535
  } catch (e) {
@@ -534,15 +537,15 @@ function requireNative() {
534
537
  }
535
538
  } else if (process.arch === 'arm') {
536
539
  try {
537
- return require('./pdfdown_ocr.openharmony-arm.node')
540
+ return require('./pdfdown-node-ocr.openharmony-arm.node')
538
541
  } catch (e) {
539
542
  loadErrors.push(e)
540
543
  }
541
544
  try {
542
545
  const binding = require('@d0paminedriven/pdfdown-ocr-openharmony-arm')
543
546
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-openharmony-arm/package.json').version
544
- if (bindingPackageVersion !== '0.10.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
545
- throw new Error(`Native binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
547
+ if (bindingPackageVersion !== '0.13.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
548
+ throw new Error(`Native binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
546
549
  }
547
550
  return binding
548
551
  } catch (e) {
@@ -657,10 +660,10 @@ if (!nativeBinding || forceWasi) {
657
660
  let candidateError = null
658
661
  let candidateFailed = false
659
662
  try {
660
- candidateError = __napiWasiResolveCandidate('./pdfdown_ocr.wasi.cjs', false, ['./pdfdown_ocr.wasm32-wasi.debug.wasm', './pdfdown_ocr.wasm32-wasi.wasm'])
663
+ candidateError = __napiWasiResolveCandidate('./pdfdown-node-ocr.wasi.cjs', false, ['./pdfdown-node-ocr.wasm32-wasi.debug.wasm', './pdfdown-node-ocr.wasm32-wasi.wasm'])
661
664
  candidateFailed = candidateError !== null
662
665
  if (!candidateFailed) {
663
- wasiBinding = require('./pdfdown_ocr.wasi.cjs')
666
+ wasiBinding = require('./pdfdown-node-ocr.wasi.cjs')
664
667
  nativeBinding = wasiBinding
665
668
  __napiLoadedBindingTarget = 'wasm32-wasi'
666
669
  wasiBindingLoaded = true
@@ -683,8 +686,8 @@ if (!nativeBinding || forceWasi) {
683
686
  if (!candidateFailed) {
684
687
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
685
688
  const bindingPackageVersion = require('@d0paminedriven/pdfdown-ocr-wasm32-wasi/package.json').version
686
- if (bindingPackageVersion !== '0.10.0') {
687
- throw new Error(`WASI binding package version mismatch, expected 0.10.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
689
+ if (bindingPackageVersion !== '0.13.0') {
690
+ throw new Error(`WASI binding package version mismatch, expected 0.13.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
688
691
  }
689
692
  }
690
693
  wasiBinding = require('@d0paminedriven/pdfdown-ocr-wasm32-wasi')
@@ -770,115 +773,44 @@ if (
770
773
  }
771
774
  }
772
775
 
773
- function __napiStampBindingTarget(exportsObject, target) {
774
- if (
775
- Object.prototype.hasOwnProperty.call(exportsObject, '__napiBindingTarget')
776
- ) {
777
- if (exportsObject.__napiBindingTarget === target) {
778
- // Already ours: the root entry aliases the object it loaded, so a WASI
779
- // fallback candidate — or a `NAPI_RS_NATIVE_LIBRARY_PATH` override that
780
- // is a generated loader — arrives already stamped with this same value.
781
- return target
782
- }
783
- const error = new Error(
784
- '`__napiBindingTarget` is reserved by the generated binding loader, but the loaded binding already exports it. Rename the export, e.g. #[napi(js_name = "...")].',
785
- )
786
- error.code = 'ERR_NAPI_BINDING_TARGET_CONFLICT'
787
- throw error
788
- }
789
- if (!Object.isExtensible(exportsObject)) {
790
- // A `#[napi(module_exports)]` hook may seal or freeze this object
791
- // (`Object::seal` / `Object::freeze`). Reporting the artifact is metadata,
792
- // never a reason to fail an otherwise successful load, so the stamp is
793
- // skipped. What a consumer still sees then follows the entry point: the
794
- // browser and deferred loaders declare `__napiBindingTarget` at module
795
- // level and go on reporting it, while the CommonJS entries hand back this
796
- // very object as `module.exports`, so there the value is absent.
797
- return target
798
- }
799
- try {
800
- // [[Define]], not [[Set]]: an ordinary assignment walks the prototype
801
- // chain, so an inherited accessor could swallow the value or throw and
802
- // fail an otherwise successful load. The descriptor is what a successful
803
- // assignment would have produced.
804
- Object.defineProperty(exportsObject, '__napiBindingTarget', {
805
- configurable: true,
806
- enumerable: true,
807
- value: target,
808
- writable: true,
809
- })
810
- } catch {
811
- // Same rule as the non-extensible skip above: reporting the artifact is
812
- // metadata, never a reason to fail an otherwise successful load. An exotic
813
- // object (a Proxy whose defineProperty trap refuses) is skipped, not
814
- // thrown over.
815
- }
816
- // The CommonJS loaders assign this return value so `cjs-module-lexer` — and
817
- // therefore Node's CJS -> ESM named export detection — can see
818
- // `__napiBindingTarget` statically.
819
- return target
820
- }
821
- // Stamp before the alias, not after. The guard only reads `nativeBinding`
822
- // (`hasOwnProperty` plus a comparison), which is safe against any addon
823
- // accessor; an assignment is not, because a `#[napi(module_exports)]` hook can
824
- // expose a getter reporting this very value and a setter that throws. So the
825
- // assignment lands on the loader's own `module.exports`, still the original
826
- // object here, and the alias below replaces it.
827
- //
828
- // The assignment is what keeps the marker a statically visible CommonJS export:
829
- // `cjs-module-lexer` is Node's CJS -> ESM named export detection, it cannot see
830
- // a bare call, and the later `module.exports = nativeBinding` does not undo the
831
- // detection. The assignment itself always succeeds — its target is this
832
- // loader's own, still extensible `module.exports` — and the alias below then
833
- // discards the value it wrote. What a consumer reads is whatever the guard put
834
- // on `nativeBinding`, so on a frozen binding, where the guard skips, the
835
- // linked import resolves to `undefined`.
836
- module.exports.__napiBindingTarget = __napiStampBindingTarget(nativeBinding, __napiLoadedBindingTarget)
837
- module.exports = nativeBinding
838
- module.exports.PdfDown = nativeBinding.PdfDown
839
- module.exports.attachments = nativeBinding.attachments
840
- module.exports.attachmentsAsync = nativeBinding.attachmentsAsync
841
- module.exports.BoxType = nativeBinding.BoxType
842
- module.exports.capabilities = nativeBinding.capabilities
843
- module.exports.CurrencySource = nativeBinding.CurrencySource
844
- module.exports.DateOrder = nativeBinding.DateOrder
845
- module.exports.detectFormat = nativeBinding.detectFormat
846
- module.exports.detectFormatAsync = nativeBinding.detectFormatAsync
847
- module.exports.DocumentFormat = nativeBinding.DocumentFormat
848
- module.exports.EInvoiceStandard = nativeBinding.EInvoiceStandard
849
- module.exports.extractAnnotationsPerPage = nativeBinding.extractAnnotationsPerPage
850
- module.exports.extractAnnotationsPerPageAsync = nativeBinding.extractAnnotationsPerPageAsync
851
- module.exports.extractFormFieldsPerPage = nativeBinding.extractFormFieldsPerPage
852
- module.exports.extractFormFieldsPerPageAsync = nativeBinding.extractFormFieldsPerPageAsync
853
- module.exports.extractImagesPerPage = nativeBinding.extractImagesPerPage
854
- module.exports.extractImagesPerPageAsync = nativeBinding.extractImagesPerPageAsync
855
- module.exports.extractInvoice = nativeBinding.extractInvoice
856
- module.exports.extractInvoiceAsync = nativeBinding.extractInvoiceAsync
857
- module.exports.extractLayoutWithOcrPerPage = nativeBinding.extractLayoutWithOcrPerPage
858
- module.exports.extractLayoutWithOcrPerPageAsync = nativeBinding.extractLayoutWithOcrPerPageAsync
859
- module.exports.extractStructuredTextPerPage = nativeBinding.extractStructuredTextPerPage
860
- module.exports.extractStructuredTextPerPageAsync = nativeBinding.extractStructuredTextPerPageAsync
861
- module.exports.extractTextPerPage = nativeBinding.extractTextPerPage
862
- module.exports.extractTextPerPageAsync = nativeBinding.extractTextPerPageAsync
863
- module.exports.extractTextWithOcrPerPage = nativeBinding.extractTextWithOcrPerPage
864
- module.exports.extractTextWithOcrPerPageAsync = nativeBinding.extractTextWithOcrPerPageAsync
865
- module.exports.InvoiceDocumentType = nativeBinding.InvoiceDocumentType
866
- module.exports.invoiceFromLayout = nativeBinding.invoiceFromLayout
867
- module.exports.invoiceFromLayoutAsync = nativeBinding.invoiceFromLayoutAsync
868
- module.exports.InvoiceSource = nativeBinding.InvoiceSource
869
- module.exports.layoutFromXlsx = nativeBinding.layoutFromXlsx
870
- module.exports.layoutFromXlsxAsync = nativeBinding.layoutFromXlsxAsync
871
- module.exports.layoutPerPage = nativeBinding.layoutPerPage
872
- module.exports.layoutPerPageAsync = nativeBinding.layoutPerPageAsync
873
- module.exports.NumberSubtype = nativeBinding.NumberSubtype
874
- module.exports.pdfDocument = nativeBinding.pdfDocument
875
- module.exports.pdfDocumentAsync = nativeBinding.pdfDocumentAsync
876
- module.exports.pdfDocumentOcr = nativeBinding.pdfDocumentOcr
877
- module.exports.pdfDocumentOcrAsync = nativeBinding.pdfDocumentOcrAsync
878
- module.exports.pdfMetadata = nativeBinding.pdfMetadata
879
- module.exports.pdfMetadataAsync = nativeBinding.pdfMetadataAsync
880
- module.exports.RenderMode = nativeBinding.RenderMode
881
- module.exports.renderPagesAsync = nativeBinding.renderPagesAsync
882
- module.exports.spreadsheetCells = nativeBinding.spreadsheetCells
883
- module.exports.spreadsheetCellsAsync = nativeBinding.spreadsheetCellsAsync
884
- module.exports.TextSource = nativeBinding.TextSource
776
+ const { PdfDown, attachments, attachmentsAsync, BoxType, capabilities, CurrencySource, DateOrder, EInvoiceStandard, extractAnnotationsPerPage, extractAnnotationsPerPageAsync, extractFormFieldsPerPage, extractFormFieldsPerPageAsync, extractImagesPerPage, extractImagesPerPageAsync, extractInvoice, extractInvoiceAsync, extractLayoutWithOcrPerPage, extractLayoutWithOcrPerPageAsync, extractStructuredTextPerPage, extractStructuredTextPerPageAsync, extractTextPerPage, extractTextPerPageAsync, extractTextWithOcrPerPage, extractTextWithOcrPerPageAsync, InvoiceDocumentType, invoiceFromLayout, invoiceFromLayoutAsync, InvoiceSource, layoutPerPage, layoutPerPageAsync, pdfDocument, pdfDocumentAsync, pdfDocumentOcr, pdfDocumentOcrAsync, pdfMetadata, pdfMetadataAsync, RenderMode, renderPagesAsync, TextSource } = nativeBinding
777
+ export { PdfDown }
778
+ export { attachments }
779
+ export { attachmentsAsync }
780
+ export { BoxType }
781
+ export { capabilities }
782
+ export { CurrencySource }
783
+ export { DateOrder }
784
+ export { EInvoiceStandard }
785
+ export { extractAnnotationsPerPage }
786
+ export { extractAnnotationsPerPageAsync }
787
+ export { extractFormFieldsPerPage }
788
+ export { extractFormFieldsPerPageAsync }
789
+ export { extractImagesPerPage }
790
+ export { extractImagesPerPageAsync }
791
+ export { extractInvoice }
792
+ export { extractInvoiceAsync }
793
+ export { extractLayoutWithOcrPerPage }
794
+ export { extractLayoutWithOcrPerPageAsync }
795
+ export { extractStructuredTextPerPage }
796
+ export { extractStructuredTextPerPageAsync }
797
+ export { extractTextPerPage }
798
+ export { extractTextPerPageAsync }
799
+ export { extractTextWithOcrPerPage }
800
+ export { extractTextWithOcrPerPageAsync }
801
+ export { InvoiceDocumentType }
802
+ export { invoiceFromLayout }
803
+ export { invoiceFromLayoutAsync }
804
+ export { InvoiceSource }
805
+ export { layoutPerPage }
806
+ export { layoutPerPageAsync }
807
+ export { pdfDocument }
808
+ export { pdfDocumentAsync }
809
+ export { pdfDocumentOcr }
810
+ export { pdfDocumentOcrAsync }
811
+ export { pdfMetadata }
812
+ export { pdfMetadataAsync }
813
+ export { RenderMode }
814
+ export { renderPagesAsync }
815
+ export { TextSource }
816
+ export const __napiBindingTarget = __napiLoadedBindingTarget