A HTTP server converting PDF file to text blocks.
This project uses PyMuPDF and complies with its open-source licensing obligations.
To use PDF Parser, simply install hi-pdf-parser from your package manager, e.g. pip:
pip install hi-pdf-parserInstall the optional server dependencies when running the HTTP server:
pip install 'hi-pdf-parser[server]'The official command is hi-pdf-parser.
hi-pdf-parser parse report.pdf --out ./out
hi-pdf-parser parse a.pdf b.pdf --out ./out
hi-pdf-parser serve --host 0.0.0.0 --port 8000parse writes Markdown, assets, manifest, and logs under <out>/<stem>/, and emits one JSON envelope per input on stdout. serve starts the HTTP API server and requires the server extra.
Install uv, then:
uv sync --all-groups --extra serverTo run the checks on-demand repeatedly until it passes. If you see mypy errors you might need to provide typing hints where requested.
uv run pre-commit run --all-files