kakemono
Convert PDF papers and books, Word documents, Excel workbooks, PowerPoint decks, EPUB books, web pages, or arXiv papers into readable, editable formats.
kakemono is a Rust document converter and library. It extracts reading order and structure from its input, including headings, tables, equations and figures, and writes it again in the format you need. No Python, Poppler or MuPDF is needed for the command line.
What goes in, what comes out
| Input | Notes |
|---|---|
| PDF, or an arXiv id or URL | Layout analysis rebuilds reading order, tables and formulas. Scanned and encrypted PDFs are not supported. |
Word (.docx, .doc) | Read directly; also laid out in pages as Word does, and written as a PDF. |
Excel (.xlsx) | A table per region of each sheet; a PDF printed as Excel prints it. |
PowerPoint (.pptx) | A section per slide; a PDF with the slides drawn as PowerPoint draws them. |
EPUB (.epub) | Read into the same structure as Word. |
Web page (.html or an http(s) address) | The article is kept, without menus, sidebars or advertisements. |
| Output | Use it for |
|---|---|
| HTML, in four modes | Reading on screen, from page-faithful copies to a phone-friendly article |
| Markdown | GitHub, Obsidian, Jupyter, Pandoc, or an LLM |
Word (.docx) | Editing in Word |
| LaTeX, Typst | Typesetting again, as an article or a printed book |
| EPUB | E-readers |
| Editable JSON | Translating or correcting the text, then applying it to any output |
| JSONL chunks | Retrieval (RAG), with token counts |
| Word, EPUB and web page input, a workbook, a deck |
The four HTML modes:
| Mode | Layout |
|---|---|
friendly | Responsive single-column article (default) |
medium | Preserves pages and columns while reflowing text |
hard-95 | Page-like layout with visible HTML text |
hard | Page images with a selectable text layer |
Where to start
- Use the command line: Installation, then Using the command line.
- Call it from code: Use as a library for Rust and Python, or bindings for Node.js, WebAssembly, Java, Kotlin, .NET and C.
- Know what to expect: Limitations and Performance.
- Contribute: Architecture, then Contributing.
A first run
cargo install kakemono
kakemono convert 1706.03762 -o paper.md # arXiv id → Markdown
kakemono convert report.docx -o report.pdf # Word → PDF
kakemono convert paper.pdf --all -o out/ # all four HTML modes
The output extension selects the format; --format chooses it explicitly. kakemono is licensed under
the MIT license.