r/Paperlessngx • u/veylor-878 • 20d ago
Has anyone worked on converting large batches of PDFs to Markdown? Looking for an efficient solution.
I've been exploring ways to convert large volumes of PDFs into Markdown while preserving the original document structure as much as possible, including headings, tables, paragraphs, and overall layout.
So far, I've tried a few approaches, but it's been difficult to find a good balance between accuracy and speed:
- Model-based tools like MinerU: The conversion quality is pretty good, especially when it comes to preserving document structure. However, running models locally can be quite slow, making them less practical for large-scale batch processing.
- Lightweight tools: They're much faster and use fewer resources, but often struggle with complex layouts, tables, and formatting.
Has anyone dealt with similar use cases or found a good solution?
I'd love to hear about any tools, open-source projects, or approaches you'd recommend.
Thanks in advance!
0
Upvotes
1
u/markusro 20d ago
Docling was much faster than chandra. But chandra was a bit better. The best way for me was to convert from chandra to html, and that html with docling to markdown. If the document was digital native (like PDF from email) i sent it directly to docling, if it was from a scan i it would go the chandra route. Chandra did run quite OK on a 16GB GPU, but it is really much slower than docling.
1
u/Apprehensive_Ad3112 20d ago
try lightonocr