kordoc 4.25.2 → 4.25.3
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/NOTICE +14 -8
- package/README.md +2 -2
- package/dist/{chunk-QJWSNET3.js → chunk-44JOWCSX.js} +8 -8
- package/dist/{chunk-CEYITKNO.js → chunk-7LVAULK7.js} +2 -2
- package/dist/{chunk-AHJOET62.js → chunk-ATOUJ2QT.js} +5 -5
- package/dist/{chunk-6VSEMZ2J.js → chunk-BAYK74RD.js} +10 -10
- package/dist/{chunk-EWUBFEPZ.js → chunk-BP54NHUP.js} +2 -2
- package/dist/{chunk-EWUBFEPZ.js.map → chunk-BP54NHUP.js.map} +2 -2
- package/dist/{chunk-ZMLZVD3J.js → chunk-CKRFG6QS.js} +2 -2
- package/dist/{chunk-BDBVGJW3.js → chunk-EL3TM6NH.js} +2 -2
- package/dist/{chunk-PE2Z234F.js → chunk-FZNY4DWZ.js} +2 -2
- package/dist/{chunk-NXDACGEH.js → chunk-G6HRSHV2.js} +39 -4
- package/dist/{chunk-NXDACGEH.js.map → chunk-G6HRSHV2.js.map} +2 -2
- package/dist/{chunk-NRHDHCJN.js → chunk-GRKTIXRO.js} +2 -2
- package/dist/{chunk-N4WIRSNW.js → chunk-H5JMMJSH.js} +2 -2
- package/dist/{chunk-ZHVSRDVF.js → chunk-H76I34IS.js} +6 -6
- package/dist/{chunk-A36NOLXN.js → chunk-HUN4CRUL.js} +6 -6
- package/dist/{chunk-GUOXYUMU.js → chunk-HWUAMWA2.js} +2 -2
- package/dist/{chunk-4X5R5EKL.js → chunk-JYZGHREO.js} +6 -6
- package/dist/{chunk-UMWSG2SJ.js → chunk-MJDPJ5XQ.js} +3 -3
- package/dist/{chunk-RWWLUT3Z.js → chunk-MLGR4AJ6.js} +25 -6
- package/dist/chunk-MLGR4AJ6.js.map +7 -0
- package/dist/{chunk-OQKYJVLL.js → chunk-NCZRKC5G.js} +4 -4
- package/dist/{chunk-RR7F4MV7.js → chunk-NOKFHQ6K.js} +2 -2
- package/dist/{chunk-GEWICG46.js → chunk-PEN2SUJQ.js} +2 -2
- package/dist/{chunk-OE76DPYB.js → chunk-Q4YOIJQF.js} +3 -3
- package/dist/{chunk-KK3ADW4V.js → chunk-Q525ZJZK.js} +28 -10
- package/dist/{chunk-KK3ADW4V.js.map → chunk-Q525ZJZK.js.map} +3 -3
- package/dist/{chunk-RCFCHOMY.js → chunk-S2DA7IZJ.js} +2 -2
- package/dist/{chunk-HS4V42R5.js → chunk-WYH2DSPZ.js} +2 -2
- package/dist/{chunk-BVJX756H.js → chunk-YJ6ZL7O2.js} +16 -16
- package/dist/{chunk-IK3FDYOE.js → chunk-ZD2KWXR2.js} +2 -2
- package/dist/chunks-EBMYAFDM.js +10 -0
- package/dist/cli.js +35 -35
- package/dist/{formula-6DMQSBFW.js → formula-3QN7DVFM.js} +4 -4
- package/dist/{generator-ORDTMIQM.js → generator-O5RTSTX6.js} +7 -7
- package/dist/{hancom-KN5SQMKT.js → hancom-ZJR546EJ.js} +2 -2
- package/dist/{image-ocr-LVJFXGL4.js → image-ocr-LA3LCRXK.js} +11 -11
- package/dist/index.cjs +87 -15
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +19 -19
- package/dist/mcp.js +33 -33
- package/dist/mcp.js.map +2 -2
- package/dist/memo-ZKU7B66X.js +15 -0
- package/dist/{model-bundle-VWCZDFFG.js → model-bundle-HEEEA6YP.js} +5 -5
- package/dist/{models-R67ZWDF4.js → models-BS5CBYRY.js} +9 -5
- package/dist/{parse-worker-v2-6WBBR7Z2.js → parse-worker-v2-J4OWXPNE.js} +21 -21
- package/dist/{parser-TCYP5RBA.js → parser-OGWIHRB7.js} +14 -13
- package/dist/{parser-TCYP5RBA.js.map → parser-OGWIHRB7.js.map} +2 -2
- package/dist/{pdf-ocr-DVCI7AAR.js → pdf-ocr-DLE7J6MD.js} +9 -9
- package/dist/{profile-io-4XUVQIFE.js → profile-io-3RT4KWON.js} +3 -3
- package/dist/{rasterize-WUSJNYMZ.js → rasterize-UBAGOEIC.js} +3 -3
- package/dist/{redact-doc-HCXNHJUZ.js → redact-doc-7CKGFON7.js} +20 -20
- package/dist/{render-NGSGUNWX.js → render-HOLN6Y7J.js} +10 -10
- package/dist/{rewrite-fallback-S7F2TP4G.js → rewrite-fallback-O6TBXS3M.js} +12 -12
- package/dist/seal-EYDUKV3T.js +14 -0
- package/dist/{setup-ECJK3FIE.js → setup-HVPORSZU.js} +3 -3
- package/dist/{to-hwpx-PSJYFTDW.js → to-hwpx-VPK7TIL6.js} +7 -7
- package/dist/visual-IWW6J4I4.js +38 -0
- package/dist/{watch-CTPPLNO4.js → watch-LSDUKNBM.js} +21 -21
- package/package.json +1 -1
- package/dist/chunk-RWWLUT3Z.js.map +0 -7
- package/dist/chunks-JNZ2WBME.js +0 -10
- package/dist/memo-UJ4UYP5C.js +0 -15
- package/dist/seal-BB7STCXD.js +0 -14
- package/dist/visual-QQC436MI.js +0 -38
- /package/dist/{chunk-QJWSNET3.js.map → chunk-44JOWCSX.js.map} +0 -0
- /package/dist/{chunk-CEYITKNO.js.map → chunk-7LVAULK7.js.map} +0 -0
- /package/dist/{chunk-AHJOET62.js.map → chunk-ATOUJ2QT.js.map} +0 -0
- /package/dist/{chunk-6VSEMZ2J.js.map → chunk-BAYK74RD.js.map} +0 -0
- /package/dist/{chunk-ZMLZVD3J.js.map → chunk-CKRFG6QS.js.map} +0 -0
- /package/dist/{chunk-BDBVGJW3.js.map → chunk-EL3TM6NH.js.map} +0 -0
- /package/dist/{chunk-PE2Z234F.js.map → chunk-FZNY4DWZ.js.map} +0 -0
- /package/dist/{chunk-NRHDHCJN.js.map → chunk-GRKTIXRO.js.map} +0 -0
- /package/dist/{chunk-N4WIRSNW.js.map → chunk-H5JMMJSH.js.map} +0 -0
- /package/dist/{chunk-ZHVSRDVF.js.map → chunk-H76I34IS.js.map} +0 -0
- /package/dist/{chunk-A36NOLXN.js.map → chunk-HUN4CRUL.js.map} +0 -0
- /package/dist/{chunk-GUOXYUMU.js.map → chunk-HWUAMWA2.js.map} +0 -0
- /package/dist/{chunk-4X5R5EKL.js.map → chunk-JYZGHREO.js.map} +0 -0
- /package/dist/{chunk-UMWSG2SJ.js.map → chunk-MJDPJ5XQ.js.map} +0 -0
- /package/dist/{chunk-OQKYJVLL.js.map → chunk-NCZRKC5G.js.map} +0 -0
- /package/dist/{chunk-RR7F4MV7.js.map → chunk-NOKFHQ6K.js.map} +0 -0
- /package/dist/{chunk-GEWICG46.js.map → chunk-PEN2SUJQ.js.map} +0 -0
- /package/dist/{chunk-OE76DPYB.js.map → chunk-Q4YOIJQF.js.map} +0 -0
- /package/dist/{chunk-RCFCHOMY.js.map → chunk-S2DA7IZJ.js.map} +0 -0
- /package/dist/{chunk-HS4V42R5.js.map → chunk-WYH2DSPZ.js.map} +0 -0
- /package/dist/{chunk-BVJX756H.js.map → chunk-YJ6ZL7O2.js.map} +0 -0
- /package/dist/{chunk-IK3FDYOE.js.map → chunk-ZD2KWXR2.js.map} +0 -0
- /package/dist/{chunks-JNZ2WBME.js.map → chunks-EBMYAFDM.js.map} +0 -0
- /package/dist/{formula-6DMQSBFW.js.map → formula-3QN7DVFM.js.map} +0 -0
- /package/dist/{generator-ORDTMIQM.js.map → generator-O5RTSTX6.js.map} +0 -0
- /package/dist/{hancom-KN5SQMKT.js.map → hancom-ZJR546EJ.js.map} +0 -0
- /package/dist/{image-ocr-LVJFXGL4.js.map → image-ocr-LA3LCRXK.js.map} +0 -0
- /package/dist/{memo-UJ4UYP5C.js.map → memo-ZKU7B66X.js.map} +0 -0
- /package/dist/{model-bundle-VWCZDFFG.js.map → model-bundle-HEEEA6YP.js.map} +0 -0
- /package/dist/{models-R67ZWDF4.js.map → models-BS5CBYRY.js.map} +0 -0
- /package/dist/{parse-worker-v2-6WBBR7Z2.js.map → parse-worker-v2-J4OWXPNE.js.map} +0 -0
- /package/dist/{pdf-ocr-DVCI7AAR.js.map → pdf-ocr-DLE7J6MD.js.map} +0 -0
- /package/dist/{profile-io-4XUVQIFE.js.map → profile-io-3RT4KWON.js.map} +0 -0
- /package/dist/{rasterize-WUSJNYMZ.js.map → rasterize-UBAGOEIC.js.map} +0 -0
- /package/dist/{redact-doc-HCXNHJUZ.js.map → redact-doc-7CKGFON7.js.map} +0 -0
- /package/dist/{render-NGSGUNWX.js.map → render-HOLN6Y7J.js.map} +0 -0
- /package/dist/{rewrite-fallback-S7F2TP4G.js.map → rewrite-fallback-O6TBXS3M.js.map} +0 -0
- /package/dist/{seal-BB7STCXD.js.map → seal-EYDUKV3T.js.map} +0 -0
- /package/dist/{setup-ECJK3FIE.js.map → setup-HVPORSZU.js.map} +0 -0
- /package/dist/{to-hwpx-PSJYFTDW.js.map → to-hwpx-VPK7TIL6.js.map} +0 -0
- /package/dist/{visual-QQC436MI.js.map → visual-IWW6J4I4.js.map} +0 -0
- /package/dist/{watch-CTPPLNO4.js.map → watch-LSDUKNBM.js.map} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
addMemoHwpx
|
|
3
|
+
} from "./chunk-H76I34IS.js";
|
|
4
|
+
import "./chunk-NCZRKC5G.js";
|
|
5
|
+
import "./chunk-FZNY4DWZ.js";
|
|
6
|
+
import "./chunk-OP4EPPXU.js";
|
|
7
|
+
import "./chunk-H5JMMJSH.js";
|
|
8
|
+
import "./chunk-S2DA7IZJ.js";
|
|
9
|
+
import "./chunk-63UKHBUV.js";
|
|
10
|
+
import "./chunk-RJCXOE4N.js";
|
|
11
|
+
import "./chunk-7LVAULK7.js";
|
|
12
|
+
export {
|
|
13
|
+
addMemoHwpx
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=memo-ZKU7B66X.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ALL_OCR_MODELS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MLGR4AJ6.js";
|
|
4
4
|
import {
|
|
5
5
|
ALL_FORMULA_MODELS,
|
|
6
6
|
getModelStatusIn,
|
|
7
7
|
getModelsDir
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-EL3TM6NH.js";
|
|
9
|
+
import "./chunk-NOKFHQ6K.js";
|
|
10
|
+
import "./chunk-7LVAULK7.js";
|
|
11
11
|
|
|
12
12
|
// src/shared/model-bundle.ts
|
|
13
13
|
import { copyFile, mkdir } from "fs/promises";
|
|
@@ -100,4 +100,4 @@ export {
|
|
|
100
100
|
importModels,
|
|
101
101
|
modelCacheStatus
|
|
102
102
|
};
|
|
103
|
-
//# sourceMappingURL=model-bundle-
|
|
103
|
+
//# sourceMappingURL=model-bundle-HEEEA6YP.js.map
|
|
@@ -2,6 +2,8 @@ import {
|
|
|
2
2
|
ALL_OCR_MODELS,
|
|
3
3
|
DEFAULT_OCR_MODELS,
|
|
4
4
|
OCR_DET_MODEL,
|
|
5
|
+
OCR_HANDWRITING_FALLBACK_REC_MODEL,
|
|
6
|
+
OCR_HANDWRITING_REC_DICT,
|
|
5
7
|
OCR_HANDWRITING_REC_MODEL,
|
|
6
8
|
OCR_REC_DICT,
|
|
7
9
|
OCR_REC_MODEL,
|
|
@@ -18,14 +20,16 @@ import {
|
|
|
18
20
|
ocrSourcePath,
|
|
19
21
|
parseCharacterDict,
|
|
20
22
|
resolveOcrModels
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-MLGR4AJ6.js";
|
|
24
|
+
import "./chunk-EL3TM6NH.js";
|
|
25
|
+
import "./chunk-NOKFHQ6K.js";
|
|
26
|
+
import "./chunk-7LVAULK7.js";
|
|
25
27
|
export {
|
|
26
28
|
ALL_OCR_MODELS,
|
|
27
29
|
DEFAULT_OCR_MODELS,
|
|
28
30
|
OCR_DET_MODEL,
|
|
31
|
+
OCR_HANDWRITING_FALLBACK_REC_MODEL,
|
|
32
|
+
OCR_HANDWRITING_REC_DICT,
|
|
29
33
|
OCR_HANDWRITING_REC_MODEL,
|
|
30
34
|
OCR_REC_DICT,
|
|
31
35
|
OCR_REC_MODEL,
|
|
@@ -43,4 +47,4 @@ export {
|
|
|
43
47
|
parseCharacterDict,
|
|
44
48
|
resolveOcrModels
|
|
45
49
|
};
|
|
46
|
-
//# sourceMappingURL=models-
|
|
50
|
+
//# sourceMappingURL=models-BS5CBYRY.js.map
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseWorkerFile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MJDPJ5XQ.js";
|
|
4
4
|
import {
|
|
5
5
|
insideSandbox
|
|
6
6
|
} from "./chunk-CNHQRCW6.js";
|
|
7
7
|
import {
|
|
8
8
|
lintBlocks
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-YJ6ZL7O2.js";
|
|
10
|
+
import "./chunk-44JOWCSX.js";
|
|
11
|
+
import "./chunk-GRKTIXRO.js";
|
|
12
|
+
import "./chunk-WYH2DSPZ.js";
|
|
13
|
+
import "./chunk-BAYK74RD.js";
|
|
14
|
+
import "./chunk-PEN2SUJQ.js";
|
|
15
15
|
import "./chunk-3UIIEZBT.js";
|
|
16
16
|
import {
|
|
17
17
|
PRESET_ALIAS
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-HUN4CRUL.js";
|
|
19
|
+
import "./chunk-Q4YOIJQF.js";
|
|
20
|
+
import "./chunk-H76I34IS.js";
|
|
21
|
+
import "./chunk-NCZRKC5G.js";
|
|
22
|
+
import "./chunk-FZNY4DWZ.js";
|
|
23
23
|
import "./chunk-OP4EPPXU.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-H5JMMJSH.js";
|
|
25
25
|
import "./chunk-HVXDD6QZ.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-JYZGHREO.js";
|
|
27
|
+
import "./chunk-ATOUJ2QT.js";
|
|
28
28
|
import "./chunk-T3CW5OXA.js";
|
|
29
29
|
import "./chunk-CG6DUPWU.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-S2DA7IZJ.js";
|
|
31
31
|
import "./chunk-63UKHBUV.js";
|
|
32
32
|
import "./chunk-MQCNWXMU.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-ZD2KWXR2.js";
|
|
34
34
|
import "./chunk-W5CMIZUB.js";
|
|
35
35
|
import "./chunk-YZ3IKQLX.js";
|
|
36
36
|
import "./chunk-O5YMQ22P.js";
|
|
@@ -38,13 +38,13 @@ import {
|
|
|
38
38
|
validateOcrOptions
|
|
39
39
|
} from "./chunk-5TRTCMDI.js";
|
|
40
40
|
import "./chunk-G5XEBGZD.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-BP54NHUP.js";
|
|
42
|
+
import "./chunk-CKRFG6QS.js";
|
|
43
43
|
import "./chunk-RJCXOE4N.js";
|
|
44
44
|
import {
|
|
45
45
|
VERSION,
|
|
46
46
|
sanitizeError
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-7LVAULK7.js";
|
|
48
48
|
|
|
49
49
|
// src/cli/parse-worker-v2.ts
|
|
50
50
|
import { createHash } from "crypto";
|
|
@@ -387,4 +387,4 @@ export {
|
|
|
387
387
|
runParseWorkerV2,
|
|
388
388
|
toParseOptions
|
|
389
389
|
};
|
|
390
|
-
//# sourceMappingURL=parse-worker-v2-
|
|
390
|
+
//# sourceMappingURL=parse-worker-v2-J4OWXPNE.js.map
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
restoreUnmappedCidSpaces,
|
|
17
17
|
restoreUnmappedGlyphs,
|
|
18
18
|
spaceMappedDots
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-WYH2DSPZ.js";
|
|
20
20
|
import {
|
|
21
21
|
WEBP_UNAVAILABLE,
|
|
22
22
|
loadWebpEncoder
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
stripAbsorbedRunningLines,
|
|
82
82
|
trimTrailingEmptyTableCols,
|
|
83
83
|
wrapJoiner
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-G6HRSHV2.js";
|
|
85
85
|
import {
|
|
86
86
|
ImageKind,
|
|
87
87
|
OPS,
|
|
@@ -97,12 +97,12 @@ import {
|
|
|
97
97
|
stripScriptTags,
|
|
98
98
|
toTex,
|
|
99
99
|
unframeLayoutTables
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-BP54NHUP.js";
|
|
101
101
|
import {
|
|
102
102
|
assignTableIds,
|
|
103
103
|
blocksToMarkdown,
|
|
104
104
|
escapeLiteralDollar
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-CKRFG6QS.js";
|
|
106
106
|
import {
|
|
107
107
|
WINGDINGS,
|
|
108
108
|
enclosedNumber
|
|
@@ -111,13 +111,13 @@ import {
|
|
|
111
111
|
handwritingFallbackModels,
|
|
112
112
|
ocrModelsCached,
|
|
113
113
|
resolveOcrModels
|
|
114
|
-
} from "./chunk-
|
|
115
|
-
import "./chunk-
|
|
116
|
-
import "./chunk-
|
|
114
|
+
} from "./chunk-MLGR4AJ6.js";
|
|
115
|
+
import "./chunk-EL3TM6NH.js";
|
|
116
|
+
import "./chunk-NOKFHQ6K.js";
|
|
117
117
|
import {
|
|
118
118
|
KordocError,
|
|
119
119
|
sanitizeHref
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-7LVAULK7.js";
|
|
121
121
|
|
|
122
122
|
// src/pdf/image-extract.ts
|
|
123
123
|
import { createHash } from "node:crypto";
|
|
@@ -3540,7 +3540,7 @@ function mergeLinkRuns(markdown) {
|
|
|
3540
3540
|
|
|
3541
3541
|
// src/pdf/formula-ocr.ts
|
|
3542
3542
|
async function applyFormulaOcr(buffer, blocks, pageFilter, effectivePageCount, warnings, _onProgress) {
|
|
3543
|
-
const formulaMod = await import("./formula-
|
|
3543
|
+
const formulaMod = await import("./formula-3QN7DVFM.js");
|
|
3544
3544
|
const { FormulaPipeline, ensureFormulaModels } = formulaMod;
|
|
3545
3545
|
await ensureFormulaModels((p) => {
|
|
3546
3546
|
if (p.phase === "download" && p.total) {
|
|
@@ -3906,7 +3906,8 @@ async function parsePdfDocument(buffer, options) {
|
|
|
3906
3906
|
const isImageBased = pageFilter?.size !== 0 && totalChars / Math.max(parsedPageCount, 1) < 10;
|
|
3907
3907
|
const ocrDone = /* @__PURE__ */ new Set();
|
|
3908
3908
|
const ocrLinesOut = /* @__PURE__ */ new Map();
|
|
3909
|
-
const
|
|
3909
|
+
const allRegions = options?.ocr === true || typeof options?.ocr === "function";
|
|
3910
|
+
const ocrRegions = allRegions || autoOcr ? ocrImageRegions(uncoveredImageRegions, largeImageRegions, allRegions) : /* @__PURE__ */ new Map();
|
|
3910
3911
|
if (ocrBuffer) {
|
|
3911
3912
|
const inScope = (p) => !pageFilter || pageFilter.has(p);
|
|
3912
3913
|
const targets = /* @__PURE__ */ new Set();
|
|
@@ -3923,10 +3924,10 @@ async function parsePdfDocument(buffer, options) {
|
|
|
3923
3924
|
}
|
|
3924
3925
|
if (targets.size > 0) {
|
|
3925
3926
|
try {
|
|
3926
|
-
const { runPdfOcr } = await import("./pdf-ocr-
|
|
3927
|
+
const { runPdfOcr } = await import("./pdf-ocr-DLE7J6MD.js");
|
|
3927
3928
|
const mode = typeof options?.ocr === "function" ? options.ocr : "builtin";
|
|
3928
3929
|
const regionPages = new Map([...ocrRegions].filter(([p]) => options?.ocr !== "force" && !isImageBased && !pageQuality.find((q) => q.page === p)?.needsOcr));
|
|
3929
|
-
const { builtinOcrConfig } = await import("./pdf-ocr-
|
|
3930
|
+
const { builtinOcrConfig } = await import("./pdf-ocr-DLE7J6MD.js");
|
|
3930
3931
|
const ocrPageBlocks = await runPdfOcr(ocrBuffer, targets, mode, warnings, options?.onProgress, options?.tables !== false, vectorPageOps, regionPages, builtinOcrConfig(options), ocrLinesOut);
|
|
3931
3932
|
for (const obs of ocrPageBlocks.values()) stripScriptTags({ blocks: obs });
|
|
3932
3933
|
if (ocrPageBlocks.size > 0) {
|
|
@@ -4163,4 +4164,4 @@ export {
|
|
|
4163
4164
|
parsePdfDocument,
|
|
4164
4165
|
removeHeaderFooterBlocks
|
|
4165
4166
|
};
|
|
4166
|
-
//# sourceMappingURL=parser-
|
|
4167
|
+
//# sourceMappingURL=parser-OGWIHRB7.js.map
|