kordoc 4.25.19 → 4.25.21
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/README.md +3 -3
- package/dist/{chunk-CZFY7JGT.js → chunk-24LB25LZ.js} +2 -2
- package/dist/{chunk-HKO6HWYM.js → chunk-3AYNFK6J.js} +2 -2
- package/dist/{chunk-74QGGXVH.js → chunk-5MDRUEHP.js} +14 -4
- package/dist/chunk-5MDRUEHP.js.map +1 -0
- package/dist/{chunk-PCOKS4ZE.js → chunk-5PEMTYTM.js} +37 -10
- package/dist/chunk-5PEMTYTM.js.map +7 -0
- package/dist/{chunk-LQGZ3PBZ.js → chunk-5ULHNZ3P.js} +3 -3
- package/dist/{chunk-EFBIMFVT.js → chunk-6I3X54AQ.js} +2 -2
- package/dist/{chunk-HH5IOQTP.js → chunk-6MCJHRSM.js} +2 -2
- package/dist/{chunk-NCO7BAS7.js → chunk-COJYQKGH.js} +6 -4
- package/dist/{chunk-NCO7BAS7.js.map → chunk-COJYQKGH.js.map} +2 -2
- package/dist/{chunk-TPPL3OVT.js → chunk-DHXKCDAU.js} +50 -6
- package/dist/chunk-DHXKCDAU.js.map +7 -0
- package/dist/{chunk-UTLVAA7X.js → chunk-DZOA5N5W.js} +2 -2
- package/dist/{chunk-HCHWG3HO.js → chunk-FDSFXE2L.js} +3 -3
- package/dist/{chunk-ZCDTZZ3C.js → chunk-GJORKM42.js} +2 -2
- package/dist/{chunk-VOK3R4WW.js → chunk-HQILGS2O.js} +2 -2
- package/dist/{chunk-FCWPQZYU.js → chunk-KW4JO5CV.js} +3 -3
- package/dist/{chunk-EI4PBZW2.js → chunk-LSUTK3DH.js} +2 -2
- package/dist/{chunk-FZ7XCPHO.js → chunk-MWCJYIJC.js} +20 -20
- package/dist/{chunk-6YQ2LARO.js → chunk-PFNZQ3XI.js} +2 -2
- package/dist/{chunk-XCD6WLTU.js → chunk-PVOLFVXE.js} +3 -3
- package/dist/{chunk-FNMJ2DK4.js → chunk-QNJ2LMUO.js} +8 -8
- package/dist/{chunk-VVR2ZSFZ.js → chunk-QOCUFTT4.js} +4 -4
- package/dist/{chunk-3DX4GW75.js → chunk-S553BW45.js} +6 -6
- package/dist/{chunk-IUD535LX.js → chunk-TI6S3KZF.js} +2 -2
- package/dist/{chunk-RECWLRRB.js → chunk-TYJSNW4Z.js} +55 -46
- package/dist/chunk-TYJSNW4Z.js.map +7 -0
- package/dist/{chunk-LEWJRIVZ.js → chunk-W5AHXAUP.js} +6 -6
- package/dist/{chunk-TW6WYJD6.js → chunk-XUBBFY3H.js} +6 -6
- package/dist/{chunk-LXPFTU3C.js → chunk-ZCMMU34Z.js} +2 -2
- package/dist/{chunk-IVNUMREN.js → chunk-ZO4P735U.js} +2 -2
- package/dist/chunks-XX7RHVQF.js +10 -0
- package/dist/cli.js +38 -38
- package/dist/{formula-U2RXOOE4.js → formula-HMKT4BZL.js} +4 -4
- package/dist/{generator-K6I6IYOH.js → generator-HOY4SZ26.js} +7 -7
- package/dist/{hancom-ARDTLWD5.js → hancom-QWJBWOOE.js} +2 -2
- package/dist/{image-ocr-RDWOEEQ2.js → image-ocr-P5AIZNT3.js} +12 -12
- package/dist/index.cjs +211 -89
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -22
- package/dist/mcp.js +34 -34
- package/dist/memo-Q7772VJD.js +15 -0
- package/dist/{model-bundle-A6C5PVSS.js → model-bundle-5CXCIZHZ.js} +5 -5
- package/dist/{models-KTY3IZU2.js → models-PS4L7NLP.js} +5 -5
- package/dist/{page-images-PVXQYU7Z.js → page-images-QW7IUTUB.js} +3 -3
- package/dist/{parse-worker-v2-E4T4427H.js → parse-worker-v2-PRH6KVKP.js} +24 -24
- package/dist/{parser-3F66AQAA.js → parser-OQIR5ZMI.js} +97 -58
- package/dist/{parser-3F66AQAA.js.map → parser-OQIR5ZMI.js.map} +2 -2
- package/dist/{pdf-ocr-C6DYPI2Q.js → pdf-ocr-ZH4JAUTR.js} +9 -9
- package/dist/{profile-io-LZ5YPCIW.js → profile-io-JFRAM2VE.js} +3 -3
- package/dist/{rasterize-K2VVPUGE.js → rasterize-JJOMUTYX.js} +3 -3
- package/dist/{redact-doc-A3M2YEXE.js → redact-doc-A7TW4MNF.js} +23 -23
- package/dist/{render-HS2YWRJE.js → render-VAOMAQV2.js} +11 -11
- package/dist/{rewrite-fallback-3YVRWPRM.js → rewrite-fallback-7PR7V3AZ.js} +13 -13
- package/dist/seal-RZZNRJFL.js +14 -0
- package/dist/{setup-YK2SCVLP.js → setup-6DXZJQCT.js} +3 -3
- package/dist/to-hwpx-A56R6H27.js +20 -0
- package/dist/visual-25RY7EFI.js +42 -0
- package/dist/{watch-CQX4TSVQ.js → watch-7W6CKGX7.js} +23 -23
- package/package.json +1 -1
- package/dist/chunk-74QGGXVH.js.map +0 -1
- package/dist/chunk-PCOKS4ZE.js.map +0 -7
- package/dist/chunk-RECWLRRB.js.map +0 -7
- package/dist/chunk-TPPL3OVT.js.map +0 -7
- package/dist/chunks-IDWF6IOZ.js +0 -10
- package/dist/memo-RND3VIEW.js +0 -15
- package/dist/seal-DYLPFEC6.js +0 -14
- package/dist/to-hwpx-XNBAWVNY.js +0 -20
- package/dist/visual-SQORG4IC.js +0 -42
- /package/dist/{chunk-CZFY7JGT.js.map → chunk-24LB25LZ.js.map} +0 -0
- /package/dist/{chunk-HKO6HWYM.js.map → chunk-3AYNFK6J.js.map} +0 -0
- /package/dist/{chunk-LQGZ3PBZ.js.map → chunk-5ULHNZ3P.js.map} +0 -0
- /package/dist/{chunk-EFBIMFVT.js.map → chunk-6I3X54AQ.js.map} +0 -0
- /package/dist/{chunk-HH5IOQTP.js.map → chunk-6MCJHRSM.js.map} +0 -0
- /package/dist/{chunk-UTLVAA7X.js.map → chunk-DZOA5N5W.js.map} +0 -0
- /package/dist/{chunk-HCHWG3HO.js.map → chunk-FDSFXE2L.js.map} +0 -0
- /package/dist/{chunk-ZCDTZZ3C.js.map → chunk-GJORKM42.js.map} +0 -0
- /package/dist/{chunk-VOK3R4WW.js.map → chunk-HQILGS2O.js.map} +0 -0
- /package/dist/{chunk-FCWPQZYU.js.map → chunk-KW4JO5CV.js.map} +0 -0
- /package/dist/{chunk-EI4PBZW2.js.map → chunk-LSUTK3DH.js.map} +0 -0
- /package/dist/{chunk-FZ7XCPHO.js.map → chunk-MWCJYIJC.js.map} +0 -0
- /package/dist/{chunk-6YQ2LARO.js.map → chunk-PFNZQ3XI.js.map} +0 -0
- /package/dist/{chunk-XCD6WLTU.js.map → chunk-PVOLFVXE.js.map} +0 -0
- /package/dist/{chunk-FNMJ2DK4.js.map → chunk-QNJ2LMUO.js.map} +0 -0
- /package/dist/{chunk-VVR2ZSFZ.js.map → chunk-QOCUFTT4.js.map} +0 -0
- /package/dist/{chunk-3DX4GW75.js.map → chunk-S553BW45.js.map} +0 -0
- /package/dist/{chunk-IUD535LX.js.map → chunk-TI6S3KZF.js.map} +0 -0
- /package/dist/{chunk-LEWJRIVZ.js.map → chunk-W5AHXAUP.js.map} +0 -0
- /package/dist/{chunk-TW6WYJD6.js.map → chunk-XUBBFY3H.js.map} +0 -0
- /package/dist/{chunk-LXPFTU3C.js.map → chunk-ZCMMU34Z.js.map} +0 -0
- /package/dist/{chunk-IVNUMREN.js.map → chunk-ZO4P735U.js.map} +0 -0
- /package/dist/{chunks-IDWF6IOZ.js.map → chunks-XX7RHVQF.js.map} +0 -0
- /package/dist/{formula-U2RXOOE4.js.map → formula-HMKT4BZL.js.map} +0 -0
- /package/dist/{generator-K6I6IYOH.js.map → generator-HOY4SZ26.js.map} +0 -0
- /package/dist/{hancom-ARDTLWD5.js.map → hancom-QWJBWOOE.js.map} +0 -0
- /package/dist/{image-ocr-RDWOEEQ2.js.map → image-ocr-P5AIZNT3.js.map} +0 -0
- /package/dist/{memo-RND3VIEW.js.map → memo-Q7772VJD.js.map} +0 -0
- /package/dist/{model-bundle-A6C5PVSS.js.map → model-bundle-5CXCIZHZ.js.map} +0 -0
- /package/dist/{models-KTY3IZU2.js.map → models-PS4L7NLP.js.map} +0 -0
- /package/dist/{page-images-PVXQYU7Z.js.map → page-images-QW7IUTUB.js.map} +0 -0
- /package/dist/{parse-worker-v2-E4T4427H.js.map → parse-worker-v2-PRH6KVKP.js.map} +0 -0
- /package/dist/{pdf-ocr-C6DYPI2Q.js.map → pdf-ocr-ZH4JAUTR.js.map} +0 -0
- /package/dist/{profile-io-LZ5YPCIW.js.map → profile-io-JFRAM2VE.js.map} +0 -0
- /package/dist/{rasterize-K2VVPUGE.js.map → rasterize-JJOMUTYX.js.map} +0 -0
- /package/dist/{redact-doc-A3M2YEXE.js.map → redact-doc-A7TW4MNF.js.map} +0 -0
- /package/dist/{render-HS2YWRJE.js.map → render-VAOMAQV2.js.map} +0 -0
- /package/dist/{rewrite-fallback-3YVRWPRM.js.map → rewrite-fallback-7PR7V3AZ.js.map} +0 -0
- /package/dist/{seal-DYLPFEC6.js.map → seal-RZZNRJFL.js.map} +0 -0
- /package/dist/{setup-YK2SCVLP.js.map → setup-6DXZJQCT.js.map} +0 -0
- /package/dist/{to-hwpx-XNBAWVNY.js.map → to-hwpx-A56R6H27.js.map} +0 -0
- /package/dist/{visual-SQORG4IC.js.map → visual-25RY7EFI.js.map} +0 -0
- /package/dist/{watch-CQX4TSVQ.js.map → watch-7W6CKGX7.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assignTableIds,
|
|
3
3
|
blocksToMarkdown
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3AYNFK6J.js";
|
|
5
5
|
|
|
6
6
|
// src/chunks.ts
|
|
7
7
|
var LIST_MARKER_RE = /^(?:[□■◇◆○◎●◦ㅇ•▪▸▶※-]|\d{1,3}[.)]|[가나다라마바사아자차카타파하][.)]|\([가나다라마바사아자차카타파하0-9]{1,3}\)|[①-⑳㉮-㉻㈎-㈛])\s/;
|
|
@@ -81,4 +81,4 @@ function blocksToChunks(blocks, options) {
|
|
|
81
81
|
export {
|
|
82
82
|
blocksToChunks
|
|
83
83
|
};
|
|
84
|
-
//# sourceMappingURL=chunk-
|
|
84
|
+
//# sourceMappingURL=chunk-DZOA5N5W.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MAX_PIXELS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5PEMTYTM.js";
|
|
4
4
|
import {
|
|
5
5
|
KordocError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-24LB25LZ.js";
|
|
7
7
|
|
|
8
8
|
// src/image/heic.ts
|
|
9
9
|
var MAX_HEIC_PIXELS = 16383 * 16383;
|
|
@@ -103,4 +103,4 @@ export {
|
|
|
103
103
|
dcxPages,
|
|
104
104
|
pcxToRgba
|
|
105
105
|
};
|
|
106
|
-
//# sourceMappingURL=chunk-
|
|
106
|
+
//# sourceMappingURL=chunk-FDSFXE2L.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
visibleText
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3AYNFK6J.js";
|
|
4
4
|
|
|
5
5
|
// src/script-tags.ts
|
|
6
6
|
var LITERAL_TAG = /<(?=\/?(?:u|sup|sub)>)/g;
|
|
@@ -335,4 +335,4 @@ export {
|
|
|
335
335
|
HEADING_RATIO_H2,
|
|
336
336
|
HEADING_RATIO_H3
|
|
337
337
|
};
|
|
338
|
-
//# sourceMappingURL=chunk-
|
|
338
|
+
//# sourceMappingURL=chunk-GJORKM42.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
KordocError,
|
|
3
3
|
OPTIONAL_DEP_INSTALL_HINT
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-24LB25LZ.js";
|
|
5
5
|
|
|
6
6
|
// src/render/rasterize.ts
|
|
7
7
|
var densityExponent = null;
|
|
@@ -87,4 +87,4 @@ export {
|
|
|
87
87
|
rasterizeSvg,
|
|
88
88
|
rasterizePageSvg
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-HQILGS2O.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parse
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MWCJYIJC.js";
|
|
4
4
|
import {
|
|
5
5
|
classifyError,
|
|
6
6
|
sanitizeError,
|
|
7
7
|
toArrayBuffer
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-24LB25LZ.js";
|
|
9
9
|
|
|
10
10
|
// src/cli/worker-parse.ts
|
|
11
11
|
import { readFile, stat } from "fs/promises";
|
|
@@ -25,4 +25,4 @@ async function parseWorkerFile(absPath, options) {
|
|
|
25
25
|
export {
|
|
26
26
|
parseWorkerFile
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-KW4JO5CV.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-WIIPAV2D.js";
|
|
4
4
|
import {
|
|
5
5
|
KordocError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-24LB25LZ.js";
|
|
7
7
|
|
|
8
8
|
// src/hwp5/record.ts
|
|
9
9
|
import { inflateRawSync, inflateSync } from "zlib";
|
|
@@ -403,4 +403,4 @@ export {
|
|
|
403
403
|
appendParaText,
|
|
404
404
|
extractEquationText
|
|
405
405
|
};
|
|
406
|
-
//# sourceMappingURL=chunk-
|
|
406
|
+
//# sourceMappingURL=chunk-LSUTK3DH.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
extractRenderedRegions,
|
|
3
3
|
renderDocumentToScene
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QNJ2LMUO.js";
|
|
5
5
|
import {
|
|
6
6
|
EV,
|
|
7
7
|
blocksToPages,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
restoreUnmappedGlyphs,
|
|
18
18
|
spaceMappedDots,
|
|
19
19
|
wmfBitmap
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-PVOLFVXE.js";
|
|
21
21
|
import {
|
|
22
22
|
applyCellEdit,
|
|
23
23
|
buildOrigUnits,
|
|
@@ -26,17 +26,16 @@ import {
|
|
|
26
26
|
extractCellTokens,
|
|
27
27
|
fillClickHereInXml,
|
|
28
28
|
parseHwpxDocument,
|
|
29
|
-
removeNoteMarks,
|
|
30
29
|
resolveParagraphMappings,
|
|
31
30
|
resolveSectionEntryNames,
|
|
32
31
|
stripCellTokens
|
|
33
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-TYJSNW4Z.js";
|
|
34
33
|
import {
|
|
35
34
|
dcxPages,
|
|
36
35
|
hasLibheif,
|
|
37
36
|
heicToRgba,
|
|
38
37
|
pcxToRgba
|
|
39
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-FDSFXE2L.js";
|
|
40
39
|
import {
|
|
41
40
|
WEBP_OPTIONS,
|
|
42
41
|
flushHeifCache,
|
|
@@ -63,16 +62,17 @@ import {
|
|
|
63
62
|
pickBodySection,
|
|
64
63
|
pickScheme,
|
|
65
64
|
removeElements,
|
|
65
|
+
removeNoteMarks,
|
|
66
66
|
resolveGongmun,
|
|
67
67
|
splitMarkdownUnits,
|
|
68
68
|
stripHeadMarker,
|
|
69
69
|
summarize,
|
|
70
70
|
topLevelParagraphs,
|
|
71
71
|
usesV5Engine
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-DHXKCDAU.js";
|
|
73
73
|
import {
|
|
74
74
|
patchZipEntries
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-6MCJHRSM.js";
|
|
76
76
|
import {
|
|
77
77
|
ANNOTATION_BLANK_RE,
|
|
78
78
|
ValueCursor,
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
rawTextContent,
|
|
112
112
|
readZipEntry,
|
|
113
113
|
warnInto
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-6I3X54AQ.js";
|
|
115
115
|
import {
|
|
116
116
|
comResultToParseResult,
|
|
117
117
|
extractTextViaCom,
|
|
@@ -128,14 +128,14 @@ import {
|
|
|
128
128
|
memosMarkdown,
|
|
129
129
|
parseHwp5Document,
|
|
130
130
|
resolveImageBlocks
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-XUBBFY3H.js";
|
|
132
132
|
import {
|
|
133
133
|
MAX_PIXELS,
|
|
134
134
|
bmpToPng,
|
|
135
135
|
bmpToRgba,
|
|
136
136
|
encodePng,
|
|
137
137
|
inlineImagesIntoMarkdown
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-5PEMTYTM.js";
|
|
139
139
|
import {
|
|
140
140
|
hwpEquationToLatex
|
|
141
141
|
} from "./chunk-AASNBZDZ.js";
|
|
@@ -166,7 +166,7 @@ import {
|
|
|
166
166
|
stripScriptTags,
|
|
167
167
|
tidyScriptTags,
|
|
168
168
|
wrapScript
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-GJORKM42.js";
|
|
170
170
|
import {
|
|
171
171
|
MAX_COLS,
|
|
172
172
|
MAX_ROWS,
|
|
@@ -177,7 +177,7 @@ import {
|
|
|
177
177
|
flattenLayoutTables,
|
|
178
178
|
hasStructuredCellContent,
|
|
179
179
|
sanitizeText
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-3AYNFK6J.js";
|
|
181
181
|
import {
|
|
182
182
|
hangulAmount,
|
|
183
183
|
mapPuaText
|
|
@@ -188,7 +188,7 @@ import {
|
|
|
188
188
|
import {
|
|
189
189
|
ensureModelsIn,
|
|
190
190
|
getModelsDir
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-ZO4P735U.js";
|
|
192
192
|
import {
|
|
193
193
|
BARE_URL,
|
|
194
194
|
KordocError,
|
|
@@ -206,7 +206,7 @@ import {
|
|
|
206
206
|
toArrayBuffer,
|
|
207
207
|
unescapeHtml,
|
|
208
208
|
unzipLimitBytes
|
|
209
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-24LB25LZ.js";
|
|
210
210
|
|
|
211
211
|
// src/table/visual.ts
|
|
212
212
|
import { readFile as readFile4 } from "node:fs/promises";
|
|
@@ -16984,7 +16984,7 @@ var MIN_SIDE = 24;
|
|
|
16984
16984
|
async function ocrEmbeddedImages(blocks, options, warnings) {
|
|
16985
16985
|
const ocr = options?.ocr;
|
|
16986
16986
|
if (ocr !== true && ocr !== "force" && typeof ocr !== "function") return false;
|
|
16987
|
-
const { parseImageDocument } = await import("./image-ocr-
|
|
16987
|
+
const { parseImageDocument } = await import("./image-ocr-P5AIZNT3.js");
|
|
16988
16988
|
let inserted = false, unreadable = 0;
|
|
16989
16989
|
let failed = null;
|
|
16990
16990
|
const walk = async (list, depth) => {
|
|
@@ -21342,8 +21342,8 @@ var MAX_MULTIPAGE_PIXELS = 1e9;
|
|
|
21342
21342
|
var MIN_PAGE_PIXELS = 1e6;
|
|
21343
21343
|
async function parseImage(buffer, options) {
|
|
21344
21344
|
try {
|
|
21345
|
-
const { parseImageDocument, imagePageCount, imagePage, imagePagePixels, decodeToRgba } = await import("./image-ocr-
|
|
21346
|
-
const pageRasters = options?.pageImages ? new (await import("./page-images-
|
|
21345
|
+
const { parseImageDocument, imagePageCount, imagePage, imagePagePixels, decodeToRgba } = await import("./image-ocr-P5AIZNT3.js");
|
|
21346
|
+
const pageRasters = options?.pageImages ? new (await import("./page-images-QW7IUTUB.js")).PageImageSink(options.pageImages) : null;
|
|
21347
21347
|
const pageCount = await imagePageCount(buffer);
|
|
21348
21348
|
const wanted = pageCount > 1 && options?.pages ? parsePageRange(options.pages, pageCount) : null;
|
|
21349
21349
|
const blocks = [], warnings = [], lines = [], images = [];
|
|
@@ -21450,7 +21450,7 @@ async function parseHwp(buffer, options) {
|
|
|
21450
21450
|
async function parsePdf(buffer, options) {
|
|
21451
21451
|
let parsePdfDocument;
|
|
21452
21452
|
try {
|
|
21453
|
-
const mod = await import("./parser-
|
|
21453
|
+
const mod = await import("./parser-OQIR5ZMI.js");
|
|
21454
21454
|
parsePdfDocument = mod.parsePdfDocument;
|
|
21455
21455
|
} catch (err) {
|
|
21456
21456
|
return { success: false, fileType: "pdf", error: sanitizeError(err), code: classifyError(err) };
|
|
@@ -21527,7 +21527,7 @@ async function fillForm(input, values, outputFormat = "markdown") {
|
|
|
21527
21527
|
throw new Error(`hwpx-preserve 포맷은 HWPX·HWP 5.x 입력만 지원합니다 (감지된 포맷: ${zipFormat})`);
|
|
21528
21528
|
}
|
|
21529
21529
|
} else if (format2 === "hwp" && detectOle2Format(buffer) === "hwp") {
|
|
21530
|
-
const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-
|
|
21530
|
+
const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-A56R6H27.js");
|
|
21531
21531
|
const hwpx = await hwpToHwpx2(new Uint8Array(buffer));
|
|
21532
21532
|
buffer = hwpx.buffer.slice(hwpx.byteOffset, hwpx.byteOffset + hwpx.byteLength);
|
|
21533
21533
|
} else {
|
|
@@ -21683,4 +21683,4 @@ export {
|
|
|
21683
21683
|
parseHwpml,
|
|
21684
21684
|
fillForm
|
|
21685
21685
|
};
|
|
21686
|
-
//# sourceMappingURL=chunk-
|
|
21686
|
+
//# sourceMappingURL=chunk-MWCJYIJC.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
KordocError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-24LB25LZ.js";
|
|
4
4
|
|
|
5
5
|
// src/hwpx/profile-io.ts
|
|
6
6
|
import { z } from "zod";
|
|
@@ -88,4 +88,4 @@ export {
|
|
|
88
88
|
formatProfileSchema,
|
|
89
89
|
parseFormatProfileJson
|
|
90
90
|
};
|
|
91
|
-
//# sourceMappingURL=chunk-
|
|
91
|
+
//# sourceMappingURL=chunk-PFNZQ3XI.js.map
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
MAX_PIXELS,
|
|
7
7
|
bmpToRgba
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5PEMTYTM.js";
|
|
9
9
|
import {
|
|
10
10
|
OPS,
|
|
11
11
|
normalizeUnicode
|
|
12
12
|
} from "./chunk-DUAZNEQ6.js";
|
|
13
13
|
import {
|
|
14
14
|
blocksToMarkdown
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3AYNFK6J.js";
|
|
16
16
|
import {
|
|
17
17
|
mapPuaText,
|
|
18
18
|
pairedNumber
|
|
@@ -2201,4 +2201,4 @@ export {
|
|
|
2201
2201
|
restoreNamedGlyphs,
|
|
2202
2202
|
restoreUnmappedCidSpaces
|
|
2203
2203
|
};
|
|
2204
|
-
//# sourceMappingURL=chunk-
|
|
2204
|
+
//# sourceMappingURL=chunk-PVOLFVXE.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadSharp,
|
|
3
3
|
rasterizePageSvg
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HQILGS2O.js";
|
|
5
5
|
import {
|
|
6
6
|
assemblePageSvgs,
|
|
7
7
|
escapeXml,
|
|
8
8
|
renderHwpxPages,
|
|
9
9
|
renderSectionRoots
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5ULHNZ3P.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_PARA_GEOM,
|
|
13
13
|
createXmlParser,
|
|
14
14
|
hwpFaceToCssStack
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6I3X54AQ.js";
|
|
16
16
|
import {
|
|
17
17
|
detectImageMime,
|
|
18
18
|
indexHwp5Tables,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
readHwp5DocInfoRecords,
|
|
22
22
|
readHwp5SectionRecords,
|
|
23
23
|
readHwp5SectionStreams
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-XUBBFY3H.js";
|
|
25
25
|
import {
|
|
26
26
|
TAG_CHAR_SHAPE,
|
|
27
27
|
TAG_CTRL_HEADER,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
TAG_TABLE,
|
|
39
39
|
isExtendedOnlyCtrlChar,
|
|
40
40
|
parseDocInfo
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-LSUTK3DH.js";
|
|
42
42
|
import {
|
|
43
43
|
parsePageRange
|
|
44
44
|
} from "./chunk-Y56TLZ42.js";
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
} from "./chunk-5TS72XT2.js";
|
|
49
49
|
import {
|
|
50
50
|
blocksToMarkdown
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-3AYNFK6J.js";
|
|
52
52
|
import {
|
|
53
53
|
mapPuaText
|
|
54
54
|
} from "./chunk-QXQX4AN7.js";
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
KordocError,
|
|
57
57
|
escapeHtml,
|
|
58
58
|
toArrayBuffer
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-24LB25LZ.js";
|
|
60
60
|
|
|
61
61
|
// src/render/hwp5-scene.ts
|
|
62
62
|
var TAG_BORDER_FILL = 20;
|
|
@@ -985,4 +985,4 @@ export {
|
|
|
985
985
|
cropRect,
|
|
986
986
|
extractRenderedRegions
|
|
987
987
|
};
|
|
988
|
-
//# sourceMappingURL=chunk-
|
|
988
|
+
//# sourceMappingURL=chunk-QNJ2LMUO.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
patchZipEntries
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6MCJHRSM.js";
|
|
4
4
|
import {
|
|
5
5
|
applySplices,
|
|
6
6
|
scanSectionXml
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
parseRenderStyles,
|
|
10
10
|
readZipEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6I3X54AQ.js";
|
|
12
12
|
import {
|
|
13
13
|
KordocError,
|
|
14
14
|
precheckZipSize
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-24LB25LZ.js";
|
|
16
16
|
|
|
17
17
|
// src/form/seal.ts
|
|
18
18
|
import JSZip from "jszip";
|
|
@@ -318,4 +318,4 @@ export {
|
|
|
318
318
|
collectSites,
|
|
319
319
|
placeSealHwpx
|
|
320
320
|
};
|
|
321
|
-
//# sourceMappingURL=chunk-
|
|
321
|
+
//# sourceMappingURL=chunk-QOCUFTT4.js.map
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
readHwp5DocInfoRecords,
|
|
5
5
|
readHwp5SectionRecords,
|
|
6
6
|
readHwp5SectionStreams
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XUBBFY3H.js";
|
|
8
8
|
import {
|
|
9
9
|
FLAG_TRACK_CHANGES,
|
|
10
10
|
decompressStream,
|
|
11
11
|
fileTimeText,
|
|
12
12
|
readRecords
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LSUTK3DH.js";
|
|
14
14
|
import {
|
|
15
15
|
composeDigits
|
|
16
16
|
} from "./chunk-QXQX4AN7.js";
|
|
17
17
|
import {
|
|
18
18
|
KordocError,
|
|
19
19
|
VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-24LB25LZ.js";
|
|
21
21
|
|
|
22
22
|
// src/hwp5/to-hwpx/index.ts
|
|
23
23
|
import JSZip from "jszip";
|
|
@@ -2275,7 +2275,7 @@ async function convertToHwpx(input, options) {
|
|
|
2275
2275
|
if (format !== "hwp" && format !== "hwp3" && format !== "hwpml") throw new KordocError(`HWP 문서가 아닙니다 (${format})`);
|
|
2276
2276
|
const engine = options?.engine ?? "kordoc";
|
|
2277
2277
|
if (engine !== "kordoc") {
|
|
2278
|
-
const { hancomAvailable, hwpToHwpxViaHancom } = await import("./hancom-
|
|
2278
|
+
const { hancomAvailable, hwpToHwpxViaHancom } = await import("./hancom-QWJBWOOE.js");
|
|
2279
2279
|
if (engine === "hancom" || !options?.password && hancomAvailable()) {
|
|
2280
2280
|
if (options?.password) throw new KordocError('한/글 저장 변환은 열기 암호를 받지 않습니다 — engine "kordoc" 으로 바꾸세요');
|
|
2281
2281
|
return { data: hwpToHwpxViaHancom(bytes, format === "hwpml" ? "hml" : "hwp"), mode: "preserve", engine: "hancom", warnings: [] };
|
|
@@ -2283,7 +2283,7 @@ async function convertToHwpx(input, options) {
|
|
|
2283
2283
|
}
|
|
2284
2284
|
if (format === "hwp") return { data: await hwpToHwpx(bytes, options), mode: "preserve", engine: "kordoc", warnings: [] };
|
|
2285
2285
|
const { parse } = await import("./index.js");
|
|
2286
|
-
const { markdownToHwpx } = await import("./generator-
|
|
2286
|
+
const { markdownToHwpx } = await import("./generator-HOY4SZ26.js");
|
|
2287
2287
|
const parsed = await parse(ab, { password: options?.password });
|
|
2288
2288
|
if (!parsed.success) throw new KordocError(parsed.error ?? "문서를 읽지 못했습니다");
|
|
2289
2289
|
return {
|
|
@@ -2298,4 +2298,4 @@ export {
|
|
|
2298
2298
|
hwpToHwpx,
|
|
2299
2299
|
convertToHwpx
|
|
2300
2300
|
};
|
|
2301
|
-
//# sourceMappingURL=chunk-
|
|
2301
|
+
//# sourceMappingURL=chunk-S553BW45.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
KordocError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-24LB25LZ.js";
|
|
4
4
|
|
|
5
5
|
// src/shared/offline.ts
|
|
6
6
|
import { realpathSync } from "fs";
|
|
@@ -48,4 +48,4 @@ export {
|
|
|
48
48
|
getAccessRoot,
|
|
49
49
|
assertWithinRoot
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-TI6S3KZF.js.map
|