A practical tool for converting PDF to Markdown, part of the MinerU project by OpenDataLab. Current version is 1.3.12, requires Python >=3.10, <3.14. The package is actively maintained with frequent releases.
pip install magic-pdfNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Convert a PDF to Markdown and print the result.
Use 'pip install magic-pdf' and 'import magic_pdf'.
Access result['markdown'] for v1.3.0+, or result['text'] for older versions.
Use 'parse_pdf' instead of 'parse'.
Run 'pip install magic-pdf' and use 'import magic_pdf'.
Use 'magic_pdf.parse_pdf()' instead.
Check version: if <1.3.0 use result['text'], else use result['markdown'].
No dependency data recorded yet.