[](https://github.com/magicpdf/Magic-PDF)
[](https://github.com/magicpdf/Magic-PDF)
[](https://github.com/magicpdf/Magic-PDF/tree/main/LICENSE)
[](https://github.com/magicpdf/Magic-PDF/issues)
[](https://github.com/magicpdf/Magic-PDF/issues)
[English](README.md) | [简体中文](README_zh-CN.md)
Magic-PDF
Introduction
Magic-PDF is a tool designed to convert PDF documents into Markdown format, capable of processing files stored locally or on object storage supporting S3 protocol.
Key features include:
- Support for multiple front-end model inputs
- Removal of headers, footers, footnotes, and page numbers
- Human-readable layout formatting
- Retains the original document's structure and formatting, including headings, paragraphs, lists, and more
- Extraction and display of images and tables within markdown
- Conversion of equations into LaTeX format
- Automatic detection and conversion of garbled PDFs
- Compatibility with CPU and GPU environments
- Available for Windows, Linux, and macOS platforms
Getting Started
Requirements
Usage Instructions
Install Magic-PDF
pip install magic-pdf[cpu] # Install the CPU version
or
pip install magic-pdf[gpu] # Install the GPU version
Usage via Command Line
magic-pdf --help
All Thanks To Our Contributors
License Information
See LICENSE.md for details.
Acknowledgments