frompdf
/install frompdf-api
frompdf
Convert any PDF into structured, LLM-ready content via a single API call. Returns a semantic AST with every element — headings, paragraphs, tables, lists, metadata — properly typed and nested. No page limit. Handles encrypted PDFs, complex layouts, and multi-hundred-page documents.
Quick start
# Register (10 free credits, no credit card)
curl -s -X POST https://api.frompdf.dev/register \
-H "Content-Type: application/json" \
-d '{"email": "[email protected]", "password": "yourpassword"}'
# → {"api_key": "frompdf_..."}
# Extract a PDF (returns JSON semantic AST by default)
curl -s -X POST https://api.frompdf.dev/v1/extract \
-H "Authorization: Bearer $FROMPDF_API_KEY" \
-F "[email protected]"
Output formats
# Semantic AST — typed elements: headings, paragraphs, tables, lists (default)
-F "format=json"
# Markdown — structure preserved, human-readable
-F "format=markdown"
# HTML — full document with tags intact
-F "format=html"
# Plain text — clean extraction, no markup
-F "format=text"
# LLM-ready chunks — pre-split for RAG / vector store ingestion
-F "format=chunks"
All endpoints
# Extract content from a PDF (1 credit)
curl -s -X POST https://api.frompdf.dev/v1/extract \
-H "Authorization: Bearer $FROMPDF_API_KEY" \
-F "[email protected]" \
-F "format=chunks"
# Encrypted PDF
curl -s -X POST https://api.frompdf.dev/v1/extract \
-H "Authorization: Bearer $FROMPDF_API_KEY" \
-F "[email protected]" \
-F "password=secret"
# Semantic diff — compare two PDFs, get structured changes (2 credits)
curl -s -X POST https://api.frompdf.dev/v1/diff \
-H "Authorization: Bearer $FROMPDF_API_KEY" \
-F "[email protected]" \
-F "[email protected]"
# Readability score — returns 0-100 score for a PDF (1 credit)
curl -s -X POST https://api.frompdf.dev/v1/score \
-H "Authorization: Bearer $FROMPDF_API_KEY" \
-F "[email protected]"
# Check credits and subscription status (free)
curl -s https://api.frompdf.dev/v1/usage \
-H "Authorization: Bearer $FROMPDF_API_KEY"
Example output (JSON)
{
"title": "AWS Lambda Developer Guide",
"pages": 87,
"sections": [
{ "type": "heading", "level": 1, "text": "Getting Started" },
{ "type": "paragraph", "text": "AWS Lambda is a serverless compute service..." },
{
"type": "table",
"headers": ["Runtime", "Version", "Status"],
"rows": [["Node.js 20", "20.x", "Active"], ["Python 3.12", "3.12", "Active"]]
},
{ "type": "list", "items": ["Function", "Trigger", "Execution role"] }
],
"metadata": { "author": "Amazon Web Services", "created": "2024-01-15" }
}
Pricing
$0.01/credit — extract (1), diff (2), score (1). First 10 credits free, no credit card required.
Data & privacy
PDF contents are uploaded to api.frompdf.dev for processing. Do not use with confidential documents unless you have reviewed the privacy policy. Requires FROMPDF_API_KEY env var — register free at /register.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install frompdf-api - 安装完成后,直接呼叫该 Skill 的名称或使用
/frompdf-api触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
frompdf 是什么?
PDF extraction API for AI agents and LLM pipelines. Converts any PDF into semantic AST, markdown, HTML, plain text, or LLM-ready chunks — no page limit. Also... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 160 次。
如何安装 frompdf?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install frompdf-api」即可一键安装,无需额外配置。
frompdf 是免费的吗?
是的,frompdf 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
frompdf 支持哪些平台?
frompdf 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 frompdf?
由 techtonicllc(@techtonicllc)开发并维护,当前版本 v1.0.0。