Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Extracts structured data from PDF, DOCX, HTML, Excel, and image documents into JSON or CSV using Python libraries.
67% 76%+10 ptsof test cases passed
Passed 16 of 21 test cases with the skill, and 14 of 21 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
25 agent runs
Extract structured data from documents in any format: PDF, DOCX, HTML, TXT, images, and more, using plain Python libraries (pdfplumber, PyMuPDF, python-docx, BeautifulSoup, Tesseract OCR). Converts unstructured or semi-structured content into clean JSON, CSV, or other structured formats. Handles invoices, forms, reports, and free-text documents.
When a user asks you to extract data from a document, follow this process:
# Determine file type
file document.pdf
# Install dependencies based on format
pip install pdfplumber python-docx beautifulsoup4 lxml openpyxl pymupdf
Library selection by format:
pdfplumber (text + tables), PyMuPDF (import pymupdf, older code uses import fitz) for complex layouts and speedpython-docxbeautifulsoup4 with lxmlopenpyxl or pandaspytesseract with Pillow; it only wraps the Tesseract program, which must be installed separately (apt install tesseract-ocr, brew install tesseract)PDF extraction:
import pdfplumber
with pdfplumber.open("document.pdf") as pdf:
for i, page in enumerate(pdf.pages):
text = page.extract_text()
print(f"--- Page {i+1} ---")
print(text)
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus popular skills in the same category.