Repository navigation
v1.0.0 - 100% Local & Privacy-First PDF to Markdown Converter
Pre-release
Pre-release
🎉 What's New in v1.0.0
A lightweight, high-performance, and privacy-preserving tool to convert PDF documents into clean, LLM-ready GitHub-Flavored Markdown (GFM). 100% offline, zero cloud API costs, with seamless Windows context menu integration.
✨ Key Features / 核心亮點
- 🔒 100% Local & Privacy-First(本機離線與隱私優先):
- 所有解析均在本地完成,文件不離開電腦、無遙測、零外洩風險。
- All conversions run locally on your machine. Zero network requests, zero telemetry, and complete data privacy.
- 💰 Zero API Cost(零 API 成本):
- 無需任何 OpenAI、Anthropic 等付費金鑰,版面分析與 OCR 全程免額外花費。
- No cloud LLM / Vision API keys required. $0.00 forever.
- 👁️ Built-in Offline OCR(內建本地離線 OCR):
- 掃描型與圖片 PDF 自動調用輕量 ONNX RapidOCR 引擎辨識文字。
- Scanned and raster-image PDFs are automatically recognized offline via RapidOCR.
- 📊 LLM-Ready Markdown Structure(優化結構化排版):
- 自動提取並生成 GFM 管道表格(
| col | col |)、標題階層(#,##)及多欄閱讀順序。 - Accurately converts tables into GitHub-Flavored Markdown pipe tables and preserves heading hierarchies.
- 自動提取並生成 GFM 管道表格(
- 🖱️ Windows Context Menu 1-Click Setup(Windows 右鍵選單一鍵整合):
- 提供一鍵安裝批次檔,右鍵點擊 PDF 即可「轉換為 Markdown (.md)」,背景靜默執行無黑視窗。
- Double-click
install_context_menu.batto enable right-click conversion directly in Windows Explorer.
- 💻 Cross-Platform & VS Code Ready(跨平台與 VS Code 支援):
- 支援 Windows、macOS 與 Linux 命令列操作,並內建 VS Code 快捷鍵(
Ctrl+Shift+B/Cmd+Shift+B)一鍵轉換。
- 支援 Windows、macOS 與 Linux 命令列操作,並內建 VS Code 快捷鍵(
📦 Quick Start / 快速開始
# 1. Clone the repository
git clone https://github.com/Lin-yu5/PDF_to_md.git
cd PDF_to_md
# 2. Install dependencies
pip install -r requirements.txt
# 3. Convert a PDF
python pdf_to_md.py document.pdf