paddleocr-doc-parsing

Converts PDFs and document images into structured Markdown and JSON preserving layout via PaddleOCR.

35|3|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/Aidenwu0209/PaddleOCR-Skills --skill paddleocr-doc-parsing-aidenwu0209
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: paddleocr-doc-parsing
Source: https://github.com/Aidenwu0209/PaddleOCR-Skills/tree/main/skills/paddleocr-doc-parsing
Command: npx skills add https://github.com/Aidenwu0209/PaddleOCR-Skills --skill paddleocr-doc-parsing-aidenwu0209

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires httpx, Pillow, pypdfium2, and includes scripts (resource) components.

What problem does it solve?

Complex documents such as PDFs and images often require manual, time-consuming extraction and structuring. This skill uses PaddleOCR to intelligently convert these documents into Markdown and JSON while preserving layout and relationships.

Core Features & Use Cases

  • Layout-aware parsing that preserves headers, tables, formulas, figures, and multi-column structures.
  • Output in Markdown and JSON formats for easy ingestion into pipelines, CMS, or knowledge bases.
  • Use Case: extract invoices or research papers into structured data for analysis and archival.

Quick Start

Parse a document by running the vl_caller.py script on a PDF/image URL or local path to generate Markdown and JSON results.

Frequently Asked Questions about paddleocr-doc-parsing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a multi-column PDF to Markdown while preserving layout?

Multi-column PDF to Markdown conversion with layout preservation is achieved by running the layout-parsing script on a local or URL file. It returns structured Markdown and JSON outputs that retain headers, tables, formulas, and figures for direct pipeline ingestion.

Does PaddleOCR document parsing work with both local PDF files and image URLs?

PaddleOCR document parsing supports both local PDF files and remote image URLs as inputs. You provide the path to either source, and the skill processes the document to generate structured JSON and Markdown outputs while maintaining the original layout.

Can I extract tables and formulas from invoices and research papers into JSON?

Extracting tables and formulas from invoices and research papers into JSON is supported through layout-aware parsing. The skill intelligently identifies and preserves these complex structural elements, outputting them within a complete JSON envelope for analysis and archival.

What do I need to set up before using PaddleOCR for document parsing?

Before using PaddleOCR for document parsing, you need API credentials configured via environment variables. You also need to install dependencies including httpx, Pillow, and pypdfium2 to ensure the layout-parsing endpoint can process your PDFs and images correctly.

What is the best way to structure complex documents for knowledge base ingestion?

The best way to structure complex documents for knowledge base ingestion is using layout-aware parsing that outputs Markdown and JSON. This approach preserves multi-column relationships, headers, and figures, providing structured data ready for CMS or pipeline integration.

Why does my document parsing output include pruned results alongside the Markdown text?

Document parsing output includes pruned results alongside Markdown text because the skill returns a complete envelope. This contains top-level text and per-page Markdown alongside pruned results to give you granular control over the extracted structured data.