docling.rs-wasm 1.19.0 → 1.41.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.
@@ -24,7 +24,7 @@ export class DigitalConverter {
24
24
  add_page(index: number, rgba: Uint8Array, px_w: number, px_h: number, scale: number, layout: any, rec?: any | null): Promise<void>;
25
25
  /**
26
26
  * Assemble the converted pages into a document and render it as `"md"`
27
- * (default), `"json"` or `"doclang"`, with `images` picking how pictures
27
+ * (default), `"json"`, `"doclang"` or `"latex"`, with `images` picking how pictures
28
28
  * render in Markdown. Resets the converter.
29
29
  */
30
30
  finish(name: string, to?: string | null, images?: string | null): string;
@@ -70,7 +70,7 @@ export class ScannedConverter {
70
70
  add_page(rgba: Uint8Array, px_w: number, px_h: number, scale: number, layout: any, rec: any): Promise<void>;
71
71
  /**
72
72
  * Assemble the accumulated pages into the final document and render it
73
- * as `"md"` (default), `"json"` or `"doclang"` — the same three the
73
+ * as `"md"` (default), `"json"`, `"doclang"` or `"latex"` — the same four the
74
74
  * declarative [`crate::convert`] entry point offers. `images` picks how
75
75
  * cropped figures render in Markdown (`"placeholder"` | `"embedded"`),
76
76
  * like [`crate::convert`]. Resets the converter.
@@ -90,8 +90,9 @@ export class ScannedConverter {
90
90
  /**
91
91
  * Convert a document (as bytes + filename, the extension drives format
92
92
  * detection) to `to`: `"md"` (Markdown, default), `"json"` (docling-core's
93
- * `DoclingDocument` wire format, schema 1.10.0) or `"doclang"` (docling's
94
- * DocLang XML serialization).
93
+ * `DoclingDocument` wire format, schema 1.10.0), `"doclang"` (docling's
94
+ * DocLang XML serialization) or `"latex"` (docling 2.124's LaTeX document,
95
+ * #317).
95
96
  *
96
97
  * `images` controls how pictures render in Markdown — `"placeholder"`
97
98
  * (default) or `"embedded"` (base64 data URIs), the same option
@@ -56,7 +56,7 @@ export class DigitalConverter {
56
56
  }
57
57
  /**
58
58
  * Assemble the converted pages into a document and render it as `"md"`
59
- * (default), `"json"` or `"doclang"`, with `images` picking how pictures
59
+ * (default), `"json"`, `"doclang"` or `"latex"`, with `images` picking how pictures
60
60
  * render in Markdown. Resets the converter.
61
61
  * @param {string} name
62
62
  * @param {string | null} [to]
@@ -186,7 +186,7 @@ export class ScannedConverter {
186
186
  }
187
187
  /**
188
188
  * Assemble the accumulated pages into the final document and render it
189
- * as `"md"` (default), `"json"` or `"doclang"` — the same three the
189
+ * as `"md"` (default), `"json"`, `"doclang"` or `"latex"` — the same four the
190
190
  * declarative [`crate::convert`] entry point offers. `images` picks how
191
191
  * cropped figures render in Markdown (`"placeholder"` | `"embedded"`),
192
192
  * like [`crate::convert`]. Resets the converter.
@@ -246,8 +246,9 @@ if (Symbol.dispose) ScannedConverter.prototype[Symbol.dispose] = ScannedConverte
246
246
  /**
247
247
  * Convert a document (as bytes + filename, the extension drives format
248
248
  * detection) to `to`: `"md"` (Markdown, default), `"json"` (docling-core's
249
- * `DoclingDocument` wire format, schema 1.10.0) or `"doclang"` (docling's
250
- * DocLang XML serialization).
249
+ * `DoclingDocument` wire format, schema 1.10.0), `"doclang"` (docling's
250
+ * DocLang XML serialization) or `"latex"` (docling 2.124's LaTeX document,
251
+ * #317).
251
252
  *
252
253
  * `images` controls how pictures render in Markdown — `"placeholder"`
253
254
  * (default) or `"embedded"` (base64 data URIs), the same option
@@ -378,46 +379,46 @@ export function version() {
378
379
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
379
380
  }
380
381
  }
381
- export function __wbg_Error_408e67f47ca7b58b(arg0, arg1) {
382
+ export function __wbg_Error_67e7344beaa85059(arg0, arg1) {
382
383
  const ret = Error(getStringFromWasm0(arg0, arg1));
383
384
  return ret;
384
385
  }
385
- export function __wbg___wbindgen_debug_string_a57024b9c6e4a48b(arg0, arg1) {
386
+ export function __wbg___wbindgen_debug_string_0e68cf47c9cbd9b0(arg0, arg1) {
386
387
  const ret = debugString(arg1);
387
388
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
388
389
  const len1 = WASM_VECTOR_LEN;
389
390
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
390
391
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
391
392
  }
392
- export function __wbg___wbindgen_is_function_5e4570eb24ffa122(arg0) {
393
+ export function __wbg___wbindgen_is_function_fcda5e3902d732fe(arg0) {
393
394
  const ret = typeof(arg0) === 'function';
394
395
  return ret;
395
396
  }
396
- export function __wbg___wbindgen_is_undefined_6cff064c44e0d823(arg0) {
397
+ export function __wbg___wbindgen_is_undefined_8c687d0b90d5b524(arg0) {
397
398
  const ret = arg0 === undefined;
398
399
  return ret;
399
400
  }
400
- export function __wbg___wbindgen_number_get_136b9679cab35cfb(arg0, arg1) {
401
+ export function __wbg___wbindgen_number_get_1dc732b810cb937c(arg0, arg1) {
401
402
  const obj = arg1;
402
403
  const ret = typeof(obj) === 'number' ? obj : undefined;
403
404
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
404
405
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
405
406
  }
406
- export function __wbg___wbindgen_throw_bb96b2010945f0bc(arg0, arg1) {
407
+ export function __wbg___wbindgen_throw_5d9e815e6fdf150f(arg0, arg1) {
407
408
  throw new Error(getStringFromWasm0(arg0, arg1));
408
409
  }
409
- export function __wbg__wbg_cb_unref_be22cc64ae6946a0(arg0) {
410
+ export function __wbg__wbg_cb_unref_997e73d32238e655(arg0) {
410
411
  arg0._wbg_cb_unref();
411
412
  }
412
- export function __wbg_bbox_151ce6d3ed1593d8() { return handleError(function (arg0, arg1, arg2) {
413
+ export function __wbg_bbox_b7b3554ea8594fd8() { return handleError(function (arg0, arg1, arg2) {
413
414
  const ret = arg0.bbox(arg1, arg2 >>> 0);
414
415
  return ret;
415
416
  }, arguments); }
416
- export function __wbg_call_35dba3c747ad7521() { return handleError(function (arg0, arg1, arg2) {
417
+ export function __wbg_call_6bcf8d3e20937e46() { return handleError(function (arg0, arg1, arg2) {
417
418
  const ret = arg0.call(arg1, arg2);
418
419
  return ret;
419
420
  }, arguments); }
420
- export function __wbg_encode_173f290675616de7() { return handleError(function (arg0, arg1) {
421
+ export function __wbg_encode_248ab6b149220a69() { return handleError(function (arg0, arg1) {
421
422
  const ret = arg0.encode(arg1);
422
423
  return ret;
423
424
  }, arguments); }
@@ -435,15 +436,15 @@ export function __wbg_error_757e9472f8410341(arg0, arg1) {
435
436
  export function __wbg_getRandomValues_436a51d0629d84e1() { return handleError(function (arg0, arg1) {
436
437
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
437
438
  }, arguments); }
438
- export function __wbg_get_971a0c45d172643f() { return handleError(function (arg0, arg1) {
439
+ export function __wbg_get_989d0a1309644f2b() { return handleError(function (arg0, arg1) {
439
440
  const ret = Reflect.get(arg0, arg1);
440
441
  return ret;
441
442
  }, arguments); }
442
- export function __wbg_get_c0c8f8d7da0c03dd(arg0, arg1) {
443
+ export function __wbg_get_b1f0ab13c737f856(arg0, arg1) {
443
444
  const ret = arg0[arg1 >>> 0];
444
445
  return ret;
445
446
  }
446
- export function __wbg_instanceof_Float32Array_d1723b46884013f0(arg0) {
447
+ export function __wbg_instanceof_Float32Array_31e80d3e88752523(arg0) {
447
448
  let result;
448
449
  try {
449
450
  result = arg0 instanceof Float32Array;
@@ -453,15 +454,15 @@ export function __wbg_instanceof_Float32Array_d1723b46884013f0(arg0) {
453
454
  const ret = result;
454
455
  return ret;
455
456
  }
456
- export function __wbg_isArray_6339f732981044bf(arg0) {
457
+ export function __wbg_isArray_5674713bb7b79043(arg0) {
457
458
  const ret = Array.isArray(arg0);
458
459
  return ret;
459
460
  }
460
- export function __wbg_length_1009454859bb3e03(arg0) {
461
+ export function __wbg_length_4e1adc0d42e23620(arg0) {
461
462
  const ret = arg0.length;
462
463
  return ret;
463
464
  }
464
- export function __wbg_length_ecfa2c63d3d0d82c(arg0) {
465
+ export function __wbg_length_8768c6f6941913e3(arg0) {
465
466
  const ret = arg0.length;
466
467
  return ret;
467
468
  }
@@ -469,18 +470,18 @@ export function __wbg_new_227d7c05414eb861() {
469
470
  const ret = new Error();
470
471
  return ret;
471
472
  }
472
- export function __wbg_new_from_slice_709ab7061ebcc5da(arg0, arg1) {
473
+ export function __wbg_new_from_slice_2221cabb71753908(arg0, arg1) {
473
474
  const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
474
475
  return ret;
475
476
  }
476
- export function __wbg_new_typed_cceaf62d8d95e9f2(arg0, arg1) {
477
+ export function __wbg_new_typed_6f8b0d724fe26c07(arg0, arg1) {
477
478
  try {
478
479
  var state0 = {a: arg0, b: arg1};
479
480
  var cb0 = (arg0, arg1) => {
480
481
  const a = state0.a;
481
482
  state0.a = 0;
482
483
  try {
483
- return wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined_______true_(a, state0.b, arg0, arg1);
484
+ return wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined_______true_(a, state0.b, arg0, arg1);
484
485
  } finally {
485
486
  state0.a = a;
486
487
  }
@@ -491,26 +492,26 @@ export function __wbg_new_typed_cceaf62d8d95e9f2(arg0, arg1) {
491
492
  state0.a = 0;
492
493
  }
493
494
  }
494
- export function __wbg_prototypesetcall_10722f4fde830f07(arg0, arg1, arg2) {
495
+ export function __wbg_prototypesetcall_804a1eb1b047ccb9(arg0, arg1, arg2) {
495
496
  Float32Array.prototype.set.call(getArrayF32FromWasm0(arg0, arg1), arg2);
496
497
  }
497
- export function __wbg_queueMicrotask_ac694eae12e92dfb(arg0) {
498
- queueMicrotask(arg0);
499
- }
500
- export function __wbg_queueMicrotask_be5fe34a8f4cad4d(arg0) {
498
+ export function __wbg_queueMicrotask_85c90f6987555d65(arg0) {
501
499
  const ret = arg0.queueMicrotask;
502
500
  return ret;
503
501
  }
504
- export function __wbg_resolve_020f95d838c6ef25(arg0) {
502
+ export function __wbg_queueMicrotask_f6a1fa10b81d1fc0(arg0) {
503
+ queueMicrotask(arg0);
504
+ }
505
+ export function __wbg_resolve_35ec7e0c6af4c82c(arg0) {
505
506
  const ret = Promise.resolve(arg0);
506
507
  return ret;
507
508
  }
508
- export function __wbg_run_42a242aa5b910a8f() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
509
- const ret = arg0.run(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
509
+ export function __wbg_run_11e43946a466e338() { return handleError(function (arg0, arg1) {
510
+ const ret = arg0.run(arg1);
510
511
  return ret;
511
512
  }, arguments); }
512
- export function __wbg_run_66e00f458e411d88() { return handleError(function (arg0, arg1) {
513
- const ret = arg0.run(arg1);
513
+ export function __wbg_run_9e7c26927271dced() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
514
+ const ret = arg0.run(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
514
515
  return ret;
515
516
  }, arguments); }
516
517
  export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
@@ -520,40 +521,40 @@ export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
520
521
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
521
522
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
522
523
  }
523
- export function __wbg_static_accessor_GLOBAL_THIS_466428f93b4eaa76() {
524
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
524
+ export function __wbg_static_accessor_GLOBAL_8eb4cd83130a11a0() {
525
+ const ret = typeof global === 'undefined' ? null : global;
525
526
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
526
527
  }
527
- export function __wbg_static_accessor_GLOBAL_c7aea38d4de089bc() {
528
- const ret = typeof global === 'undefined' ? null : global;
528
+ export function __wbg_static_accessor_GLOBAL_THIS_1e7044f654e934db() {
529
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
529
530
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
530
531
  }
531
- export function __wbg_static_accessor_SELF_42d4fae05e59267a() {
532
+ export function __wbg_static_accessor_SELF_d8b50611246a6d92() {
532
533
  const ret = typeof self === 'undefined' ? null : self;
533
534
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
534
535
  }
535
- export function __wbg_static_accessor_WINDOW_e0db14a0eba6a812() {
536
+ export function __wbg_static_accessor_WINDOW_fd0bc376bf0f8b42() {
536
537
  const ret = typeof window === 'undefined' ? null : window;
537
538
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
538
539
  }
539
- export function __wbg_step_d06d33005322fe94() { return handleError(function (arg0, arg1) {
540
+ export function __wbg_step_b599718fbce3f70e() { return handleError(function (arg0, arg1) {
540
541
  const ret = arg0.step(arg1);
541
542
  return ret;
542
543
  }, arguments); }
543
- export function __wbg_then_7026b513a94278a8(arg0, arg1) {
544
- const ret = arg0.then(arg1);
544
+ export function __wbg_then_7a850dae4493f353(arg0, arg1, arg2) {
545
+ const ret = arg0.then(arg1, arg2);
545
546
  return ret;
546
547
  }
547
- export function __wbg_then_72819b8d4e081fb5(arg0, arg1, arg2) {
548
- const ret = arg0.then(arg1, arg2);
548
+ export function __wbg_then_b830475380919203(arg0, arg1) {
549
+ const ret = arg0.then(arg1);
549
550
  return ret;
550
551
  }
551
- export function __wbindgen_cast_0000000000000001(arg0, arg1) {
552
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 78, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
553
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___wasm_bindgen_3b8f540a994386d0___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_3b8f540a994386d0___JsError___true_);
552
+ export function __wbindgen_generic_0000000000000001(arg0, arg1) {
553
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 85, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
554
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___wasm_bindgen_15402cda974f4c9c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_15402cda974f4c9c___JsError___true_);
554
555
  return ret;
555
556
  }
556
- export function __wbindgen_cast_0000000000000002(arg0, arg1) {
557
+ export function __wbindgen_generic_0000000000000002(arg0, arg1) {
557
558
  // Cast intrinsic for `Ref(String) -> Externref`.
558
559
  const ret = getStringFromWasm0(arg0, arg1);
559
560
  return ret;
@@ -567,15 +568,15 @@ export function __wbindgen_init_externref_table() {
567
568
  table.set(offset + 2, true);
568
569
  table.set(offset + 3, false);
569
570
  }
570
- function wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___wasm_bindgen_3b8f540a994386d0___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_3b8f540a994386d0___JsError___true_(arg0, arg1, arg2) {
571
- const ret = wasm.wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___wasm_bindgen_3b8f540a994386d0___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_3b8f540a994386d0___JsError___true_(arg0, arg1, arg2);
571
+ function wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___wasm_bindgen_15402cda974f4c9c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_15402cda974f4c9c___JsError___true_(arg0, arg1, arg2) {
572
+ const ret = wasm.wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___wasm_bindgen_15402cda974f4c9c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_15402cda974f4c9c___JsError___true_(arg0, arg1, arg2);
572
573
  if (ret[1]) {
573
574
  throw takeFromExternrefTable0(ret[0]);
574
575
  }
575
576
  }
576
577
 
577
- function wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
578
- wasm.wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
578
+ function wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
579
+ wasm.wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
579
580
  }
580
581
 
581
582
  const DigitalConverterFinalization = (typeof FinalizationRegistry === 'undefined')
Binary file
@@ -3,6 +3,7 @@
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_digitalconverter_free: (a: number, b: number) => void;
5
5
  export const __wbg_scannedconverter_free: (a: number, b: number) => void;
6
+ export const convert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
6
7
  export const convert_scanned_image: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: number, j: number, k: number, l: number) => any;
7
8
  export const digitalconverter_addPageTf: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: any, j: number) => any;
8
9
  export const digitalconverter_add_page: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: number) => any;
@@ -10,18 +11,17 @@ export const digitalconverter_finish: (a: number, b: number, c: number, d: numbe
10
11
  export const digitalconverter_new: (a: number, b: number, c: number, d: number) => [number, number, number];
11
12
  export const digitalconverter_page_count: (a: number) => number;
12
13
  export const digitalconverter_setDict: (a: number, b: number, c: number) => void;
14
+ export const ocr_image: (a: number, b: number, c: number, d: number, e: any, f: number, g: number) => any;
13
15
  export const scannedconverter_addPageTf: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: any) => any;
14
16
  export const scannedconverter_add_page: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any) => any;
15
17
  export const scannedconverter_finish: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
16
18
  export const scannedconverter_new: (a: number, b: number) => number;
17
19
  export const scannedconverter_page_count: (a: number) => number;
18
- export const convert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
19
20
  export const start: () => void;
20
21
  export const supported_extensions: () => [number, number];
21
22
  export const version: () => [number, number];
22
- export const ocr_image: (a: number, b: number, c: number, d: number, e: any, f: number, g: number) => any;
23
- export const wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___wasm_bindgen_3b8f540a994386d0___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_3b8f540a994386d0___JsError___true_: (a: number, b: number, c: any) => [number, number];
24
- export const wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
23
+ export const wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
24
+ export const wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___wasm_bindgen_15402cda974f4c9c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_15402cda974f4c9c___JsError___true_: (a: number, b: number, c: any) => [number, number];
25
25
  export const __wbindgen_malloc: (a: number, b: number) => number;
26
26
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
27
27
  export const __wbindgen_exn_store: (a: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docling.rs-wasm",
3
- "version": "1.19.0",
3
+ "version": "1.41.0",
4
4
  "description": "In-browser document conversion: DOCX, HTML, XLSX, PPTX, EPUB, Markdown, … and the text layer of PDFs → Markdown / docling JSON / DocLang, fully client-side (docling.rs compiled to WebAssembly)",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -24,7 +24,7 @@ export class DigitalConverter {
24
24
  add_page(index: number, rgba: Uint8Array, px_w: number, px_h: number, scale: number, layout: any, rec?: any | null): Promise<void>;
25
25
  /**
26
26
  * Assemble the converted pages into a document and render it as `"md"`
27
- * (default), `"json"` or `"doclang"`, with `images` picking how pictures
27
+ * (default), `"json"`, `"doclang"` or `"latex"`, with `images` picking how pictures
28
28
  * render in Markdown. Resets the converter.
29
29
  */
30
30
  finish(name: string, to?: string | null, images?: string | null): string;
@@ -70,7 +70,7 @@ export class ScannedConverter {
70
70
  add_page(rgba: Uint8Array, px_w: number, px_h: number, scale: number, layout: any, rec: any): Promise<void>;
71
71
  /**
72
72
  * Assemble the accumulated pages into the final document and render it
73
- * as `"md"` (default), `"json"` or `"doclang"` — the same three the
73
+ * as `"md"` (default), `"json"`, `"doclang"` or `"latex"` — the same four the
74
74
  * declarative [`crate::convert`] entry point offers. `images` picks how
75
75
  * cropped figures render in Markdown (`"placeholder"` | `"embedded"`),
76
76
  * like [`crate::convert`]. Resets the converter.
@@ -90,8 +90,9 @@ export class ScannedConverter {
90
90
  /**
91
91
  * Convert a document (as bytes + filename, the extension drives format
92
92
  * detection) to `to`: `"md"` (Markdown, default), `"json"` (docling-core's
93
- * `DoclingDocument` wire format, schema 1.10.0) or `"doclang"` (docling's
94
- * DocLang XML serialization).
93
+ * `DoclingDocument` wire format, schema 1.10.0), `"doclang"` (docling's
94
+ * DocLang XML serialization) or `"latex"` (docling 2.124's LaTeX document,
95
+ * #317).
95
96
  *
96
97
  * `images` controls how pictures render in Markdown — `"placeholder"`
97
98
  * (default) or `"embedded"` (base64 data URIs), the same option
@@ -137,6 +138,7 @@ export interface InitOutput {
137
138
  readonly memory: WebAssembly.Memory;
138
139
  readonly __wbg_digitalconverter_free: (a: number, b: number) => void;
139
140
  readonly __wbg_scannedconverter_free: (a: number, b: number) => void;
141
+ readonly convert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
140
142
  readonly convert_scanned_image: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: number, j: number, k: number, l: number) => any;
141
143
  readonly digitalconverter_addPageTf: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: any, j: number) => any;
142
144
  readonly digitalconverter_add_page: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: number) => any;
@@ -144,18 +146,17 @@ export interface InitOutput {
144
146
  readonly digitalconverter_new: (a: number, b: number, c: number, d: number) => [number, number, number];
145
147
  readonly digitalconverter_page_count: (a: number) => number;
146
148
  readonly digitalconverter_setDict: (a: number, b: number, c: number) => void;
149
+ readonly ocr_image: (a: number, b: number, c: number, d: number, e: any, f: number, g: number) => any;
147
150
  readonly scannedconverter_addPageTf: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: any) => any;
148
151
  readonly scannedconverter_add_page: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any) => any;
149
152
  readonly scannedconverter_finish: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
150
153
  readonly scannedconverter_new: (a: number, b: number) => number;
151
154
  readonly scannedconverter_page_count: (a: number) => number;
152
- readonly convert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
153
155
  readonly start: () => void;
154
156
  readonly supported_extensions: () => [number, number];
155
157
  readonly version: () => [number, number];
156
- readonly ocr_image: (a: number, b: number, c: number, d: number, e: any, f: number, g: number) => any;
157
- readonly wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___wasm_bindgen_3b8f540a994386d0___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_3b8f540a994386d0___JsError___true_: (a: number, b: number, c: any) => [number, number];
158
- readonly wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
158
+ readonly wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
159
+ readonly wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___wasm_bindgen_15402cda974f4c9c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_15402cda974f4c9c___JsError___true_: (a: number, b: number, c: any) => [number, number];
159
160
  readonly __wbindgen_malloc: (a: number, b: number) => number;
160
161
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
161
162
  readonly __wbindgen_exn_store: (a: number) => void;
@@ -58,7 +58,7 @@ export class DigitalConverter {
58
58
  }
59
59
  /**
60
60
  * Assemble the converted pages into a document and render it as `"md"`
61
- * (default), `"json"` or `"doclang"`, with `images` picking how pictures
61
+ * (default), `"json"`, `"doclang"` or `"latex"`, with `images` picking how pictures
62
62
  * render in Markdown. Resets the converter.
63
63
  * @param {string} name
64
64
  * @param {string | null} [to]
@@ -188,7 +188,7 @@ export class ScannedConverter {
188
188
  }
189
189
  /**
190
190
  * Assemble the accumulated pages into the final document and render it
191
- * as `"md"` (default), `"json"` or `"doclang"` — the same three the
191
+ * as `"md"` (default), `"json"`, `"doclang"` or `"latex"` — the same four the
192
192
  * declarative [`crate::convert`] entry point offers. `images` picks how
193
193
  * cropped figures render in Markdown (`"placeholder"` | `"embedded"`),
194
194
  * like [`crate::convert`]. Resets the converter.
@@ -248,8 +248,9 @@ if (Symbol.dispose) ScannedConverter.prototype[Symbol.dispose] = ScannedConverte
248
248
  /**
249
249
  * Convert a document (as bytes + filename, the extension drives format
250
250
  * detection) to `to`: `"md"` (Markdown, default), `"json"` (docling-core's
251
- * `DoclingDocument` wire format, schema 1.10.0) or `"doclang"` (docling's
252
- * DocLang XML serialization).
251
+ * `DoclingDocument` wire format, schema 1.10.0), `"doclang"` (docling's
252
+ * DocLang XML serialization) or `"latex"` (docling 2.124's LaTeX document,
253
+ * #317).
253
254
  *
254
255
  * `images` controls how pictures render in Markdown — `"placeholder"`
255
256
  * (default) or `"embedded"` (base64 data URIs), the same option
@@ -383,46 +384,46 @@ export function version() {
383
384
  function __wbg_get_imports() {
384
385
  const import0 = {
385
386
  __proto__: null,
386
- __wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
387
+ __wbg_Error_67e7344beaa85059: function(arg0, arg1) {
387
388
  const ret = Error(getStringFromWasm0(arg0, arg1));
388
389
  return ret;
389
390
  },
390
- __wbg___wbindgen_debug_string_a57024b9c6e4a48b: function(arg0, arg1) {
391
+ __wbg___wbindgen_debug_string_0e68cf47c9cbd9b0: function(arg0, arg1) {
391
392
  const ret = debugString(arg1);
392
393
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
393
394
  const len1 = WASM_VECTOR_LEN;
394
395
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
395
396
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
396
397
  },
397
- __wbg___wbindgen_is_function_5e4570eb24ffa122: function(arg0) {
398
+ __wbg___wbindgen_is_function_fcda5e3902d732fe: function(arg0) {
398
399
  const ret = typeof(arg0) === 'function';
399
400
  return ret;
400
401
  },
401
- __wbg___wbindgen_is_undefined_6cff064c44e0d823: function(arg0) {
402
+ __wbg___wbindgen_is_undefined_8c687d0b90d5b524: function(arg0) {
402
403
  const ret = arg0 === undefined;
403
404
  return ret;
404
405
  },
405
- __wbg___wbindgen_number_get_136b9679cab35cfb: function(arg0, arg1) {
406
+ __wbg___wbindgen_number_get_1dc732b810cb937c: function(arg0, arg1) {
406
407
  const obj = arg1;
407
408
  const ret = typeof(obj) === 'number' ? obj : undefined;
408
409
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
409
410
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
410
411
  },
411
- __wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
412
+ __wbg___wbindgen_throw_5d9e815e6fdf150f: function(arg0, arg1) {
412
413
  throw new Error(getStringFromWasm0(arg0, arg1));
413
414
  },
414
- __wbg__wbg_cb_unref_be22cc64ae6946a0: function(arg0) {
415
+ __wbg__wbg_cb_unref_997e73d32238e655: function(arg0) {
415
416
  arg0._wbg_cb_unref();
416
417
  },
417
- __wbg_bbox_151ce6d3ed1593d8: function() { return handleError(function (arg0, arg1, arg2) {
418
+ __wbg_bbox_b7b3554ea8594fd8: function() { return handleError(function (arg0, arg1, arg2) {
418
419
  const ret = arg0.bbox(arg1, arg2 >>> 0);
419
420
  return ret;
420
421
  }, arguments); },
421
- __wbg_call_35dba3c747ad7521: function() { return handleError(function (arg0, arg1, arg2) {
422
+ __wbg_call_6bcf8d3e20937e46: function() { return handleError(function (arg0, arg1, arg2) {
422
423
  const ret = arg0.call(arg1, arg2);
423
424
  return ret;
424
425
  }, arguments); },
425
- __wbg_encode_173f290675616de7: function() { return handleError(function (arg0, arg1) {
426
+ __wbg_encode_248ab6b149220a69: function() { return handleError(function (arg0, arg1) {
426
427
  const ret = arg0.encode(arg1);
427
428
  return ret;
428
429
  }, arguments); },
@@ -440,15 +441,15 @@ function __wbg_get_imports() {
440
441
  __wbg_getRandomValues_436a51d0629d84e1: function() { return handleError(function (arg0, arg1) {
441
442
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
442
443
  }, arguments); },
443
- __wbg_get_971a0c45d172643f: function() { return handleError(function (arg0, arg1) {
444
+ __wbg_get_989d0a1309644f2b: function() { return handleError(function (arg0, arg1) {
444
445
  const ret = Reflect.get(arg0, arg1);
445
446
  return ret;
446
447
  }, arguments); },
447
- __wbg_get_c0c8f8d7da0c03dd: function(arg0, arg1) {
448
+ __wbg_get_b1f0ab13c737f856: function(arg0, arg1) {
448
449
  const ret = arg0[arg1 >>> 0];
449
450
  return ret;
450
451
  },
451
- __wbg_instanceof_Float32Array_d1723b46884013f0: function(arg0) {
452
+ __wbg_instanceof_Float32Array_31e80d3e88752523: function(arg0) {
452
453
  let result;
453
454
  try {
454
455
  result = arg0 instanceof Float32Array;
@@ -458,15 +459,15 @@ function __wbg_get_imports() {
458
459
  const ret = result;
459
460
  return ret;
460
461
  },
461
- __wbg_isArray_6339f732981044bf: function(arg0) {
462
+ __wbg_isArray_5674713bb7b79043: function(arg0) {
462
463
  const ret = Array.isArray(arg0);
463
464
  return ret;
464
465
  },
465
- __wbg_length_1009454859bb3e03: function(arg0) {
466
+ __wbg_length_4e1adc0d42e23620: function(arg0) {
466
467
  const ret = arg0.length;
467
468
  return ret;
468
469
  },
469
- __wbg_length_ecfa2c63d3d0d82c: function(arg0) {
470
+ __wbg_length_8768c6f6941913e3: function(arg0) {
470
471
  const ret = arg0.length;
471
472
  return ret;
472
473
  },
@@ -474,18 +475,18 @@ function __wbg_get_imports() {
474
475
  const ret = new Error();
475
476
  return ret;
476
477
  },
477
- __wbg_new_from_slice_709ab7061ebcc5da: function(arg0, arg1) {
478
+ __wbg_new_from_slice_2221cabb71753908: function(arg0, arg1) {
478
479
  const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
479
480
  return ret;
480
481
  },
481
- __wbg_new_typed_cceaf62d8d95e9f2: function(arg0, arg1) {
482
+ __wbg_new_typed_6f8b0d724fe26c07: function(arg0, arg1) {
482
483
  try {
483
484
  var state0 = {a: arg0, b: arg1};
484
485
  var cb0 = (arg0, arg1) => {
485
486
  const a = state0.a;
486
487
  state0.a = 0;
487
488
  try {
488
- return wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined_______true_(a, state0.b, arg0, arg1);
489
+ return wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined_______true_(a, state0.b, arg0, arg1);
489
490
  } finally {
490
491
  state0.a = a;
491
492
  }
@@ -496,26 +497,26 @@ function __wbg_get_imports() {
496
497
  state0.a = 0;
497
498
  }
498
499
  },
499
- __wbg_prototypesetcall_10722f4fde830f07: function(arg0, arg1, arg2) {
500
+ __wbg_prototypesetcall_804a1eb1b047ccb9: function(arg0, arg1, arg2) {
500
501
  Float32Array.prototype.set.call(getArrayF32FromWasm0(arg0, arg1), arg2);
501
502
  },
502
- __wbg_queueMicrotask_ac694eae12e92dfb: function(arg0) {
503
- queueMicrotask(arg0);
504
- },
505
- __wbg_queueMicrotask_be5fe34a8f4cad4d: function(arg0) {
503
+ __wbg_queueMicrotask_85c90f6987555d65: function(arg0) {
506
504
  const ret = arg0.queueMicrotask;
507
505
  return ret;
508
506
  },
509
- __wbg_resolve_020f95d838c6ef25: function(arg0) {
507
+ __wbg_queueMicrotask_f6a1fa10b81d1fc0: function(arg0) {
508
+ queueMicrotask(arg0);
509
+ },
510
+ __wbg_resolve_35ec7e0c6af4c82c: function(arg0) {
510
511
  const ret = Promise.resolve(arg0);
511
512
  return ret;
512
513
  },
513
- __wbg_run_42a242aa5b910a8f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
514
- const ret = arg0.run(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
514
+ __wbg_run_11e43946a466e338: function() { return handleError(function (arg0, arg1) {
515
+ const ret = arg0.run(arg1);
515
516
  return ret;
516
517
  }, arguments); },
517
- __wbg_run_66e00f458e411d88: function() { return handleError(function (arg0, arg1) {
518
- const ret = arg0.run(arg1);
518
+ __wbg_run_9e7c26927271dced: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
519
+ const ret = arg0.run(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
519
520
  return ret;
520
521
  }, arguments); },
521
522
  __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
@@ -525,40 +526,40 @@ function __wbg_get_imports() {
525
526
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
526
527
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
527
528
  },
528
- __wbg_static_accessor_GLOBAL_THIS_466428f93b4eaa76: function() {
529
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
529
+ __wbg_static_accessor_GLOBAL_8eb4cd83130a11a0: function() {
530
+ const ret = typeof global === 'undefined' ? null : global;
530
531
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
531
532
  },
532
- __wbg_static_accessor_GLOBAL_c7aea38d4de089bc: function() {
533
- const ret = typeof global === 'undefined' ? null : global;
533
+ __wbg_static_accessor_GLOBAL_THIS_1e7044f654e934db: function() {
534
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
534
535
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
535
536
  },
536
- __wbg_static_accessor_SELF_42d4fae05e59267a: function() {
537
+ __wbg_static_accessor_SELF_d8b50611246a6d92: function() {
537
538
  const ret = typeof self === 'undefined' ? null : self;
538
539
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
539
540
  },
540
- __wbg_static_accessor_WINDOW_e0db14a0eba6a812: function() {
541
+ __wbg_static_accessor_WINDOW_fd0bc376bf0f8b42: function() {
541
542
  const ret = typeof window === 'undefined' ? null : window;
542
543
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
543
544
  },
544
- __wbg_step_d06d33005322fe94: function() { return handleError(function (arg0, arg1) {
545
+ __wbg_step_b599718fbce3f70e: function() { return handleError(function (arg0, arg1) {
545
546
  const ret = arg0.step(arg1);
546
547
  return ret;
547
548
  }, arguments); },
548
- __wbg_then_7026b513a94278a8: function(arg0, arg1) {
549
- const ret = arg0.then(arg1);
549
+ __wbg_then_7a850dae4493f353: function(arg0, arg1, arg2) {
550
+ const ret = arg0.then(arg1, arg2);
550
551
  return ret;
551
552
  },
552
- __wbg_then_72819b8d4e081fb5: function(arg0, arg1, arg2) {
553
- const ret = arg0.then(arg1, arg2);
553
+ __wbg_then_b830475380919203: function(arg0, arg1) {
554
+ const ret = arg0.then(arg1);
554
555
  return ret;
555
556
  },
556
- __wbindgen_cast_0000000000000001: function(arg0, arg1) {
557
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 78, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
558
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___wasm_bindgen_3b8f540a994386d0___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_3b8f540a994386d0___JsError___true_);
557
+ __wbindgen_generic_0000000000000001: function(arg0, arg1) {
558
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 85, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
559
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___wasm_bindgen_15402cda974f4c9c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_15402cda974f4c9c___JsError___true_);
559
560
  return ret;
560
561
  },
561
- __wbindgen_cast_0000000000000002: function(arg0, arg1) {
562
+ __wbindgen_generic_0000000000000002: function(arg0, arg1) {
562
563
  // Cast intrinsic for `Ref(String) -> Externref`.
563
564
  const ret = getStringFromWasm0(arg0, arg1);
564
565
  return ret;
@@ -579,15 +580,15 @@ function __wbg_get_imports() {
579
580
  };
580
581
  }
581
582
 
582
- function wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___wasm_bindgen_3b8f540a994386d0___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_3b8f540a994386d0___JsError___true_(arg0, arg1, arg2) {
583
- const ret = wasm.wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___wasm_bindgen_3b8f540a994386d0___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_3b8f540a994386d0___JsError___true_(arg0, arg1, arg2);
583
+ function wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___wasm_bindgen_15402cda974f4c9c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_15402cda974f4c9c___JsError___true_(arg0, arg1, arg2) {
584
+ const ret = wasm.wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___wasm_bindgen_15402cda974f4c9c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_15402cda974f4c9c___JsError___true_(arg0, arg1, arg2);
584
585
  if (ret[1]) {
585
586
  throw takeFromExternrefTable0(ret[0]);
586
587
  }
587
588
  }
588
589
 
589
- function wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
590
- wasm.wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
590
+ function wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
591
+ wasm.wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
591
592
  }
592
593
 
593
594
  const DigitalConverterFinalization = (typeof FinalizationRegistry === 'undefined')
Binary file
@@ -3,6 +3,7 @@
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_digitalconverter_free: (a: number, b: number) => void;
5
5
  export const __wbg_scannedconverter_free: (a: number, b: number) => void;
6
+ export const convert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
6
7
  export const convert_scanned_image: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: number, j: number, k: number, l: number) => any;
7
8
  export const digitalconverter_addPageTf: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: any, j: number) => any;
8
9
  export const digitalconverter_add_page: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: number) => any;
@@ -10,18 +11,17 @@ export const digitalconverter_finish: (a: number, b: number, c: number, d: numbe
10
11
  export const digitalconverter_new: (a: number, b: number, c: number, d: number) => [number, number, number];
11
12
  export const digitalconverter_page_count: (a: number) => number;
12
13
  export const digitalconverter_setDict: (a: number, b: number, c: number) => void;
14
+ export const ocr_image: (a: number, b: number, c: number, d: number, e: any, f: number, g: number) => any;
13
15
  export const scannedconverter_addPageTf: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: any) => any;
14
16
  export const scannedconverter_add_page: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any) => any;
15
17
  export const scannedconverter_finish: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
16
18
  export const scannedconverter_new: (a: number, b: number) => number;
17
19
  export const scannedconverter_page_count: (a: number) => number;
18
- export const convert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
19
20
  export const start: () => void;
20
21
  export const supported_extensions: () => [number, number];
21
22
  export const version: () => [number, number];
22
- export const ocr_image: (a: number, b: number, c: number, d: number, e: any, f: number, g: number) => any;
23
- export const wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___wasm_bindgen_3b8f540a994386d0___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_3b8f540a994386d0___JsError___true_: (a: number, b: number, c: any) => [number, number];
24
- export const wasm_bindgen_3b8f540a994386d0___convert__closures_____invoke___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined___js_sys_971824953deced4b___Function_fn_wasm_bindgen_3b8f540a994386d0___JsValue_____wasm_bindgen_3b8f540a994386d0___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
23
+ export const wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
24
+ export const wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___wasm_bindgen_15402cda974f4c9c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_15402cda974f4c9c___JsError___true_: (a: number, b: number, c: any) => [number, number];
25
25
  export const __wbindgen_malloc: (a: number, b: number) => number;
26
26
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
27
27
  export const __wbindgen_exn_store: (a: number) => void;