NewsCrawler.org

OpenDocKit: Python library converting HWP, PDF and Excel files to Markdown for LLMs

OpenDocKit: Python library converting HWP, PDF and Excel files to Markdown for LLMs
Image: news.hada.io

OpenDocKit is a Python library that converts documents into Markdown for LLMs, RAG[1] and agents. One function, convert_file, reads PDF, DOCX, PPTX, XLSX, HWP[2]/HWPX, ODF, RTF, EPUB, HTML, email and images. The result contains the text in Markdown, a list of sections by page, slide or sheet, and warnings about content that was skipped or approximated.

The author says tables keep their structure: merged cells are filled in each row, Excel numbers keep the format shown in the sheet, and borderless PDF tables are converted into tables. Charts become data tables, SmartArt becomes nested lists, and Word, PowerPoint and HWP equations become LaTeX[3]. The HWP 5.x parser was written from scratch, and the format is detected from the content, not from the file extension.

For server use, it sets limits on zip bombs, excessive merged cells and very large images, and IsolatedConverter runs each file in a worker process with memory and time limits. The default install works offline, gives the same output for the same input, and needs no GPU or ML model. The author says it has no OCR[4], so scanned documents need a vision model, and in a comparison on the same files it passed all 49 structure checks, against 36 for Docling, though the author wrote the checks. It needs Python 3.12 or later and installs with pip install opendockit.

Read the original news.hada.io

Sources

  • KRGeekNews KO

    Show GN: OpenDocKit - HWP부터 PDF·엑셀까지, 실제로 올라오는 문서를 LLM용 Markdown으로 바꾸는 파이썬 라이브...

    7 points0 comments

Earlier in this story

  1. microsoft/markitdown: Python tool for converting documents to Markdown for LLMs

The whole story · 2 →

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

Open as a page