PyMuPDF4LLM test for sample-scientific-2.pdf

← Back to PyMuPDF4LLM

Input: sample-scientific-2.pdf

sample-scientific-2.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-scientific-2.pdf" "sample-scientific-2--pymupdf4llm-python.md" lines_strict

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-scientific-2.pdf" "sample-scientific-2--pymupdf4llm-python--table-strategy-text.md" text