NewsCrawler.org

kordoc: a parser that converts HWP, HWPX and PDF to Markdown without Hancom Office

kordoc: a parser that converts HWP, HWPX and PDF to Markdown without Hancom Office
Image: news.hada.io

A South Korean district office employee built kordoc, a parser that reads HWP[1] file structures directly, because work documents in HWP had to be copy-pasted or converted to PDF for AI use, which broke merged table cells. The tool converts HWP 3.x and 5.x, HWPX, PDF, XLSX, DOCX, PPTX and images to Markdown or JSON, keeping merged cells as HTML tables with rowspan and colspan or, if preferred, as GFM[2] pipe tables. Built-in OCR processes scanned PDFs and images on the local CPU with no API key, and the KORDOC_OFFLINE=1 flag blocks external network communication. It also works in reverse, turning Markdown into HWPX official documents with report and plan presets, filling in draft forms and comparing two documents; it ships as a CLI, an npm library, a Python SDK and an MCP[3] server for Claude, Cursor and VS Code. The author reports an overall score of 0.964 on the opendataloader-bench of 200 public PDFs and structural matches on 10,342 tables from 2,424 Korean HWPX documents; known limits include files protected by Hancom DRM[4], formula objects that cannot be rendered yet and mistakes on unfamiliar table structures.

Read the original news.hada.io

Sources

  • KRGeekNews KO

    Show GN: kordoc - 한컴오피스 없이 HWP·HWPX·PDF를 마크다운으로 바꾸는 파서

    3 points0 comments

Published: First seen: Читать по-русски

Open as a page