@clazic/kordoc 2.7.5 → 2.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -126,25 +126,6 @@ if (result.success) {
126
126
  }
127
127
  ```
128
128
 
129
- ### PDF 변환 (HWP/HWPX → PDF)
130
-
131
- ```typescript
132
- import { convertToPdf } from "@clazic/kordoc"
133
- import { readFileSync, writeFileSync } from "fs"
134
-
135
- const buffer = readFileSync("사업계획서.hwp")
136
- const result = await convertToPdf(buffer)
137
-
138
- if (result.success) {
139
- writeFileSync("사업계획서.pdf", result.pdf)
140
- console.log(`변환 완료: ${result.sourceFormat} → PDF`)
141
- } else {
142
- console.error(`변환 실패: ${result.error}`)
143
- }
144
- ```
145
-
146
- **요구사항**: 시스템에 [LibreOffice](https://www.libreoffice.org/)가 설치되어 있어야 합니다.
147
-
148
129
  ### 문서 비교 (신구대조표)
149
130
 
150
131
  ```typescript
@@ -291,11 +272,6 @@ kordoc convert 보고서.md -o 최종보고서.hwpx # 출력 경로 지정
291
272
  kordoc convert 보고서.md --image-dir ./이미지 # 이미지 폴더 지정
292
273
  kordoc convert 보고서.md --template 기본.hwpx # HWPX 템플릿 적용
293
274
 
294
- # HWP/HWPX → PDF 변환
295
- kordoc convert-pdf 사업계획서.hwp # → 사업계획서.pdf
296
- kordoc convert-pdf 보고서.hwpx -o 결과.pdf # 출력 경로 지정
297
- kordoc convert-pdf 문서.hwp --pages 1-3 # 페이지 범위
298
-
299
275
  # 폴더 감시 모드
300
276
  kordoc watch ./수신함 -d ./변환결과 # 폴더 감시 모드
301
277
  kordoc watch ./문서 --webhook https://api/hook # 웹훅 알림
@@ -405,13 +381,12 @@ HWP 5.x를 제외한 모든 포맷 지원. 설치 없이 바로 연결 가능합
405
381
  }
406
382
  ```
407
383
 
408
- **9개 도구:**
384
+ **8개 도구:**
409
385
 
410
386
  | 도구 | 설명 |
411
387
  |------|------|
412
388
  | `parse_document` | HWP/HWPX/PDF/XLSX/DOCX → 마크다운 (메타데이터·이미지 포함, `image_dir` 지원) |
413
389
  | `convert_document` | Markdown → HWPX 또는 XLSX 변환 (이미지 폴더·템플릿 지원) |
414
- | `convert_to_pdf` | HWP/HWPX → PDF 변환 (페이지 범위·타임아웃 지원) |
415
390
  | `detect_format` | 매직 바이트로 포맷 감지 |
416
391
  | `parse_metadata` | 메타데이터만 빠르게 추출 |
417
392
  | `parse_pages` | 특정 페이지 범위만 파싱 |
@@ -431,7 +406,6 @@ HWP 5.x를 제외한 모든 포맷 지원. 설치 없이 바로 연결 가능합
431
406
  | `parsePdf(buffer, options?)` | PDF 전용 |
432
407
  | `parseXlsx(buffer, options?)` | XLSX 전용 |
433
408
  | `parseDocx(buffer, options?)` | DOCX 전용 |
434
- | `convertToPdf(input, options?)` | HWP/HWPX → PDF 변환 |
435
409
  | `detectFormat(buffer)` | `"hwpx" \| "hwp" \| "pdf" \| "xlsx" \| "docx" \| "unknown"` |
436
410
 
437
411
  ### 고급 함수
@@ -455,8 +429,6 @@ import type {
455
429
  FormField, FormResult,
456
430
  OcrProvider, WatchOptions,
457
431
  MarkdownToXlsxOptions,
458
- // PDF 변환 타입
459
- ConvertToPdfOptions, ConvertToPdfResult,
460
432
  } from "@clazic/kordoc"
461
433
  ```
462
434