PaddleOCR Document Parsing
Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as LaTeX, figures, seals, charts,...
Lin Manhui
@bobholamovic
What This Skill Does
Extracts structured Markdown or JSON from PDFs and document images, preserving tables with cell-level precision, formulas as LaTeX, figures, seals, charts, headers/footers, and multi-column layout with correct reading order. Uses PaddleOCR's PP-StructureV3 model via CLI.
Replaces manual data extraction from complex documents by automatically converting scanned PDFs, invoices, and reports into structured, machine-readable formats.
When to Use It
- Convert scanned invoices or financial reports into structured Markdown with tables
- Extract mathematical formulas as LaTeX from academic PDFs
- Parse multi-column layouts from magazines or brochures into correct reading order
- Extract tables and charts from complex document images for data analysis
- Process a range of pages from a large PDF document for selective extraction
- Save extracted images and layout resources from a document for further processing
Install
$ openclaw skills install @bobholamovic/paddleocr-doc-parsingPaddleOCR 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
Basic Document Parsing
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
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 api --help for all options.
For full documentation, see: PaddleOCR Official Documentation
Top skills in this category
Nano Pdf
@steipeteEdit PDFs with natural-language instructions using the nano-pdf CLI.
Word / DOCX
@ivangdavilaCreate, inspect, and edit Microsoft Word documents and DOCX files with reliable styles, numbering, tracked changes, tables, sections, and compatibility check...
Excel / XLSX
@ivangdavilaCreate, inspect, and edit Microsoft Excel workbooks and XLSX files with reliable formulas, dates, types, formatting, recalculation, and template preservation...
Markdown Converter
@steipeteConvert documents and files to Markdown using markitdown. Use when converting PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls), HTML, CSV, JSON, XML, images (with EXIF/OCR), audio (with transcription), ZIP archives, YouTube URLs, or EPubs to Markdown format for LLM processing or text analysis.
Powerpoint / PPTX
@ivangdavilaCreate, inspect, and edit Microsoft PowerPoint presentations and PPTX decks with reliable layouts, templates, placeholders, notes, charts, and visual QA. Use...