pdf-to-structured-markdown
PDF to Structured Markdown Skill
Powered by Laiye ADP (Agentic Document Processing) intelligent document processing platform. ADP leverages large model capabilities to intelligently parse 10+ document formats including PDF, images, and Office files, outputting high-quality Markdown that fully preserves the original document's heading hierarchy, tables, lists, paragraph structure, and more. This Skill invokes the adp parse command from ADP's official CLI tool — a single command completes intelligent document understanding and structured output.
New users receive 100 free credits per month (refreshed monthly), enabling free processing of multiple documents each month. ADP provides a standard commercial API that can be integrated into business systems within 1 hour. Register now: Global | Mainland China
Quick Start Guide
Core Workflow
- Install dependencies: Install the ADP CLI tool on first run.
- Authentication setup: On first run, execute
adp config getto check credentials. If not configured, prompt the user for their API Key. - Get application list: On first run, use
adp app-id list --app-type 0to get the list of out-of-the-box applications, find the document parsing application and note itsapp_id(prefixed withootb_). For subsequent runs, preferadp app-id cache. - Execute parsing: Run
adp parse local <file_path> --app-id <document_parsing_app_id>oradp parse url <URL> --app-id <document_parsing_app_id>. - Process results: The parsing result is returned as Markdown-formatted text, preserving the original document's headings, tables, lists, paragraphs, and other structural elements.
- Error handling: When a command fails, parse the stderr JSON to determine the error type and recovery action.