Agent skill · Audited from source
Pdf Extraction Guide
skill · brycewang-stanford/Auto-Empirical-Research-SkillsNOASSERTION licenceAudited 8 Oct 2026 · source e1ba289846fd
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit e1ba289846fd and found no filesystem, network or shell access and no hard-coded secrets. What it does: PDF parsing, text extraction, and document format conversion
Cite
Cite this page
ModelsAtlas. “Pdf Extraction Guide (brycewang-stanford/Auto-Empirical-Research-Skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/brycewang-stanford/pdf-extraction-guide
Trust audit
Audit 0.4.1 · source read 8 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha e1ba289846fd · 8 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherbrycewang-stanford GitHub userOwner of the repository this skill is read from
- Source folderbrycewang-stanford/Auto-Empirical-Research-Skills/skills/43-wentorai-research-plugins/skills/tools/document/pdf-extraction-guideThe exact folder we audited
- LicenceNOASSERTIONAs the repository states it
- Commit pinned for this verdicte1ba289846fdA new audit runs when the source changes
- Repository statusNot archivedLast push 3 days ago
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: PDF parsing, text extraction, and document format conversion
---
name: pdf-extraction-guide
description: "PDF parsing, text extraction, and document format conversion"
metadata:
openclaw:
emoji: "📄"
category: "tools"
subcategory: "document"
keywords: ["PDF parsing", "PDF extraction", "document chunking", "format conversion", "md2pdf"]
source: "wentor-research-plugins"
---
# PDF Extraction Guide
Extract text, tables, figures, and metadata from academic PDFs using Python libraries, with strategies for handling multi-column layouts, mathematical content, and scanned documents.
## PDF Extraction Tools Comparison
| 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 |
## PyMuPDF (fitz) — Fast Text Extraction
### Basic Text Extraction
```python
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])
```
### Structured Block-Level Extraction
```python
def extract_structured(pdf_path):
"""Extract text with layout information (blocks, lines, spans)."""
doc = fitz.open(pdf_path)
pages = []
for page_num, page in enumerate(doc):
blocks = page.get_text("dict")["blocks"]
page_data = {"page": page_num + 1, "blocks": []}
for block in blocks:
if "lines" not in block:
continue # Skip image blocks
block_text = ""
max_font_size = 0
is_bold = False
for line in block["lines"]:
for span in line["spans"]:
block_text += span["text"]
max_font_size = max(max_font_size, span["size"])
if "Bold" in span.get("font", ""):
is_bold = True
block_text += "\n"
page_data["blocks"].append({
"text": block_text.strip(),
"font_size": max_font_size,
"is_bold": is_bold,
"bbox": block["bbox"] # (x0, y0, x1, y1)
})
pages.append(page_data)
doc.close()
return pages
# Identify section headings
pages = extract_structured("paper.pdf")
for page in pages:
for block in page["blocks"]:
if block["is_bold"] and block["font_size"] > 11:
print(f"[Heading] {block['text'][:80]}")
```
### Extract Images and Figures
```python
def extract_images(pdf_path, output_dir="./images"):
"""Extract all images from a PDF."""
import os
os.makedirs(output_dir, exist_ok=True)
doc = fitz.open(pdf_path)
img_count = 0
for page_num, page in enumerate(doc):
images = page.get_images(full=True)
for img_idx, img in enumerate(images):
xref = img[0]
pix = fitz.Pixmap(doc, xref)
if pix.n - pix.alpha > 3: # CMYK
pix = fitz.Pixmap(fitz.csRGB, pix)
filename = f"{output_dir}/page{page_num+1}_img{img_idx+1}.png"
pix.save(filename)
img_count += 1
doc.close()
print(f"Extracted {img_count} images to {output_dir}")
```
## pdfplumber — Table Extraction
```python
import pdfplumber
def extract_tables(pdf_path):
"""Extract all tables from a PDF."""
tables = []
with pdfplumber.open(pdf_path) as pdf:
for page_num, page in enumerate(pdf.pages):
page_tables = page.extract_tables()
for table_idx, table in enumerate(page_tables):
tables.append({
"page": page_num + 1,
"table_index": table_idx,
"data": table
})
return tables
# Convert extracted table to pandas DataFrame
import pandas as pd
tables = extract_tables("paper.pdf")
for t in tables:
if t["data"]:
df = pd.DataFrame(t["data"][1:], columns=t["data"][0])
print(f"\nTable on page {t['page']}:")
print(df.to_string())
```
## GROBID — Structured Academic Paper Parsing
GROBID uses machine learning to parse academic PDFs into structured TEI XML.
```python
import requests
def parse_with_grobid(pdf_path, grobid_url="http://localhost:8070"):
"""Parse a paper PDF using GROBID."""
with open(pdf_path, "rb") as f:
response = requests.post(
f"{grobid_url}/api/processFulltextDocument",
files={"input": f},
data={"consolidateHeader": 1, "consolidateCitations": 1}
)
if response.status_code == 200:
return response.text # TEI XML
else:
raise Exception(f"GROBID error: {response.status_code}")
# Parse the TEI XML
from lxml import etree
tei_xml = parse_with_grobid("paper.pdf")
root = etree.fromstring(tei_xml.encode())
ns = {"tei": "http://www.tei-c.org/ns/1.0"}
# Extract title
title = root.find(".//tei:titleStmt/tei:title", ns)
print(f"Title: {title.text if title is not None else 'N/A'}")
# Extract abstract
abstract = root.find(".//tei:profileDesc/tei:abstract", ns)
if abstract is not None:
print(f"Abstract: {abstract.text}")
# Extract references
refs = root.findall(".//tei:listBibl/tei:biblStruct", ns)
print(f"References found: {len(Excerpt, first 6,001 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit e1ba289
pip install marker-pdf
git clone https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills git -C Auto-Empirical-Research-Skills checkout e1ba289846fd
Commands as the repository documents them: shown, never run by us. Our verdict covers commit e1ba289846fd only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| OpenClaw | Mentioned in its text, not tested | Skills for OpenClaw · About OpenClaw |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
e1ba289846fd
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/brycewang-stanford/pdf-extraction-guide/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
brycewang-stanford/Auto-Empirical-Research-Skills
GIS analysis and remote sensing workflows for geospatial research applications
brycewang-stanford/Auto-Empirical-Research-Skills
Run and manage Google Colab notebooks for Python and ML research
brycewang-stanford/Auto-Empirical-Research-Skills
Advanced Google Scholar search techniques for comprehensive literature discovery
brycewang-stanford/Auto-Empirical-Research-Skills
Ethical Google Scholar data collection techniques and best practices
brycewang-stanford/Auto-Empirical-Research-Skills
Autonomous agent for comprehensive deep research on any topic
brycewang-stanford/Auto-Empirical-Research-Skills
Practical advice for thriving in PhD programs and academic research
Add this badge to your README
[](https://modelsatlas.com/skills/brycewang-stanford/pdf-extraction-guide/)
<a href="https://modelsatlas.com/skills/brycewang-stanford/pdf-extraction-guide/"><img src="https://modelsatlas.com/skills/brycewang-stanford/pdf-extraction-guide/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Pdf Extraction Guide
What does the Pdf Extraction Guide skill do?
Is Pdf Extraction Guide safe to install?
What can Pdf Extraction Guide access on my machine?
Which assistants does Pdf Extraction Guide work with?
How current is this page?
Sources
- github.com/brycewang-stanford/Auto-Empirical-Research-Skills/tre — the audited source at commit e1ba289846fd and every finding aboveObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Pdf Extraction Guide skill do?
- Is Pdf Extraction Guide safe to install?
- What can Pdf Extraction Guide access on my machine?