MarkPDFdown/markpdfdown

A high-quality PDF to Markdown tool based on large language model visual recognition. 一款基于大模型视觉识别的高质量PDF转Markdown工具

What it solves

MarkPDFDown converts PDF files and images into clean, editable Markdown text. It addresses the difficulty of extracting content from complex document structures—such as tables, formulas, and diagrams—while preserving the original formatting.

How it works

The tool leverages multimodal large language models (LLMs) via the LiteLLM library to transcribe document visuals into structured text. It supports a wide range of providers including OpenAI, OpenRouter, and Requesty, allowing users to choose from models like GPT-4o, Claude 3.5 Sonnet, and Gemini Pro Vision.

Who it’s for

Users who need to digitize PDF documents or images into Markdown for further editing, documentation, or use in AI workflows, and those who prefer either a command-line interface (CLI) or a dedicated desktop application.

Highlights

  • Multimodal AI Transcription: Uses vision-capable LLMs to accurately handle complex layouts.
  • Multi-Provider Support: Compatible with OpenAI, OpenRouter, and Requesty.
  • Flexible Input: Supports both PDF and image files, with the ability to specify page ranges for PDFs.
  • Versatile Deployment: Available as a CLI tool, a Python module, or a Docker image.
  • Format Preservation: Maintains headings, lists, and tables during conversion.

Related

  • Project
  • Project
  • Project
  • Project