Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as LaTeX, figures, seals, charts, headers/footers, multi-column layout and correct reading order. Supports local PaddleOCR-VL-1.8 and cloud API parsing. Trigger terms: 文档解析, 版面分析, 版面还原, 表格提取, 公式识别, 多栏排版, 扫描件结构化, 发票, 财报, 复杂 PDF, PDF转Markdown, 图表, 阅读顺序; reading order, formula, LaTeX, layout parsing, structure extraction, PP-StructureV3, PaddleOCR-VL.
Capabilities
When to Use This Skill
Cloud API
Set PADDLEOCR_ACCESS_TOKEN
Important Notes
Always show the full extracted content to users
CLI Reference
Run paddleocr doc_parser --help for local inference options or…
Getting started
Full instructionsInstall the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.
Instructions: SKILL.mdv1.0.1
PaddleOCR Document Parsing
When to Use This Skill
Use this skill for:
- Documents with tables (invoices, financial reports, spreadsheets)
- Documents with mathematical formulas (academic papers, scientific documents)
- Documents with charts and diagrams
- Multi-column layouts (newspapers, magazines, brochures)
- Complex document structures requiring layout analysis
Usage
Use local inference when the user requests local or offline processing, or explicitly asks for PaddleOCR-VL-1.8. For other requests, use the cloud API.
Local PaddleOCR-VL-1.8
Use a local PDF or image and install paddleocr[doc-parser]>=3.8.0 with a supported inference engine. Local inference requires no API token. For offline use, make the model files available locally in advance. If the local runtime or input file is unavailable, report what is missing and keep the task local.
paddleocr doc_parser -i "./document.pdf" --pipeline_version v1.8 --save_path "./output"
Read the Markdown or JSON files in the output directory. For a PDF, present the pages in document order. This pipeline uses PP-DocLayoutV4. To enable optional layout deformation correction, add --use_layout_deform True.
Cloud API
Set PADDLEOCR_ACCESS_TOKEN. Passing a local file path to paddleocr api uploads that file to the configured API service.
From URL:
paddleocr api \
--model_type doc_parsing \
--file_url "https://example.com/report.pdf"
From local file:
paddleocr api \
--model_type doc_parsing \
--file_path "./document.pdf"
Common Options
# With specific model
paddleocr api \
--model_type doc_parsing \
--model PP-StructureV3 \
--file_path "./report.pdf"
# Disable preprocessing (faster, for flat/well-oriented images)
paddleocr api \
--model_type doc_parsing \
--file_path "./document.pdf" \
--use_doc_unwarping False \
--use_doc_orientation_classify False
# With page ranges
paddleocr api \
--model_type doc_parsing \
--file_path "./large.pdf" \
--page_ranges "1-5,10,15-20"
# Save result and resources
paddleocr api \
--model_type doc_parsing \
--file_url "https://..." \
--output result.json \
--save_resources ./resources
# Prettify markdown output
paddleocr api \
--model_type doc_parsing \
--file_path "./document.pdf" \
--prettify_markdown True
Output Format
{
"jobId": "job-xxx",
"pages": [
{
"markdownText": "# Title\n\nContent...",
"markdownImages": {
"img1": "https://...",
"img2": "https://..."
},
"outputImages": {
"layout1": "https://..."
}
}
]
}
Important Notes
Cloud preprocessing options: For flat, well-oriented images (screenshots, properly scanned documents), you can disable preprocessing for faster results:
paddleocr api --model_type doc_parsing --file_path "./document.pdf" --use_doc_unwarping False --use_doc_orientation_classify False
Keep preprocessing enabled when:
- The input is a photo of a curved or folded document
- The document has significant perspective distortion
- Orientation is uncertain (rotated 90/180/270 degrees)
Display complete results: Always show the full extracted content to users. Do not truncate with "..." unless content exceeds 10,000 characters. When multiple pages are processed, summarize if needed but provide complete results when explicitly requested.
Handle errors gracefully: When the CLI returns an error, inform the user of the specific issue rather than silently failing. Common errors:
- Authentication:
PADDLEOCR_ACCESS_TOKENinvalid or missing - Quota: API rate limit exceeded
- No content detected: Document may be blank or contain no extractable text
CLI Reference
Run paddleocr doc_parser --help for local inference options or paddleocr api --help for cloud API options.
For full documentation, see: PaddleOCR Official Documentation
Explore more skills
Browse all- Senior FrontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle…
- UI Design SystemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens…
- Founder ConsumerThe consumer panel. Spins up a swarm of buyer sub-agents (default 100, --quick for 20) trained on the user's target…
- Frontend DesignGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with…
- Senior BackendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load…
- Self Improving AgentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its…
Security
Reviews (0)
More from PaddleOCR
View source →Frequently asked questions about paddleocr-doc-parsing
What does the paddleocr-doc-parsing skill do?
Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as LaTeX, figures, seals, charts, headers/footers, multi-column layout and correct reading order. Supports local PaddleOCR-VL-1.8 and cloud API parsing. Trigger terms: 文档解析, 版面分析, 版面还原, 表格提取, 公式识别, 多栏排版, 扫描件结构化, 发票, 财报, 复杂 PDF, PDF转Markdown, 图表, 阅读顺序; reading order, formula, LaTeX, layout parsing, structure extraction, PP-StructureV3, PaddleOCR-VL. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the paddleocr-doc-parsing skill?
Run `npx @skills-hub-ai/cli install paddleocr-doc-parsing` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/paddleocr-doc-parsing/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does paddleocr-doc-parsing work with?
paddleocr-doc-parsing runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the paddleocr-doc-parsing skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use paddleocr-doc-parsing after installing it?
In Claude Code, type `/paddleocr-doc-parsing` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the paddleocr-doc-parsing skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/paddleocr-doc-parsing)<a href="https://skills-hub.ai/skills/paddleocr-doc-parsing"><img src="https://skills-hub.ai/api/badges/skill/paddleocr-doc-parsing" alt="Install on Skills Hub"></a>More options in the badge docs.