What problem does it solve?
Converts complex, multi-column, table- and equation-heavy PDF documents into clean, structured Markdown so that technical content becomes editable, searchable, and versionable without manual retyping.
Core Features & Use Cases
- 2-column layout detection and correct reading order extraction for academic and standards documents.
- Robust table detection and caption extraction with multiple strategies to recover heading-anchored and whitespace-aligned tables.
- Equation fragment merging and LaTeX conversion with symbol-font mapping, ligature expansion, and equation numbering preservation.
- Vector graphic detection and image extraction into a per-PDF images folder, plus watermark removal and bullet splitting.
- Optional VLM-based visual verification step to correct OCR/structure errors using an image+draft Markdown comparison.
- Use Case: Batch-convert a folder of technical PDFs (ASTM reports, papers, manuals) into Markdown with images and equations preserved for archival or publication workflows.
Quick Start
Run the relative script to convert a folder of PDFs by executing TMP=D:/AI/temp TEMP=D:/AI/temp python scripts/pdf_to_md.py -i "{input_dir}".