kordoc 4.18.0 → 4.18.2
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 +7 -6
- package/dist/{-DHSHP3AB.js → -I3CP33G4.js} +13 -11
- package/dist/{chunk-JUU2M5WI.js → chunk-4B2EXELH.js} +2 -2
- package/dist/{chunk-NYF7AGOX.js → chunk-6OKBTY72.js} +2 -2
- package/dist/{chunk-JU4DNVBP.js → chunk-B2E6C2LH.js} +27 -11
- package/dist/chunk-B2E6C2LH.js.map +1 -0
- package/dist/{chunk-UA7TQ37A.js → chunk-BL7KRE6X.js} +3 -3
- package/dist/{chunk-PGZX5JWZ.js → chunk-C2CVOC5K.js} +4 -4
- package/dist/{chunk-WSYTO525.js → chunk-CKUIFTXJ.js} +2 -2
- package/dist/{chunk-FPU7WPQM.js → chunk-F5HING4Y.js} +25 -9
- package/dist/chunk-F5HING4Y.js.map +1 -0
- package/dist/{chunk-VVJCQKXV.js → chunk-GM7XIZF2.js} +2 -2
- package/dist/chunk-GS7T56RP.cjs.map +1 -1
- package/dist/{chunk-DSF64VZN.js → chunk-IA3UKDHA.js} +4 -4
- package/dist/chunk-IA3UKDHA.js.map +1 -0
- package/dist/chunk-J55UQC5H.cjs.map +1 -1
- package/dist/{chunk-ELTPM4HM.cjs → chunk-KDMAYOWH.cjs} +158 -43
- package/dist/chunk-KDMAYOWH.cjs.map +1 -0
- package/dist/{chunk-Q6SKAFWN.js → chunk-L5RLJPI3.js} +3 -3
- package/dist/{chunk-QBTYETIU.js → chunk-L64QRUMK.js} +202 -7
- package/dist/chunk-L64QRUMK.js.map +1 -0
- package/dist/{chunk-LLD4EY2F.js → chunk-LACO375L.js} +2 -2
- package/dist/{chunk-DT57TAEL.js → chunk-LSOD2A6N.js} +2 -2
- package/dist/{chunk-OLOMR452.js → chunk-M4P7YS2N.js} +395 -58
- package/dist/chunk-M4P7YS2N.js.map +1 -0
- package/dist/{chunk-5JFKSCTE.js → chunk-N5DQFA7L.js} +2 -2
- package/dist/{chunk-DTPALXTW.js → chunk-NZM2SSI4.js} +2 -2
- package/dist/{chunk-GNBQXQDK.js → chunk-O2DI4GHD.js} +2 -2
- package/dist/{chunk-32FQLCUJ.js → chunk-OBILAVWC.js} +2 -2
- package/dist/{chunk-PQZ4BDXT.js → chunk-OGAYGUJF.js} +122 -87
- package/dist/chunk-OGAYGUJF.js.map +1 -0
- package/dist/{chunk-2QBZMCRT.cjs → chunk-OI5ZSSIC.cjs} +12 -12
- package/dist/chunk-OI5ZSSIC.cjs.map +1 -0
- package/dist/{chunk-F4ESJBGU.cjs → chunk-QGFZU3JE.cjs} +31 -15
- package/dist/chunk-QGFZU3JE.cjs.map +1 -0
- package/dist/{chunk-WDJJ77HP.js → chunk-QP7IXF7R.js} +2 -2
- package/dist/{chunk-NKCKN4WW.js → chunk-T4MXCSBP.js} +137 -27
- package/dist/chunk-T4MXCSBP.js.map +1 -0
- package/dist/{chunk-CKMGVW6S.cjs → chunk-UZGZRGYM.cjs} +2 -2
- package/dist/chunk-UZGZRGYM.cjs.map +1 -0
- package/dist/{chunk-NIPT5FJO.js → chunk-VSY5PAJ5.js} +2 -2
- package/dist/{chunk-GP7BPJTU.cjs → chunk-W2YYBPW5.cjs} +3 -3
- package/dist/chunk-W2YYBPW5.cjs.map +1 -0
- package/dist/{chunk-RLVALQZI.cjs → chunk-YNLW6EGU.cjs} +3 -3
- package/dist/chunk-YNLW6EGU.cjs.map +1 -0
- package/dist/chunks-IFFRC5IQ.js +10 -0
- package/dist/cli.js +26 -26
- package/dist/{formula-6Q2SBBQ5.js → formula-AQZODKZF.js} +3 -3
- package/dist/{formula-M6JJBJ3O.js → formula-E3N7KDDG.js} +4 -4
- package/dist/{formula-43KHT3B3.cjs → formula-VY4ITOMN.cjs} +9 -9
- package/dist/formula-VY4ITOMN.cjs.map +1 -0
- package/dist/{image-ocr-22XQ4TMN.cjs → image-ocr-6LYEBMVR.cjs} +15 -15
- package/dist/image-ocr-6LYEBMVR.cjs.map +1 -0
- package/dist/{image-ocr-2FIFDA7I.js → image-ocr-IMYXOHHV.js} +6 -6
- package/dist/{image-ocr-TH2E6E3E.js → image-ocr-LN3GSQPW.js} +9 -9
- package/dist/index.cjs +1042 -603
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +529 -90
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +26 -27
- package/dist/mcp.js.map +1 -1
- package/dist/{model-bundle-MLEDO25V.js → model-bundle-IHKNDLOT.js} +5 -5
- package/dist/{models-MYB5M4XC.js → models-YXITRAMR.js} +5 -5
- package/dist/page-range-QHHFTL7X.cjs.map +1 -1
- package/dist/{parser-L77S4RZC.cjs → parser-7KECZTTP.cjs} +176 -228
- package/dist/parser-7KECZTTP.cjs.map +1 -0
- package/dist/{parser-BKTX4GVM.js → parser-KB4BYQBZ.js} +14 -66
- package/dist/parser-KB4BYQBZ.js.map +1 -0
- package/dist/{parser-WW7NWTUM.js → parser-M3T2EWUN.js} +11 -63
- package/dist/parser-M3T2EWUN.js.map +1 -0
- package/dist/pdf-ocr-4S2OAHUX.js +15 -0
- package/dist/pdf-ocr-IGYCZ7G2.cjs +16 -0
- package/dist/pdf-ocr-IGYCZ7G2.cjs.map +1 -0
- package/dist/pdf-ocr-YEBFWU2K.js +19 -0
- package/dist/{profile-io-XZPNRT4U.js → profile-io-GQWQR7YQ.js} +3 -3
- package/dist/{rasterize-4EWPBCOJ.js → rasterize-Y6TVFQ3M.js} +3 -3
- package/dist/{redact-doc-YYCWBWGL.js → redact-doc-TRPZ3HNW.js} +11 -11
- package/dist/{render-JNMBK4WF.js → render-GHT5HKBO.js} +7 -7
- package/dist/seal-3YTXSABW.js +10 -0
- package/dist/{setup-NM5ICZ4U.js → setup-AGSCEHDB.js} +3 -3
- package/dist/visual-R3E35Q2K.js +20 -0
- package/dist/{watch-PTTCHO32.js → watch-ALSEW4GB.js} +13 -13
- package/dist/watch-ALSEW4GB.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-2QBZMCRT.cjs.map +0 -1
- package/dist/chunk-CKMGVW6S.cjs.map +0 -1
- package/dist/chunk-DSF64VZN.js.map +0 -1
- package/dist/chunk-ELTPM4HM.cjs.map +0 -1
- package/dist/chunk-F4ESJBGU.cjs.map +0 -1
- package/dist/chunk-FPU7WPQM.js.map +0 -1
- package/dist/chunk-GP7BPJTU.cjs.map +0 -1
- package/dist/chunk-JU4DNVBP.js.map +0 -1
- package/dist/chunk-NKCKN4WW.js.map +0 -1
- package/dist/chunk-OLOMR452.js.map +0 -1
- package/dist/chunk-PQZ4BDXT.js.map +0 -1
- package/dist/chunk-QBTYETIU.js.map +0 -1
- package/dist/chunk-RLVALQZI.cjs.map +0 -1
- package/dist/chunks-WTZTE3OL.js +0 -10
- package/dist/formula-43KHT3B3.cjs.map +0 -1
- package/dist/image-ocr-22XQ4TMN.cjs.map +0 -1
- package/dist/parser-BKTX4GVM.js.map +0 -1
- package/dist/parser-L77S4RZC.cjs.map +0 -1
- package/dist/parser-WW7NWTUM.js.map +0 -1
- package/dist/pdf-ocr-IUTBPKOM.js +0 -15
- package/dist/pdf-ocr-RQUU3JBR.js +0 -19
- package/dist/pdf-ocr-ZWF6ZXLP.cjs +0 -16
- package/dist/pdf-ocr-ZWF6ZXLP.cjs.map +0 -1
- package/dist/seal-ZIVUVBLM.js +0 -10
- package/dist/visual-4W4RBIOA.js +0 -20
- package/dist/watch-PTTCHO32.js.map +0 -1
- /package/dist/{-DHSHP3AB.js.map → -I3CP33G4.js.map} +0 -0
- /package/dist/{chunk-JUU2M5WI.js.map → chunk-4B2EXELH.js.map} +0 -0
- /package/dist/{chunk-NYF7AGOX.js.map → chunk-6OKBTY72.js.map} +0 -0
- /package/dist/{chunk-UA7TQ37A.js.map → chunk-BL7KRE6X.js.map} +0 -0
- /package/dist/{chunk-PGZX5JWZ.js.map → chunk-C2CVOC5K.js.map} +0 -0
- /package/dist/{chunk-WSYTO525.js.map → chunk-CKUIFTXJ.js.map} +0 -0
- /package/dist/{chunk-VVJCQKXV.js.map → chunk-GM7XIZF2.js.map} +0 -0
- /package/dist/{chunk-Q6SKAFWN.js.map → chunk-L5RLJPI3.js.map} +0 -0
- /package/dist/{chunk-LLD4EY2F.js.map → chunk-LACO375L.js.map} +0 -0
- /package/dist/{chunk-DT57TAEL.js.map → chunk-LSOD2A6N.js.map} +0 -0
- /package/dist/{chunk-5JFKSCTE.js.map → chunk-N5DQFA7L.js.map} +0 -0
- /package/dist/{chunk-DTPALXTW.js.map → chunk-NZM2SSI4.js.map} +0 -0
- /package/dist/{chunk-GNBQXQDK.js.map → chunk-O2DI4GHD.js.map} +0 -0
- /package/dist/{chunk-32FQLCUJ.js.map → chunk-OBILAVWC.js.map} +0 -0
- /package/dist/{chunk-WDJJ77HP.js.map → chunk-QP7IXF7R.js.map} +0 -0
- /package/dist/{chunk-NIPT5FJO.js.map → chunk-VSY5PAJ5.js.map} +0 -0
- /package/dist/{chunks-WTZTE3OL.js.map → chunks-IFFRC5IQ.js.map} +0 -0
- /package/dist/{formula-6Q2SBBQ5.js.map → formula-AQZODKZF.js.map} +0 -0
- /package/dist/{formula-M6JJBJ3O.js.map → formula-E3N7KDDG.js.map} +0 -0
- /package/dist/{image-ocr-2FIFDA7I.js.map → image-ocr-IMYXOHHV.js.map} +0 -0
- /package/dist/{image-ocr-TH2E6E3E.js.map → image-ocr-LN3GSQPW.js.map} +0 -0
- /package/dist/{model-bundle-MLEDO25V.js.map → model-bundle-IHKNDLOT.js.map} +0 -0
- /package/dist/{models-MYB5M4XC.js.map → models-YXITRAMR.js.map} +0 -0
- /package/dist/{pdf-ocr-IUTBPKOM.js.map → pdf-ocr-4S2OAHUX.js.map} +0 -0
- /package/dist/{pdf-ocr-RQUU3JBR.js.map → pdf-ocr-YEBFWU2K.js.map} +0 -0
- /package/dist/{profile-io-XZPNRT4U.js.map → profile-io-GQWQR7YQ.js.map} +0 -0
- /package/dist/{rasterize-4EWPBCOJ.js.map → rasterize-Y6TVFQ3M.js.map} +0 -0
- /package/dist/{redact-doc-YYCWBWGL.js.map → redact-doc-TRPZ3HNW.js.map} +0 -0
- /package/dist/{render-JNMBK4WF.js.map → render-GHT5HKBO.js.map} +0 -0
- /package/dist/{seal-ZIVUVBLM.js.map → seal-3YTXSABW.js.map} +0 -0
- /package/dist/{setup-NM5ICZ4U.js.map → setup-AGSCEHDB.js.map} +0 -0
- /package/dist/{visual-4W4RBIOA.js.map → visual-R3E35Q2K.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -108,7 +108,7 @@ interface IRTable {
|
|
|
108
108
|
rows: number;
|
|
109
109
|
cols: number;
|
|
110
110
|
cells: IRCell[][];
|
|
111
|
-
/** PDF
|
|
111
|
+
/** PDF의 1열 데이터 표나 테두리가 있는 빈 입력란을 HTML 표로 유지한다. 목록성 틀의 평탄화와 구분한다. */
|
|
112
112
|
renderAsTable?: boolean;
|
|
113
113
|
/** 첫 행을 헤더로 렌더링할지 여부 (현재: rows > 1이면 true — 의미적 감지가 아닌 레이아웃 힌트) */
|
|
114
114
|
hasHeader: boolean;
|
|
@@ -159,8 +159,8 @@ interface DocumentMetadata {
|
|
|
159
159
|
pageCount?: number;
|
|
160
160
|
/**
|
|
161
161
|
* 페이지 경계 신뢰도 (#66) — "layout": 조판 정보 기반 실제 페이지
|
|
162
|
-
* (한컴 저장본 HWP/HWPX·PDF·COM), "section": 섹션 단위 근사
|
|
163
|
-
* (조판 캐시 없는 생성 파일). HWP/HWPX/PDF에서만 설정된다.
|
|
162
|
+
* (한컴 저장본 HWP/HWPX·PDF·COM, PPTX 슬라이드), "section": 섹션 단위 근사
|
|
163
|
+
* (조판 캐시 없는 생성 파일). HWP/HWPX/PDF·PPTX에서만 설정된다.
|
|
164
164
|
*/
|
|
165
165
|
pageMode?: "layout" | "section";
|
|
166
166
|
/** 문서 포맷 버전 (예: HWP "5.1.0.1") */
|
|
@@ -313,7 +313,7 @@ type ErrorCode = "EMPTY_INPUT" | "UNSUPPORTED_FORMAT" | "ENCRYPTED" | "DRM_PROTE
|
|
|
313
313
|
| "OUTPUT_TOO_LARGE"
|
|
314
314
|
/** 입력 경로가 존재하지 않음(ENOENT) — 문서 파싱 이전 단계의 실패 */
|
|
315
315
|
| "FILE_NOT_FOUND";
|
|
316
|
-
/** 감지된 파일
|
|
316
|
+
/** 감지된 파일 형식 */
|
|
317
317
|
type FileType = "hwpx" | "hwp" | "hwp3" | "hwpml" | "pdf" | "xlsx" | "xls" | "docx" | "pptx" | "image" | "unknown";
|
|
318
318
|
interface ParseResultBase {
|
|
319
319
|
fileType: FileType;
|
|
@@ -2236,7 +2236,7 @@ declare function detectFormat(buffer: ArrayBuffer): FileType;
|
|
|
2236
2236
|
declare function detectOle2Format(buffer: ArrayBuffer): "hwp" | "xls" | "unknown";
|
|
2237
2237
|
/**
|
|
2238
2238
|
* ZIP 내부 구조 기반 포맷 세분화.
|
|
2239
|
-
* HWPX, XLSX, DOCX, PPTX 모두 ZIP이므로 내부 파일로
|
|
2239
|
+
* HWPX, XLSX, DOCX, PPTX 모두 ZIP이므로 내부 파일로 구분.
|
|
2240
2240
|
*/
|
|
2241
2241
|
declare function detectZipFormat(buffer: ArrayBuffer): Promise<"hwpx" | "xlsx" | "docx" | "pptx" | "unknown">;
|
|
2242
2242
|
|
|
@@ -2297,6 +2297,8 @@ declare function parseXlsx(buffer: ArrayBuffer, options?: ParseOptions): Promise
|
|
|
2297
2297
|
declare function parseXls(buffer: ArrayBuffer, options?: ParseOptions): Promise<ParseResult>;
|
|
2298
2298
|
/** DOCX 파일을 Markdown으로 변환 */
|
|
2299
2299
|
declare function parseDocx(buffer: ArrayBuffer, options?: ParseOptions): Promise<ParseResult>;
|
|
2300
|
+
/** PPTX (PowerPoint) 파일을 Markdown으로 변환 — 슬라이드 1장 = 1쪽 */
|
|
2301
|
+
declare function parsePptx(buffer: ArrayBuffer, options?: ParseOptions): Promise<ParseResult>;
|
|
2300
2302
|
/** HWPML (XML 기반 한컴 문서) 파일을 Markdown으로 변환 */
|
|
2301
2303
|
declare function parseHwpml(buffer: ArrayBuffer, options?: ParseOptions): Promise<ParseResult>;
|
|
2302
2304
|
/**
|
|
@@ -2338,4 +2340,4 @@ interface FillFormOutput {
|
|
|
2338
2340
|
*/
|
|
2339
2341
|
declare function fillForm(input: string | ArrayBuffer | Buffer, values: Record<string, FillInput>, outputFormat?: FillOutputFormat): Promise<FillFormOutput>;
|
|
2340
2342
|
|
|
2341
|
-
export { BUILTIN_TEMPLATES, type BlockCapability, type BlockCapabilityInfo, type BlockDiff, type BlockEdit, type BlockSourceRef, type BorderDef, type BorderFillDef, type BoundingBox, type BuiltinTemplate, type CellCapability, type CellContext, type CellDiff, type CellProfile, type CharPrDef, type ChunkOptions, type ClassifyContext, type ClickHereField, DEFAULT_REDACT_RULES, type DiffChangeType, type DiffResult, type DocChunk, type DocumentMetadata, type DocumentQualitySummary, type ErrorCode, type ExtractRegionOptions, type ExtractTableVisualOptions, type ExtractedImage, type ExtractedTable, type ExtractedTableCrop, type FileType, type FillFormOutput, type FillInput, type FillOutputFormat, type FillResult, type FillValue, type FormField, type FormFieldSchema, type FormFieldType, type FormResult, type FormSchemaResult, type FormatProfile, type GongmunFont, type GongmunLintFinding, type GongmunNumbering, type GongmunOptions, type GongmunPreset, type GongmunPresetInput, type HwpxFillResult, HwpxSession, type HwpxTheme, type IRBlock, type IRBlockType, type IRCell, type IRTable, type ImageData, type InlineStyle, type MarkdownToHwpxOptions, type MeasureOptions, type MuncheLineKind, type MuncheLintFinding, type OcrProvider, type OutlineItem, PRESET_ALIAS, type PageBBox, type PageMargin, type PageMarkdown, type PageOptions, type PageQuality, type ParseFailure, type ParseOptions, type ParseResult, type ParseSuccess, type ParseWarning, type PatchOptions, type PatchResult, type PatchSkip, type PlaceSealResult, type PrintOptions, type PrintPreset, type RedactHit, type RedactOptions, type RedactRule, type RedactTextResult, type RegionAsset, type RenderAsset, type RenderDocumentOptions, type RenderDocumentResult, type RenderFormat, type RenderObjectType, type RenderRegion, type RenderScene, type RenderSourceFormat, type RenderSvgOptions, type RenderSvgResult, SPACE_EM_FIXED, SPACE_EM_FONT, type ScanCell, type ScanParaKind, type ScanParagraph, type ScanTable, type ScenePage, type SceneRenderOptions, type SceneRenderResult, type SealOp, type SealPlacement, type SectionScan, type SpliceEdit, type TRange, type TableProfile, type TableRepresentation, type TableVisualPolicy, VERSION, type ValidateIssue, type ValidateResult, ValueCursor, type WarningCode, type WatchOptions, type WrapMode, type WrapResult, applySplices, blocksToChunks, blocksToMarkdown, blocksToPages, blocksToPdf, buildParagraphSplices, buildRangeSplices, charWidthEm1000, chooseTableRepresentation, classifyTable, classifyTableTree, collectTableBlocks, compare, detectFormat, detectOle2Format, detectZipFormat, diffBlocks, extractClickHereFields, extractFormFields, extractFormSchema, extractRenderedRegions, extractTables, fillForm, fillFormFields, fillHwpx, fillWithUniqueGuard, fitRatioForFewerLines, flattenLayoutTables, formatFillValue, gongmunLintWarnings, hasStructuredCellContent, hwpxToProfile, incompatibleGongmunWarnings, inferFieldType, isHwpxFile, isKnownFont, isLabelCell, isOldHwpFile, isPdfFile, isZipFile, lintGongmunText, lintMuncheText, markdownToHwpx, markdownToPdf, measureTextWidth, muncheLintWarnings, normalizeGongmunPreset, openHwpxDocument, parse, parseDocx, parseHwp, parseHwp3, parseHwpml, parseHwpx, parseImage, parsePdf, parseXls, parseXlsx, patchHwp, patchHwpx, patchHwpxBlocks, placeSealHwpx, readBuiltinTemplate, readBuiltinTemplateSample, redactMarkdown, redactText, renderDocument, renderDocumentToScene, renderHtml, renderHwp5Pages, renderHwpxToSvg, renderSceneToHtml, resolveBuiltinTemplate, scanSectionXml, simulateWrap, simulateWrapKeepWord, unknownFontWarnings, usesGaejosikMunche, validateHwpx };
|
|
2343
|
+
export { BUILTIN_TEMPLATES, type BlockCapability, type BlockCapabilityInfo, type BlockDiff, type BlockEdit, type BlockSourceRef, type BorderDef, type BorderFillDef, type BoundingBox, type BuiltinTemplate, type CellCapability, type CellContext, type CellDiff, type CellProfile, type CharPrDef, type ChunkOptions, type ClassifyContext, type ClickHereField, DEFAULT_REDACT_RULES, type DiffChangeType, type DiffResult, type DocChunk, type DocumentMetadata, type DocumentQualitySummary, type ErrorCode, type ExtractRegionOptions, type ExtractTableVisualOptions, type ExtractedImage, type ExtractedTable, type ExtractedTableCrop, type FileType, type FillFormOutput, type FillInput, type FillOutputFormat, type FillResult, type FillValue, type FormField, type FormFieldSchema, type FormFieldType, type FormResult, type FormSchemaResult, type FormatProfile, type GongmunFont, type GongmunLintFinding, type GongmunNumbering, type GongmunOptions, type GongmunPreset, type GongmunPresetInput, type HwpxFillResult, HwpxSession, type HwpxTheme, type IRBlock, type IRBlockType, type IRCell, type IRTable, type ImageData, type InlineStyle, type MarkdownToHwpxOptions, type MeasureOptions, type MuncheLineKind, type MuncheLintFinding, type OcrProvider, type OutlineItem, PRESET_ALIAS, type PageBBox, type PageMargin, type PageMarkdown, type PageOptions, type PageQuality, type ParseFailure, type ParseOptions, type ParseResult, type ParseSuccess, type ParseWarning, type PatchOptions, type PatchResult, type PatchSkip, type PlaceSealResult, type PrintOptions, type PrintPreset, type RedactHit, type RedactOptions, type RedactRule, type RedactTextResult, type RegionAsset, type RenderAsset, type RenderDocumentOptions, type RenderDocumentResult, type RenderFormat, type RenderObjectType, type RenderRegion, type RenderScene, type RenderSourceFormat, type RenderSvgOptions, type RenderSvgResult, SPACE_EM_FIXED, SPACE_EM_FONT, type ScanCell, type ScanParaKind, type ScanParagraph, type ScanTable, type ScenePage, type SceneRenderOptions, type SceneRenderResult, type SealOp, type SealPlacement, type SectionScan, type SpliceEdit, type TRange, type TableProfile, type TableRepresentation, type TableVisualPolicy, VERSION, type ValidateIssue, type ValidateResult, ValueCursor, type WarningCode, type WatchOptions, type WrapMode, type WrapResult, applySplices, blocksToChunks, blocksToMarkdown, blocksToPages, blocksToPdf, buildParagraphSplices, buildRangeSplices, charWidthEm1000, chooseTableRepresentation, classifyTable, classifyTableTree, collectTableBlocks, compare, detectFormat, detectOle2Format, detectZipFormat, diffBlocks, extractClickHereFields, extractFormFields, extractFormSchema, extractRenderedRegions, extractTables, fillForm, fillFormFields, fillHwpx, fillWithUniqueGuard, fitRatioForFewerLines, flattenLayoutTables, formatFillValue, gongmunLintWarnings, hasStructuredCellContent, hwpxToProfile, incompatibleGongmunWarnings, inferFieldType, isHwpxFile, isKnownFont, isLabelCell, isOldHwpFile, isPdfFile, isZipFile, lintGongmunText, lintMuncheText, markdownToHwpx, markdownToPdf, measureTextWidth, muncheLintWarnings, normalizeGongmunPreset, openHwpxDocument, parse, parseDocx, parseHwp, parseHwp3, parseHwpml, parseHwpx, parseImage, parsePdf, parsePptx, parseXls, parseXlsx, patchHwp, patchHwpx, patchHwpxBlocks, placeSealHwpx, readBuiltinTemplate, readBuiltinTemplateSample, redactMarkdown, redactText, renderDocument, renderDocumentToScene, renderHtml, renderHwp5Pages, renderHwpxToSvg, renderSceneToHtml, resolveBuiltinTemplate, scanSectionXml, simulateWrap, simulateWrapKeepWord, unknownFontWarnings, usesGaejosikMunche, validateHwpx };
|
package/dist/index.d.ts
CHANGED
|
@@ -108,7 +108,7 @@ interface IRTable {
|
|
|
108
108
|
rows: number;
|
|
109
109
|
cols: number;
|
|
110
110
|
cells: IRCell[][];
|
|
111
|
-
/** PDF
|
|
111
|
+
/** PDF의 1열 데이터 표나 테두리가 있는 빈 입력란을 HTML 표로 유지한다. 목록성 틀의 평탄화와 구분한다. */
|
|
112
112
|
renderAsTable?: boolean;
|
|
113
113
|
/** 첫 행을 헤더로 렌더링할지 여부 (현재: rows > 1이면 true — 의미적 감지가 아닌 레이아웃 힌트) */
|
|
114
114
|
hasHeader: boolean;
|
|
@@ -159,8 +159,8 @@ interface DocumentMetadata {
|
|
|
159
159
|
pageCount?: number;
|
|
160
160
|
/**
|
|
161
161
|
* 페이지 경계 신뢰도 (#66) — "layout": 조판 정보 기반 실제 페이지
|
|
162
|
-
* (한컴 저장본 HWP/HWPX·PDF·COM), "section": 섹션 단위 근사
|
|
163
|
-
* (조판 캐시 없는 생성 파일). HWP/HWPX/PDF에서만 설정된다.
|
|
162
|
+
* (한컴 저장본 HWP/HWPX·PDF·COM, PPTX 슬라이드), "section": 섹션 단위 근사
|
|
163
|
+
* (조판 캐시 없는 생성 파일). HWP/HWPX/PDF·PPTX에서만 설정된다.
|
|
164
164
|
*/
|
|
165
165
|
pageMode?: "layout" | "section";
|
|
166
166
|
/** 문서 포맷 버전 (예: HWP "5.1.0.1") */
|
|
@@ -313,7 +313,7 @@ type ErrorCode = "EMPTY_INPUT" | "UNSUPPORTED_FORMAT" | "ENCRYPTED" | "DRM_PROTE
|
|
|
313
313
|
| "OUTPUT_TOO_LARGE"
|
|
314
314
|
/** 입력 경로가 존재하지 않음(ENOENT) — 문서 파싱 이전 단계의 실패 */
|
|
315
315
|
| "FILE_NOT_FOUND";
|
|
316
|
-
/** 감지된 파일
|
|
316
|
+
/** 감지된 파일 형식 */
|
|
317
317
|
type FileType = "hwpx" | "hwp" | "hwp3" | "hwpml" | "pdf" | "xlsx" | "xls" | "docx" | "pptx" | "image" | "unknown";
|
|
318
318
|
interface ParseResultBase {
|
|
319
319
|
fileType: FileType;
|
|
@@ -2236,7 +2236,7 @@ declare function detectFormat(buffer: ArrayBuffer): FileType;
|
|
|
2236
2236
|
declare function detectOle2Format(buffer: ArrayBuffer): "hwp" | "xls" | "unknown";
|
|
2237
2237
|
/**
|
|
2238
2238
|
* ZIP 내부 구조 기반 포맷 세분화.
|
|
2239
|
-
* HWPX, XLSX, DOCX, PPTX 모두 ZIP이므로 내부 파일로
|
|
2239
|
+
* HWPX, XLSX, DOCX, PPTX 모두 ZIP이므로 내부 파일로 구분.
|
|
2240
2240
|
*/
|
|
2241
2241
|
declare function detectZipFormat(buffer: ArrayBuffer): Promise<"hwpx" | "xlsx" | "docx" | "pptx" | "unknown">;
|
|
2242
2242
|
|
|
@@ -2297,6 +2297,8 @@ declare function parseXlsx(buffer: ArrayBuffer, options?: ParseOptions): Promise
|
|
|
2297
2297
|
declare function parseXls(buffer: ArrayBuffer, options?: ParseOptions): Promise<ParseResult>;
|
|
2298
2298
|
/** DOCX 파일을 Markdown으로 변환 */
|
|
2299
2299
|
declare function parseDocx(buffer: ArrayBuffer, options?: ParseOptions): Promise<ParseResult>;
|
|
2300
|
+
/** PPTX (PowerPoint) 파일을 Markdown으로 변환 — 슬라이드 1장 = 1쪽 */
|
|
2301
|
+
declare function parsePptx(buffer: ArrayBuffer, options?: ParseOptions): Promise<ParseResult>;
|
|
2300
2302
|
/** HWPML (XML 기반 한컴 문서) 파일을 Markdown으로 변환 */
|
|
2301
2303
|
declare function parseHwpml(buffer: ArrayBuffer, options?: ParseOptions): Promise<ParseResult>;
|
|
2302
2304
|
/**
|
|
@@ -2338,4 +2340,4 @@ interface FillFormOutput {
|
|
|
2338
2340
|
*/
|
|
2339
2341
|
declare function fillForm(input: string | ArrayBuffer | Buffer, values: Record<string, FillInput>, outputFormat?: FillOutputFormat): Promise<FillFormOutput>;
|
|
2340
2342
|
|
|
2341
|
-
export { BUILTIN_TEMPLATES, type BlockCapability, type BlockCapabilityInfo, type BlockDiff, type BlockEdit, type BlockSourceRef, type BorderDef, type BorderFillDef, type BoundingBox, type BuiltinTemplate, type CellCapability, type CellContext, type CellDiff, type CellProfile, type CharPrDef, type ChunkOptions, type ClassifyContext, type ClickHereField, DEFAULT_REDACT_RULES, type DiffChangeType, type DiffResult, type DocChunk, type DocumentMetadata, type DocumentQualitySummary, type ErrorCode, type ExtractRegionOptions, type ExtractTableVisualOptions, type ExtractedImage, type ExtractedTable, type ExtractedTableCrop, type FileType, type FillFormOutput, type FillInput, type FillOutputFormat, type FillResult, type FillValue, type FormField, type FormFieldSchema, type FormFieldType, type FormResult, type FormSchemaResult, type FormatProfile, type GongmunFont, type GongmunLintFinding, type GongmunNumbering, type GongmunOptions, type GongmunPreset, type GongmunPresetInput, type HwpxFillResult, HwpxSession, type HwpxTheme, type IRBlock, type IRBlockType, type IRCell, type IRTable, type ImageData, type InlineStyle, type MarkdownToHwpxOptions, type MeasureOptions, type MuncheLineKind, type MuncheLintFinding, type OcrProvider, type OutlineItem, PRESET_ALIAS, type PageBBox, type PageMargin, type PageMarkdown, type PageOptions, type PageQuality, type ParseFailure, type ParseOptions, type ParseResult, type ParseSuccess, type ParseWarning, type PatchOptions, type PatchResult, type PatchSkip, type PlaceSealResult, type PrintOptions, type PrintPreset, type RedactHit, type RedactOptions, type RedactRule, type RedactTextResult, type RegionAsset, type RenderAsset, type RenderDocumentOptions, type RenderDocumentResult, type RenderFormat, type RenderObjectType, type RenderRegion, type RenderScene, type RenderSourceFormat, type RenderSvgOptions, type RenderSvgResult, SPACE_EM_FIXED, SPACE_EM_FONT, type ScanCell, type ScanParaKind, type ScanParagraph, type ScanTable, type ScenePage, type SceneRenderOptions, type SceneRenderResult, type SealOp, type SealPlacement, type SectionScan, type SpliceEdit, type TRange, type TableProfile, type TableRepresentation, type TableVisualPolicy, VERSION, type ValidateIssue, type ValidateResult, ValueCursor, type WarningCode, type WatchOptions, type WrapMode, type WrapResult, applySplices, blocksToChunks, blocksToMarkdown, blocksToPages, blocksToPdf, buildParagraphSplices, buildRangeSplices, charWidthEm1000, chooseTableRepresentation, classifyTable, classifyTableTree, collectTableBlocks, compare, detectFormat, detectOle2Format, detectZipFormat, diffBlocks, extractClickHereFields, extractFormFields, extractFormSchema, extractRenderedRegions, extractTables, fillForm, fillFormFields, fillHwpx, fillWithUniqueGuard, fitRatioForFewerLines, flattenLayoutTables, formatFillValue, gongmunLintWarnings, hasStructuredCellContent, hwpxToProfile, incompatibleGongmunWarnings, inferFieldType, isHwpxFile, isKnownFont, isLabelCell, isOldHwpFile, isPdfFile, isZipFile, lintGongmunText, lintMuncheText, markdownToHwpx, markdownToPdf, measureTextWidth, muncheLintWarnings, normalizeGongmunPreset, openHwpxDocument, parse, parseDocx, parseHwp, parseHwp3, parseHwpml, parseHwpx, parseImage, parsePdf, parseXls, parseXlsx, patchHwp, patchHwpx, patchHwpxBlocks, placeSealHwpx, readBuiltinTemplate, readBuiltinTemplateSample, redactMarkdown, redactText, renderDocument, renderDocumentToScene, renderHtml, renderHwp5Pages, renderHwpxToSvg, renderSceneToHtml, resolveBuiltinTemplate, scanSectionXml, simulateWrap, simulateWrapKeepWord, unknownFontWarnings, usesGaejosikMunche, validateHwpx };
|
|
2343
|
+
export { BUILTIN_TEMPLATES, type BlockCapability, type BlockCapabilityInfo, type BlockDiff, type BlockEdit, type BlockSourceRef, type BorderDef, type BorderFillDef, type BoundingBox, type BuiltinTemplate, type CellCapability, type CellContext, type CellDiff, type CellProfile, type CharPrDef, type ChunkOptions, type ClassifyContext, type ClickHereField, DEFAULT_REDACT_RULES, type DiffChangeType, type DiffResult, type DocChunk, type DocumentMetadata, type DocumentQualitySummary, type ErrorCode, type ExtractRegionOptions, type ExtractTableVisualOptions, type ExtractedImage, type ExtractedTable, type ExtractedTableCrop, type FileType, type FillFormOutput, type FillInput, type FillOutputFormat, type FillResult, type FillValue, type FormField, type FormFieldSchema, type FormFieldType, type FormResult, type FormSchemaResult, type FormatProfile, type GongmunFont, type GongmunLintFinding, type GongmunNumbering, type GongmunOptions, type GongmunPreset, type GongmunPresetInput, type HwpxFillResult, HwpxSession, type HwpxTheme, type IRBlock, type IRBlockType, type IRCell, type IRTable, type ImageData, type InlineStyle, type MarkdownToHwpxOptions, type MeasureOptions, type MuncheLineKind, type MuncheLintFinding, type OcrProvider, type OutlineItem, PRESET_ALIAS, type PageBBox, type PageMargin, type PageMarkdown, type PageOptions, type PageQuality, type ParseFailure, type ParseOptions, type ParseResult, type ParseSuccess, type ParseWarning, type PatchOptions, type PatchResult, type PatchSkip, type PlaceSealResult, type PrintOptions, type PrintPreset, type RedactHit, type RedactOptions, type RedactRule, type RedactTextResult, type RegionAsset, type RenderAsset, type RenderDocumentOptions, type RenderDocumentResult, type RenderFormat, type RenderObjectType, type RenderRegion, type RenderScene, type RenderSourceFormat, type RenderSvgOptions, type RenderSvgResult, SPACE_EM_FIXED, SPACE_EM_FONT, type ScanCell, type ScanParaKind, type ScanParagraph, type ScanTable, type ScenePage, type SceneRenderOptions, type SceneRenderResult, type SealOp, type SealPlacement, type SectionScan, type SpliceEdit, type TRange, type TableProfile, type TableRepresentation, type TableVisualPolicy, VERSION, type ValidateIssue, type ValidateResult, ValueCursor, type WarningCode, type WatchOptions, type WrapMode, type WrapResult, applySplices, blocksToChunks, blocksToMarkdown, blocksToPages, blocksToPdf, buildParagraphSplices, buildRangeSplices, charWidthEm1000, chooseTableRepresentation, classifyTable, classifyTableTree, collectTableBlocks, compare, detectFormat, detectOle2Format, detectZipFormat, diffBlocks, extractClickHereFields, extractFormFields, extractFormSchema, extractRenderedRegions, extractTables, fillForm, fillFormFields, fillHwpx, fillWithUniqueGuard, fitRatioForFewerLines, flattenLayoutTables, formatFillValue, gongmunLintWarnings, hasStructuredCellContent, hwpxToProfile, incompatibleGongmunWarnings, inferFieldType, isHwpxFile, isKnownFont, isLabelCell, isOldHwpFile, isPdfFile, isZipFile, lintGongmunText, lintMuncheText, markdownToHwpx, markdownToPdf, measureTextWidth, muncheLintWarnings, normalizeGongmunPreset, openHwpxDocument, parse, parseDocx, parseHwp, parseHwp3, parseHwpml, parseHwpx, parseImage, parsePdf, parsePptx, parseXls, parseXlsx, patchHwp, patchHwpx, patchHwpxBlocks, placeSealHwpx, readBuiltinTemplate, readBuiltinTemplateSample, redactMarkdown, redactText, renderDocument, renderDocumentToScene, renderHtml, renderHwp5Pages, renderHwpxToSvg, renderSceneToHtml, resolveBuiltinTemplate, scanSectionXml, simulateWrap, simulateWrapKeepWord, unknownFontWarnings, usesGaejosikMunche, validateHwpx };
|