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

赵小蒙 d5e30f8da5 fix:use deepcopy keep the original model json пре 1 година
.github c69f414b20 update pypi upload logic пре 1 година
demo 8e537ed554 add demo pdf пре 1 година
magic_pdf d5e30f8da5 fix:use deepcopy keep the original model json пре 1 година
others c9c14beab3 更新readme пре 1 година
tests b7a2f547bb skip case пре 1 година
tools 484b33044f add case пре 1 година
.gitignore 016cde3ece 修复init错误 пре 1 година
LICENSE.md 9fe81795bc Create LICENSE.md пре 1 година
README.md 6995bebfe5 update readme пре 1 година
README_zh-CN.md 9d62940217 update readme пре 1 година
magic-pdf.template.json 02d805ea9b 增加重构函数位置 пре 1 година
requirements.txt df14c61f6f update: Enhance the capability to detect garbled document issues пре 1 година
setup.py 129288aae6 update setup config пре 1 година
update_version.py 7fd8d97edb fix error: version is 0.0.0 пре 1 година

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