Baidu Unlimited-OCR Document Parser converts complex PDFs, office files, and images into structured Markdown without model deployment.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install baidu-doc-unlimited-ocr-parser
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install baidu-doc-unlimited-ocr-parser using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
This Openclaw Skills integration provides a ready-to-use interface for Baidu's Unlimited-OCR document analysis API. It accepts PDFs, Word files, PowerPoint presentations, text documents, and images, then returns Markdown with structured text and embedded HTML tables for complex layouts, merged cells, row spans, column spans, alignment, and line breaks.
The skill uses an asynchronous task workflow designed for long documents and batch processing. Developers submit a file or public URL, poll the returned task ID, and download the resulting Markdown or auxiliary JSON through temporary result URLs. It supports PDFs up to 500 pages and avoids the operational overhead of deploying an OCR model locally.
BAIDU_DOC_AI_API_KEY and BAIDU_DOC_AI_SECRET_KEY.file_data or a public file_url, along with the correct file_name extension. file_data takes priority when both are supplied.application/x-www-form-urlencoded data.result.task_id and wait approximately 5–10 seconds before the first status check.result.status, which can be pending, running, success, or failed.result.markdown_url; optionally retrieve the auxiliary JSON from result.parse_result_url.log_id, error_code, and error_msg for troubleshooting.export BAIDU_DOC_AI_API_KEY="your_api_key"
export BAIDU_DOC_AI_SECRET_KEY="your_secret_key"
python3 -m pip install requests
scripts/baidu_doc_unlimited_ocr_parser.py and keep the supporting reference files available, including references/parameters.md, references/error_codes.md, and references/apikey-fetch.md.python3 scripts/baidu_doc_unlimited_ocr_parser.py --file_data <base64_encoded_file> --file_name "test.pdf"
python3 scripts/baidu_doc_unlimited_ocr_parser.py --file_url <public_file_url> --file_name "test.pdf"
| Field | Required | Type | Details |
|---|---|---|---|
file_data |
One of two | string | Base64-encoded file content. Preferred over file_url; images up to 10 MB, layout documents up to 100 MB, flow documents up to 50 MB. |
file_url |
One of two | string | Public file URL up to 1,024 bytes. PDF files may be up to 100 MB and 500 pages. |
file_name |
Yes | string | Original filename with a correct extension, such as test.pdf. |
angle_adjust |
No | boolean | Enables image angle correction; defaults to True. |
angle_mode |
No | string | direction for four-direction correction or arbitrary for arbitrary angles. |
erase_seal |
No | boolean | Removes seals or stamps when enabled; defaults to False. |
erase_watermark |
No | boolean | Removes watermarks when enabled; defaults to False. |
unwarp |
No | boolean | Corrects image distortion when enabled; defaults to False. |
pdf, jpg, jpeg, png, bmp, tif, tiff, and ofd; images must not exceed 8,192 pixels on the longest edge.doc, docx, txt, wps, ppt, and pptx.| Field | Meaning |
|---|---|
log_id |
Unique diagnostic identifier for support and troubleshooting. |
error_code |
Numeric API or task error code. |
error_msg |
Human-readable error description. |
result.task_id |
Identifier used to query asynchronous processing status. |
result.status |
pending, running, success, or failed. |
result.task_error |
Task-level failure details, including quota or parsing errors. |
result.markdown_url |
Temporary Markdown result URL, valid for 30 days. |
result.parse_result_url |
Temporary BOS JSON result URL, valid for 30 days. |
The primary generated artifact is a Markdown file containing structured text. Complex tables are embedded as HTML <table> elements with support for rowspan, colspan, alignment, and line breaks. The optional JSON result is retained as an auxiliary format for future or downstream processing. The skill implementation is provided by scripts/baidu_doc_unlimited_ocr_parser.py, while API parameters and error taxonomy are documented in the references/ directory.
file_data prioritized when both are present.282003) and unknown task IDs (282007) can be handled using the included error-code reference.Loading
Plan & Review turns timestamped market snapshots into validated pre-market plans, intraday reviews, post-market analysis, and trading discipline scores.

Safely refreshes reference comments and URLs from an upstream sample without changing the user's live configuration.

Fetches the SOK jobs board and clearly summarizes available Solana agent work, rewards, status, and delivery requirements.

Autopilot Guiones F100K finds the day’s most relevant AI news and turns it into three recording-ready short-form video scripts.

Create lightweight, searchable, Unicode-safe PDF documents with Python and fpdf2 when reportlab is unavailable or unsuitable.

A complete developer reference for installing, configuring, customizing, and troubleshooting the fast, cross-shell Starship prompt.








































