kordoc 4.4.0 → 4.5.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.
Files changed (104) hide show
  1. package/README.md +18 -3
  2. package/dist/{-R6NUMPRV.js → -CWYIC4ES.js} +9 -9
  3. package/dist/{chunk-W6CUD7V3.js → chunk-2CF2WXBG.js} +3 -3
  4. package/dist/{chunk-YOZ7ZRCD.js → chunk-45EUJ2P6.js} +310 -76
  5. package/dist/chunk-45EUJ2P6.js.map +1 -0
  6. package/dist/{chunk-HNRULYUH.js → chunk-7ZQKECQT.js} +2 -2
  7. package/dist/{chunk-RZURSA4N.js → chunk-CBUC73JM.js} +3 -3
  8. package/dist/chunk-DCZVOIEO.cjs.map +1 -1
  9. package/dist/{chunk-ONS7JKVA.js → chunk-EYLOFSA5.js} +2 -2
  10. package/dist/{chunk-ONS7JKVA.js.map → chunk-EYLOFSA5.js.map} +1 -1
  11. package/dist/{chunk-YVYU267E.js → chunk-FT2EXMMP.js} +16 -5
  12. package/dist/chunk-FT2EXMMP.js.map +1 -0
  13. package/dist/{chunk-V35DRUJC.js → chunk-GCHH4WHT.js} +2 -2
  14. package/dist/{chunk-UDGPM5R5.cjs → chunk-GLPLLT4Q.cjs} +4 -4
  15. package/dist/chunk-GLPLLT4Q.cjs.map +1 -0
  16. package/dist/chunk-GS7T56RP.cjs.map +1 -1
  17. package/dist/{chunk-HFJF477F.js → chunk-M4I5F6GK.js} +16 -5
  18. package/dist/chunk-M4I5F6GK.js.map +1 -0
  19. package/dist/{chunk-GHGZU2LQ.js → chunk-NBOVSNSR.js} +2 -2
  20. package/dist/{chunk-AB322K3O.cjs → chunk-TCPO6XAY.cjs} +17 -6
  21. package/dist/chunk-TCPO6XAY.cjs.map +1 -0
  22. package/dist/{chunk-5KLE3U23.js → chunk-TP4P7M4I.js} +2 -2
  23. package/dist/{chunk-P7YPCK7C.js → chunk-TTEHX4FN.js} +2 -2
  24. package/dist/{chunk-SKM6KZUH.cjs → chunk-U3ZNF4SO.cjs} +9 -9
  25. package/dist/chunk-U3ZNF4SO.cjs.map +1 -0
  26. package/dist/{chunk-A73RMJ6B.js → chunk-UEWW3DH2.js} +1 -1
  27. package/dist/{chunk-A73RMJ6B.js.map → chunk-UEWW3DH2.js.map} +1 -1
  28. package/dist/{chunk-H2KMJOB6.cjs → chunk-UQ6KDJWE.cjs} +2 -2
  29. package/dist/chunk-UQ6KDJWE.cjs.map +1 -0
  30. package/dist/{chunk-65DYCXGC.js → chunk-WDIPTY3Q.js} +3 -3
  31. package/dist/{chunk-XCIC7U6Y.js → chunk-XYSTZIIL.js} +2 -2
  32. package/dist/{chunk-QXYB74QF.js → chunk-ZHNUH2IW.js} +2 -2
  33. package/dist/chunk-ZV5OKQ3Z.cjs.map +1 -1
  34. package/dist/chunks-EYDY4Y6O.js +10 -0
  35. package/dist/cli.js +54 -19
  36. package/dist/cli.js.map +1 -1
  37. package/dist/formula-CG4S7TWO.cjs.map +1 -1
  38. package/dist/{image-ocr-U2DRRFL3.js → image-ocr-BWQIUUVC.js} +13 -5
  39. package/dist/image-ocr-BWQIUUVC.js.map +1 -0
  40. package/dist/{image-ocr-XC52AQDV.js → image-ocr-EDZOUU6Q.js} +14 -6
  41. package/dist/image-ocr-EDZOUU6Q.js.map +1 -0
  42. package/dist/{image-ocr-F2BQA26V.cjs → image-ocr-KZ4MGVJ3.cjs} +19 -11
  43. package/dist/image-ocr-KZ4MGVJ3.cjs.map +1 -0
  44. package/dist/index.cjs +647 -413
  45. package/dist/index.cjs.map +1 -1
  46. package/dist/index.d.cts +42 -2
  47. package/dist/index.d.ts +42 -2
  48. package/dist/index.js +305 -71
  49. package/dist/index.js.map +1 -1
  50. package/dist/mcp.js +63 -30
  51. package/dist/mcp.js.map +1 -1
  52. package/dist/page-range-P7SDW6LR.cjs.map +1 -1
  53. package/dist/{parser-TFPGQWCC.js → parser-6OJOFJ64.js} +5 -5
  54. package/dist/{parser-FFQN67O6.cjs → parser-7G2QFIYZ.cjs} +24 -24
  55. package/dist/parser-7G2QFIYZ.cjs.map +1 -0
  56. package/dist/{parser-ESGFWWCT.js → parser-JLEKXA2Z.js} +6 -6
  57. package/dist/pdf-ocr-364VNE6N.cjs +13 -0
  58. package/dist/pdf-ocr-364VNE6N.cjs.map +1 -0
  59. package/dist/{pdf-ocr-WE5TMRFU.js → pdf-ocr-OWUZLWQ3.js} +5 -5
  60. package/dist/pdf-ocr-YQGMCT53.js +12 -0
  61. package/dist/{profile-io-O6BDCUJN.js → profile-io-FMPT6VEZ.js} +3 -3
  62. package/dist/{rasterize-V22VCCE7.js → rasterize-LARCX6CS.js} +2 -2
  63. package/dist/render-4WHQ7JCX.js +10 -0
  64. package/dist/seal-BX6YA6PI.js +10 -0
  65. package/dist/{watch-HGKBICED.js → watch-Y2VKD2MN.js} +9 -9
  66. package/package.json +1 -1
  67. package/dist/chunk-AB322K3O.cjs.map +0 -1
  68. package/dist/chunk-H2KMJOB6.cjs.map +0 -1
  69. package/dist/chunk-HFJF477F.js.map +0 -1
  70. package/dist/chunk-SKM6KZUH.cjs.map +0 -1
  71. package/dist/chunk-UDGPM5R5.cjs.map +0 -1
  72. package/dist/chunk-YOZ7ZRCD.js.map +0 -1
  73. package/dist/chunk-YVYU267E.js.map +0 -1
  74. package/dist/chunks-QMGCI5DG.js +0 -10
  75. package/dist/image-ocr-F2BQA26V.cjs.map +0 -1
  76. package/dist/image-ocr-U2DRRFL3.js.map +0 -1
  77. package/dist/image-ocr-XC52AQDV.js.map +0 -1
  78. package/dist/parser-FFQN67O6.cjs.map +0 -1
  79. package/dist/pdf-ocr-4R646OO6.js +0 -12
  80. package/dist/pdf-ocr-UQBZH3HE.cjs +0 -13
  81. package/dist/pdf-ocr-UQBZH3HE.cjs.map +0 -1
  82. package/dist/render-3BSVTTZE.js +0 -10
  83. package/dist/seal-6ZSEJVOD.js +0 -10
  84. /package/dist/{-R6NUMPRV.js.map → -CWYIC4ES.js.map} +0 -0
  85. /package/dist/{chunk-W6CUD7V3.js.map → chunk-2CF2WXBG.js.map} +0 -0
  86. /package/dist/{chunk-HNRULYUH.js.map → chunk-7ZQKECQT.js.map} +0 -0
  87. /package/dist/{chunk-RZURSA4N.js.map → chunk-CBUC73JM.js.map} +0 -0
  88. /package/dist/{chunk-V35DRUJC.js.map → chunk-GCHH4WHT.js.map} +0 -0
  89. /package/dist/{chunk-GHGZU2LQ.js.map → chunk-NBOVSNSR.js.map} +0 -0
  90. /package/dist/{chunk-5KLE3U23.js.map → chunk-TP4P7M4I.js.map} +0 -0
  91. /package/dist/{chunk-P7YPCK7C.js.map → chunk-TTEHX4FN.js.map} +0 -0
  92. /package/dist/{chunk-65DYCXGC.js.map → chunk-WDIPTY3Q.js.map} +0 -0
  93. /package/dist/{chunk-XCIC7U6Y.js.map → chunk-XYSTZIIL.js.map} +0 -0
  94. /package/dist/{chunk-QXYB74QF.js.map → chunk-ZHNUH2IW.js.map} +0 -0
  95. /package/dist/{chunks-QMGCI5DG.js.map → chunks-EYDY4Y6O.js.map} +0 -0
  96. /package/dist/{parser-TFPGQWCC.js.map → parser-6OJOFJ64.js.map} +0 -0
  97. /package/dist/{parser-ESGFWWCT.js.map → parser-JLEKXA2Z.js.map} +0 -0
  98. /package/dist/{pdf-ocr-4R646OO6.js.map → pdf-ocr-OWUZLWQ3.js.map} +0 -0
  99. /package/dist/{pdf-ocr-WE5TMRFU.js.map → pdf-ocr-YQGMCT53.js.map} +0 -0
  100. /package/dist/{profile-io-O6BDCUJN.js.map → profile-io-FMPT6VEZ.js.map} +0 -0
  101. /package/dist/{rasterize-V22VCCE7.js.map → rasterize-LARCX6CS.js.map} +0 -0
  102. /package/dist/{render-3BSVTTZE.js.map → render-4WHQ7JCX.js.map} +0 -0
  103. /package/dist/{seal-6ZSEJVOD.js.map → seal-BX6YA6PI.js.map} +0 -0
  104. /package/dist/{watch-HGKBICED.js.map → watch-Y2VKD2MN.js.map} +0 -0
package/dist/index.d.cts CHANGED
@@ -215,7 +215,7 @@ interface ParseWarning {
215
215
  /** 구조화된 경고 코드 */
216
216
  code: WarningCode;
217
217
  }
218
- type WarningCode = "SKIPPED_IMAGE" | "SKIPPED_OLE" | "TRUNCATED_TABLE" | "OCR_FALLBACK" | "UNSUPPORTED_ELEMENT" | "BROKEN_ZIP_RECOVERY" | "HIDDEN_TEXT_FILTERED" | "MALFORMED_XML" | "PARTIAL_PARSE" | "LENIENT_CFB_RECOVERY" | "NEEDS_OCR" | "OCR_FAILED" | "OCR_APPLIED" | "COM_EMPTY" | "DRM_COM_FALLBACK";
218
+ type WarningCode = "SKIPPED_IMAGE" | "SKIPPED_OLE" | "TRUNCATED_TABLE" | "OCR_FALLBACK" | "UNSUPPORTED_ELEMENT" | "BROKEN_ZIP_RECOVERY" | "HIDDEN_TEXT_FILTERED" | "MALFORMED_XML" | "PARTIAL_PARSE" | "LENIENT_CFB_RECOVERY" | "NEEDS_OCR" | "OCR_FAILED" | "OCR_APPLIED" | "OCR_LOW_CONF" | "COM_EMPTY" | "DRM_COM_FALLBACK";
219
219
  /** 문서 구조 (헤딩 트리) */
220
220
  interface OutlineItem {
221
221
  level: number;
@@ -893,6 +893,35 @@ interface HwpxTheme {
893
893
  tableHeaderBold?: boolean;
894
894
  }
895
895
 
896
+ /**
897
+ * 페이지 옵션 (v4.5.0) — 용지 크기·방향, 다단, 머리말/꼬리말 생성.
898
+ *
899
+ * XML 형상 근거:
900
+ * - landscape 속성: 코퍼스 실측 — 세로 문서 전수 WIDELY, 가로 문서(소방용수시설
901
+ * 조사일정 2종)만 NARROWLY. 용지 width/height는 방향과 무관하게 용지 실치수 유지.
902
+ * - 머리말/꼬리말·subList: rhwp serializer(한컴 저장본 필드 단위 전수 대조로 검증된
903
+ * HWP5→HWPX 변환기)의 render_header_footer 형상 미러.
904
+ * - colPr 다단: rhwp render_col_pr_ctrl — type NEWSPAPER, sameSz=1, sameGap(HWPUNIT).
905
+ *
906
+ * 옵션 미지정 시 이 모듈은 아무것도 방출하지 않는다 (기존 산출물 바이트 불변).
907
+ */
908
+ /** markdownToHwpx `page` 옵션 */
909
+ interface PageOptions {
910
+ /** 용지 프리셋 또는 mm 실치수. 기본 A4 (210×297) */
911
+ size?: "A4" | "A3" | "B4" | "B5" | "Letter" | {
912
+ widthMm: number;
913
+ heightMm: number;
914
+ };
915
+ /** 용지 방향. 기본 portrait(세로) */
916
+ orientation?: "portrait" | "landscape";
917
+ /** 다단 개수 (1~8). 기본 1 */
918
+ columns?: number;
919
+ /** 머리말 텍스트 — 모든 쪽, 인라인 마크다운(굵게 등) 허용 */
920
+ header?: string;
921
+ /** 꼬리말 텍스트 */
922
+ footer?: string;
923
+ }
924
+
896
925
  /**
897
926
  * 서식 프로필(Format Profile) — generate 시각 서식 재현 (이슈 #41 / PR #42).
898
927
  *
@@ -1018,6 +1047,17 @@ interface MarkdownToHwpxOptions {
1018
1047
  * 미지정 시 기본 서식 — 공문서 모드는 실측 정부 표 문법, 그 외 단일 SOLID 테두리.
1019
1048
  */
1020
1049
  profile?: FormatProfile;
1050
+ /**
1051
+ * 페이지 설정 (v4.5.0) — 용지 크기·가로 방향, 다단(columns), 머리말/꼬리말.
1052
+ * 미지정 시 기존과 동일한 A4 세로 1단.
1053
+ */
1054
+ page?: PageOptions;
1055
+ /**
1056
+ * 이미지 실데이터 (v4.5.0) — `![alt](url)`의 url을 키로 바이트를 넘기면 BinData에
1057
+ * 실제로 임베드한다 (PNG/JPEG/GIF/BMP, 크기는 96dpi 환산·본문폭 캡). `data:image/...`
1058
+ * URI는 이 맵 없이도 임베드. 바이트가 없는 url은 종전 placeholder 참조 보존.
1059
+ */
1060
+ images?: Record<string, Uint8Array | ArrayBuffer>;
1021
1061
  }
1022
1062
  /**
1023
1063
  * 마크다운 텍스트를 HWPX (ArrayBuffer)로 변환.
@@ -1758,4 +1798,4 @@ interface FillFormOutput {
1758
1798
  */
1759
1799
  declare function fillForm(input: string | ArrayBuffer | Buffer, values: Record<string, FillInput>, outputFormat?: FillOutputFormat): Promise<FillFormOutput>;
1760
1800
 
1761
- 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 ClickHereField, DEFAULT_REDACT_RULES, type DiffChangeType, type DiffResult, type DocChunk, type DocumentMetadata, type DocumentQualitySummary, type ErrorCode, type ExtractedImage, 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 OcrProvider, type OutlineItem, PRESET_ALIAS, type PageMargin, 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 RenderSvgOptions, type RenderSvgResult, SPACE_EM_FIXED, SPACE_EM_FONT, type ScanCell, type ScanParaKind, type ScanParagraph, type ScanTable, type SealOp, type SealPlacement, type SectionScan, type SpliceEdit, type TRange, type TableProfile, VERSION, type ValidateIssue, type ValidateResult, ValueCursor, type WarningCode, type WatchOptions, type WrapMode, type WrapResult, applySplices, blocksToChunks, blocksToMarkdown, blocksToPdf, buildParagraphSplices, buildRangeSplices, charWidthEm1000, compare, detectFormat, detectOle2Format, detectZipFormat, diffBlocks, extractClickHereFields, extractFormFields, extractFormSchema, fillForm, fillFormFields, fillHwpx, fillWithUniqueGuard, fitRatioForFewerLines, formatFillValue, gongmunLintWarnings, hwpxToProfile, incompatibleGongmunWarnings, inferFieldType, isHwpxFile, isKnownFont, isLabelCell, isOldHwpFile, isPdfFile, isZipFile, lintGongmunText, markdownToHwpx, markdownToPdf, measureTextWidth, normalizeGongmunPreset, openHwpxDocument, parse, parseDocx, parseHwp, parseHwp3, parseHwpml, parseHwpx, parseImage, parsePdf, parseXls, parseXlsx, patchHwp, patchHwpx, patchHwpxBlocks, placeSealHwpx, readBuiltinTemplate, readBuiltinTemplateSample, redactMarkdown, redactText, renderHtml, renderHwpxToSvg, resolveBuiltinTemplate, scanSectionXml, simulateWrap, simulateWrapKeepWord, unknownFontWarnings, validateHwpx };
1801
+ 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 ClickHereField, DEFAULT_REDACT_RULES, type DiffChangeType, type DiffResult, type DocChunk, type DocumentMetadata, type DocumentQualitySummary, type ErrorCode, type ExtractedImage, 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 OcrProvider, type OutlineItem, PRESET_ALIAS, type PageMargin, 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 RenderSvgOptions, type RenderSvgResult, SPACE_EM_FIXED, SPACE_EM_FONT, type ScanCell, type ScanParaKind, type ScanParagraph, type ScanTable, type SealOp, type SealPlacement, type SectionScan, type SpliceEdit, type TRange, type TableProfile, VERSION, type ValidateIssue, type ValidateResult, ValueCursor, type WarningCode, type WatchOptions, type WrapMode, type WrapResult, applySplices, blocksToChunks, blocksToMarkdown, blocksToPdf, buildParagraphSplices, buildRangeSplices, charWidthEm1000, compare, detectFormat, detectOle2Format, detectZipFormat, diffBlocks, extractClickHereFields, extractFormFields, extractFormSchema, fillForm, fillFormFields, fillHwpx, fillWithUniqueGuard, fitRatioForFewerLines, formatFillValue, gongmunLintWarnings, hwpxToProfile, incompatibleGongmunWarnings, inferFieldType, isHwpxFile, isKnownFont, isLabelCell, isOldHwpFile, isPdfFile, isZipFile, lintGongmunText, markdownToHwpx, markdownToPdf, measureTextWidth, normalizeGongmunPreset, openHwpxDocument, parse, parseDocx, parseHwp, parseHwp3, parseHwpml, parseHwpx, parseImage, parsePdf, parseXls, parseXlsx, patchHwp, patchHwpx, patchHwpxBlocks, placeSealHwpx, readBuiltinTemplate, readBuiltinTemplateSample, redactMarkdown, redactText, renderHtml, renderHwpxToSvg, resolveBuiltinTemplate, scanSectionXml, simulateWrap, simulateWrapKeepWord, unknownFontWarnings, validateHwpx };
package/dist/index.d.ts CHANGED
@@ -215,7 +215,7 @@ interface ParseWarning {
215
215
  /** 구조화된 경고 코드 */
216
216
  code: WarningCode;
217
217
  }
218
- type WarningCode = "SKIPPED_IMAGE" | "SKIPPED_OLE" | "TRUNCATED_TABLE" | "OCR_FALLBACK" | "UNSUPPORTED_ELEMENT" | "BROKEN_ZIP_RECOVERY" | "HIDDEN_TEXT_FILTERED" | "MALFORMED_XML" | "PARTIAL_PARSE" | "LENIENT_CFB_RECOVERY" | "NEEDS_OCR" | "OCR_FAILED" | "OCR_APPLIED" | "COM_EMPTY" | "DRM_COM_FALLBACK";
218
+ type WarningCode = "SKIPPED_IMAGE" | "SKIPPED_OLE" | "TRUNCATED_TABLE" | "OCR_FALLBACK" | "UNSUPPORTED_ELEMENT" | "BROKEN_ZIP_RECOVERY" | "HIDDEN_TEXT_FILTERED" | "MALFORMED_XML" | "PARTIAL_PARSE" | "LENIENT_CFB_RECOVERY" | "NEEDS_OCR" | "OCR_FAILED" | "OCR_APPLIED" | "OCR_LOW_CONF" | "COM_EMPTY" | "DRM_COM_FALLBACK";
219
219
  /** 문서 구조 (헤딩 트리) */
220
220
  interface OutlineItem {
221
221
  level: number;
@@ -893,6 +893,35 @@ interface HwpxTheme {
893
893
  tableHeaderBold?: boolean;
894
894
  }
895
895
 
896
+ /**
897
+ * 페이지 옵션 (v4.5.0) — 용지 크기·방향, 다단, 머리말/꼬리말 생성.
898
+ *
899
+ * XML 형상 근거:
900
+ * - landscape 속성: 코퍼스 실측 — 세로 문서 전수 WIDELY, 가로 문서(소방용수시설
901
+ * 조사일정 2종)만 NARROWLY. 용지 width/height는 방향과 무관하게 용지 실치수 유지.
902
+ * - 머리말/꼬리말·subList: rhwp serializer(한컴 저장본 필드 단위 전수 대조로 검증된
903
+ * HWP5→HWPX 변환기)의 render_header_footer 형상 미러.
904
+ * - colPr 다단: rhwp render_col_pr_ctrl — type NEWSPAPER, sameSz=1, sameGap(HWPUNIT).
905
+ *
906
+ * 옵션 미지정 시 이 모듈은 아무것도 방출하지 않는다 (기존 산출물 바이트 불변).
907
+ */
908
+ /** markdownToHwpx `page` 옵션 */
909
+ interface PageOptions {
910
+ /** 용지 프리셋 또는 mm 실치수. 기본 A4 (210×297) */
911
+ size?: "A4" | "A3" | "B4" | "B5" | "Letter" | {
912
+ widthMm: number;
913
+ heightMm: number;
914
+ };
915
+ /** 용지 방향. 기본 portrait(세로) */
916
+ orientation?: "portrait" | "landscape";
917
+ /** 다단 개수 (1~8). 기본 1 */
918
+ columns?: number;
919
+ /** 머리말 텍스트 — 모든 쪽, 인라인 마크다운(굵게 등) 허용 */
920
+ header?: string;
921
+ /** 꼬리말 텍스트 */
922
+ footer?: string;
923
+ }
924
+
896
925
  /**
897
926
  * 서식 프로필(Format Profile) — generate 시각 서식 재현 (이슈 #41 / PR #42).
898
927
  *
@@ -1018,6 +1047,17 @@ interface MarkdownToHwpxOptions {
1018
1047
  * 미지정 시 기본 서식 — 공문서 모드는 실측 정부 표 문법, 그 외 단일 SOLID 테두리.
1019
1048
  */
1020
1049
  profile?: FormatProfile;
1050
+ /**
1051
+ * 페이지 설정 (v4.5.0) — 용지 크기·가로 방향, 다단(columns), 머리말/꼬리말.
1052
+ * 미지정 시 기존과 동일한 A4 세로 1단.
1053
+ */
1054
+ page?: PageOptions;
1055
+ /**
1056
+ * 이미지 실데이터 (v4.5.0) — `![alt](url)`의 url을 키로 바이트를 넘기면 BinData에
1057
+ * 실제로 임베드한다 (PNG/JPEG/GIF/BMP, 크기는 96dpi 환산·본문폭 캡). `data:image/...`
1058
+ * URI는 이 맵 없이도 임베드. 바이트가 없는 url은 종전 placeholder 참조 보존.
1059
+ */
1060
+ images?: Record<string, Uint8Array | ArrayBuffer>;
1021
1061
  }
1022
1062
  /**
1023
1063
  * 마크다운 텍스트를 HWPX (ArrayBuffer)로 변환.
@@ -1758,4 +1798,4 @@ interface FillFormOutput {
1758
1798
  */
1759
1799
  declare function fillForm(input: string | ArrayBuffer | Buffer, values: Record<string, FillInput>, outputFormat?: FillOutputFormat): Promise<FillFormOutput>;
1760
1800
 
1761
- 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 ClickHereField, DEFAULT_REDACT_RULES, type DiffChangeType, type DiffResult, type DocChunk, type DocumentMetadata, type DocumentQualitySummary, type ErrorCode, type ExtractedImage, 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 OcrProvider, type OutlineItem, PRESET_ALIAS, type PageMargin, 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 RenderSvgOptions, type RenderSvgResult, SPACE_EM_FIXED, SPACE_EM_FONT, type ScanCell, type ScanParaKind, type ScanParagraph, type ScanTable, type SealOp, type SealPlacement, type SectionScan, type SpliceEdit, type TRange, type TableProfile, VERSION, type ValidateIssue, type ValidateResult, ValueCursor, type WarningCode, type WatchOptions, type WrapMode, type WrapResult, applySplices, blocksToChunks, blocksToMarkdown, blocksToPdf, buildParagraphSplices, buildRangeSplices, charWidthEm1000, compare, detectFormat, detectOle2Format, detectZipFormat, diffBlocks, extractClickHereFields, extractFormFields, extractFormSchema, fillForm, fillFormFields, fillHwpx, fillWithUniqueGuard, fitRatioForFewerLines, formatFillValue, gongmunLintWarnings, hwpxToProfile, incompatibleGongmunWarnings, inferFieldType, isHwpxFile, isKnownFont, isLabelCell, isOldHwpFile, isPdfFile, isZipFile, lintGongmunText, markdownToHwpx, markdownToPdf, measureTextWidth, normalizeGongmunPreset, openHwpxDocument, parse, parseDocx, parseHwp, parseHwp3, parseHwpml, parseHwpx, parseImage, parsePdf, parseXls, parseXlsx, patchHwp, patchHwpx, patchHwpxBlocks, placeSealHwpx, readBuiltinTemplate, readBuiltinTemplateSample, redactMarkdown, redactText, renderHtml, renderHwpxToSvg, resolveBuiltinTemplate, scanSectionXml, simulateWrap, simulateWrapKeepWord, unknownFontWarnings, validateHwpx };
1801
+ 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 ClickHereField, DEFAULT_REDACT_RULES, type DiffChangeType, type DiffResult, type DocChunk, type DocumentMetadata, type DocumentQualitySummary, type ErrorCode, type ExtractedImage, 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 OcrProvider, type OutlineItem, PRESET_ALIAS, type PageMargin, 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 RenderSvgOptions, type RenderSvgResult, SPACE_EM_FIXED, SPACE_EM_FONT, type ScanCell, type ScanParaKind, type ScanParagraph, type ScanTable, type SealOp, type SealPlacement, type SectionScan, type SpliceEdit, type TRange, type TableProfile, VERSION, type ValidateIssue, type ValidateResult, ValueCursor, type WarningCode, type WatchOptions, type WrapMode, type WrapResult, applySplices, blocksToChunks, blocksToMarkdown, blocksToPdf, buildParagraphSplices, buildRangeSplices, charWidthEm1000, compare, detectFormat, detectOle2Format, detectZipFormat, diffBlocks, extractClickHereFields, extractFormFields, extractFormSchema, fillForm, fillFormFields, fillHwpx, fillWithUniqueGuard, fitRatioForFewerLines, formatFillValue, gongmunLintWarnings, hwpxToProfile, incompatibleGongmunWarnings, inferFieldType, isHwpxFile, isKnownFont, isLabelCell, isOldHwpFile, isPdfFile, isZipFile, lintGongmunText, markdownToHwpx, markdownToPdf, measureTextWidth, normalizeGongmunPreset, openHwpxDocument, parse, parseDocx, parseHwp, parseHwp3, parseHwpml, parseHwpx, parseImage, parsePdf, parseXls, parseXlsx, patchHwp, patchHwpx, patchHwpxBlocks, placeSealHwpx, readBuiltinTemplate, readBuiltinTemplateSample, redactMarkdown, redactText, renderHtml, renderHwpxToSvg, resolveBuiltinTemplate, scanSectionXml, simulateWrap, simulateWrapKeepWord, unknownFontWarnings, validateHwpx };