@clazic/kordoc 2.4.5 → 2.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2820,7 +2820,7 @@ import JSZip2 from "jszip";
2820
2820
  import { DOMParser } from "@xmldom/xmldom";
2821
2821
 
2822
2822
  // src/utils.ts
2823
- var VERSION = true ? "2.4.5" : "0.0.0-dev";
2823
+ var VERSION = true ? "2.4.6" : "0.0.0-dev";
2824
2824
  function toArrayBuffer(buf) {
2825
2825
  if (buf.byteOffset === 0 && buf.byteLength === buf.buffer.byteLength) {
2826
2826
  return buf.buffer;
@@ -6426,6 +6426,7 @@ async function parsePdfDocument(buffer, options) {
6426
6426
  } catch {
6427
6427
  }
6428
6428
  }
6429
+ allOcrBlocks.sort((a, b) => (a.pageNumber ?? 0) - (b.pageNumber ?? 0));
6429
6430
  ocrBlocks = allOcrBlocks;
6430
6431
  } else {
6431
6432
  try {