Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Extracts text, tables, figures, and metadata from academic PDFs using Python libraries.
64% 82%+18 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 14 of 22 without it.
3 of 3 safety checks passed
117 agent runs
2 forksA fork is a copy of this skill that someone made so they could edit it for their own use. The original doesn't change.
Extract text, tables, figures, and metadata from academic PDFs using Python libraries, with strategies for handling multi-column layouts, mathematical content, and scanned documents.
| Tool | Text | Tables | Figures | Layout | OCR | Speed |
|---|---|---|---|---|---|---|
| PyMuPDF (fitz) | Excellent | Manual | Yes | Blocks | No (add with OCR engine) | Fast |
| pdfplumber | Good | Excellent | No | Tables focus | No | Medium |
| PyPDF2 / pypdf | Basic | No | No | No | No | Fast |
| Tabula-py | No | Excellent | No | No | No | Medium |
| GROBID | Structured | Yes | References | Academic layout | No | Slow (ML-based) |
| Nougat (Meta) | Excellent | Yes | Yes | Academic layout | Built-in | Slow (GPU) |
| Marker | Excellent | Yes | Yes | Multi-column | Built-in | Medium |
| pdf2image + Tesseract | Via OCR | Via OCR | Via OCR | No | Yes | Slow |
import fitz # pip install PyMuPDF
def extract_text(pdf_path):
"""Extract all text from a PDF with page numbers."""
doc = fitz.open(pdf_path)
full_text = []
for page_num, page in enumerate(doc, 1):
text = page.get_text("text")
full_text.append(f"--- Page {page_num} ---\n{text}")
doc.close()
return "\n".join(full_text)
# Usage
text = extract_text("paper.pdf")
print(text[:2000])
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.