pdf-to-markdown

Convert PDF documents into structured Markdown with PyMuPDF and DocLing.

9|5|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/x402agent/SolanaOS --skill pdf-to-markdown-x402agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf-to-markdown
Source: https://github.com/x402agent/SolanaOS/tree/main/skills/pdf-to-markdown
Command: npx skills add https://github.com/x402agent/SolanaOS --skill pdf-to-markdown-x402agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

PDF content is often locked behind complex layouts and archives, making it hard to reuse in AI workflows. This skill converts PDFs into clean, structured Markdown that preserves text, images, and tables for seamless processing by LLMs.

Core Features & Use Cases

  • Fast extraction using PyMuPDF for quick digitization of simple PDFs.
  • Accurate tables and figures support via DocLing integration for complex layouts.
  • Persistent caching and image handling to speed up repeated conversions and manage assets.
  • Use Case: Turn a batch of research papers into Markdown for downstream summarization and data extraction.

Quick Start

Install dependencies and run python pdf_to_md.py input.pdf to produce input.md.

Frequently Asked Questions about pdf-to-markdown

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

FAQPage Schema
How do I convert PDF documents to Markdown for AI workflows?

You can convert PDF documents to Markdown for AI workflows by using a script that processes files with PyMuPDF for fast text extraction or DocLing for accurate table detection. This transforms multi-page research papers and reports into clean, structured text optimized for LLM context.

Does this PDF to Markdown tool extract tables and images?

Yes, the PDF to Markdown conversion extracts tables and images. It uses DocLing integration for accurate table detection in complex layouts and includes image handling to manage assets, ensuring structured text and data are preserved for downstream AI processing.

Can I use PyMuPDF and DocLing together for PDF text extraction?

Yes, you can use PyMuPDF and DocLing together for PDF text extraction. PyMuPDF handles fast extraction for simple PDFs, while DocLing provides accurate table and figure detection for complex layouts, ensuring comprehensive content digitization for AI workflows.

What is the best way to convert a batch of research papers into Markdown?

The best way to convert a batch of research papers into Markdown is using a PDF conversion script with persistent caching. This speeds up repeated conversions and produces clean, structured text ideal for downstream summarization and data extraction by LLMs.

Do I need any external dependencies to run the PDF to Markdown conversion?

You need to install dependencies like PyMuPDF and DocLing to run the PDF to Markdown conversion. Once installed, you execute the script via CLI or programmatically to transform your PDF documents into AI-friendly Markdown files.