https://github.com/opendatalab/MinerU.git

赵小蒙 63a4a06255 update demo model json and code 1 rok pred
.github c69f414b20 update pypi upload logic 1 rok pred
demo 63a4a06255 update demo model json and code 1 rok pred
magic_pdf 7dcf63e69c fix:close some log output if not in debug mode 1 rok pred
others c9c14beab3 更新readme 1 rok pred
tests b7a2f547bb skip case 1 rok pred
tools 484b33044f add case 1 rok pred
.gitignore 016cde3ece 修复init错误 1 rok pred
LICENSE.md 9fe81795bc Create LICENSE.md 1 rok pred
README.md 6995bebfe5 update readme 1 rok pred
README_zh-CN.md 9d62940217 update readme 1 rok pred
magic-pdf.template.json 02d805ea9b 增加重构函数位置 1 rok pred
requirements.txt df14c61f6f update: Enhance the capability to detect garbled document issues 1 rok pred
setup.py 129288aae6 update setup config 1 rok pred
update_version.py 7fd8d97edb fix error: version is 0.0.0 1 rok pred

README.md

[![stars](https://img.shields.io/github/stars/magicpdf/Magic-PDF.svg)](https://github.com/magicpdf/Magic-PDF) [![forks](https://img.shields.io/github/forks/magicpdf/Magic-PDF.svg)](https://github.com/magicpdf/Magic-PDF) [![license](https://img.shields.io/github/license/magicpdf/Magic-PDF.svg)](https://github.com/magicpdf/Magic-PDF/tree/main/LICENSE) [![issue resolution](https://img.shields.io/github/issues-closed-raw/magicpdf/Magic-PDF)](https://github.com/magicpdf/Magic-PDF/issues) [![open issues](https://img.shields.io/github/issues-raw/magicpdf/Magic-PDF)](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

  • Python 3.9 or newer

Usage Instructions

  1. Install Magic-PDF

    pip install magic-pdf[cpu] # Install the CPU version 
    or
    pip install magic-pdf[gpu] # Install the GPU version
    
  2. Usage via Command Line

    magic-pdf --help
    

All Thanks To Our Contributors

License Information

See LICENSE.md for details.

Acknowledgments