mirror of
https://github.com/hanzoskill/pymupdf-pdf-parser.git
synced 2026-10-30 21:10:57 +00:00
595 B
595 B
PyMuPDF Notes
- Fast local parsing via PyMuPDF (
fitz). - Less robust than specialized PDF parsers; table extraction is minimal.
page.get_text("markdown")gives quick Markdown output.page.get_text("text")provides plain text for JSON.- Image extraction uses
page.get_images(full=True)andPixmap.
Install:
pip install pymupdf
Nix note (if import fails with libstdc++ missing):
# Find a gcc lib path and export it:
ls /nix/store/*gcc*/lib/libstdc++.so.6 2>/dev/null | head -1
export LD_LIBRARY_PATH=/nix/store/<your-gcc-lib-hash>-gcc-<version>-lib/lib