PyMuPDF4LLM test for sample-catalog.pdf

← Back to PyMuPDF4LLM

Input: sample-catalog.pdf

sample-catalog.pdf first page preview

table_strategy="lines_strict" (the library default): requires actual ruling lines to detect a table, same idea as tabula-java's -l/--lattice.

uv run python3 ./tests/pymupdf4llm_extract.py "sample-catalog.pdf" "sample-catalog--pymupdf4llm-python.md" lines_strict

Output: sample-catalog--pymupdf4llm-python.md

Loading preview…

table_strategy="text": text-position-based heuristic instead of ruling lines, same idea as tabula-java's default -g/--guess — a genuinely different detection algorithm, not just a formatting tweak.

uv run python3 ./tests/pymupdf4llm_extract.py "sample-catalog.pdf" "sample-catalog--pymupdf4llm-python--table-strategy-text.md" text