# PDF-To-MD **Repository Path**: nuo534202/PDF-To-MD ## Basic Information - **Project Name**: PDF-To-MD - **Description**: 用于将文字可选中的技术类 PDF(文档/教程/手册)精准转换为干净 Markdown的工具 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-02-06 - **Last Updated**: 2026-02-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: Markdown, Python ## README # PDF-To-MD PDF-To-MD converts text-based PDFs (technical docs, tutorials, manuals) into clean Markdown with high-precision code block detection. Images, tables, and figures are silently skipped to keep the output pure and GitHub/GitLab ready. ## Features - High-precision code block detection (font + content rules) - Preserves paragraph structure and code indentation - Silently skips images/tables/figures (no placeholders) - Lightweight language inference for code fences ## Limitations - ✅ Only supports text-based PDFs where text is selectable - ❌ Does not support scanned PDFs or screenshots (non-selectable text) - 🖼️ Images/tables/figures are skipped without any output markers ## Quick Start 1) Install dependencies ``` pip install -r requirements.txt ``` 2) Convert a PDF ``` python -m pdf_to_md.cli -i input.pdf -o output.md ``` 3) Optional verbose logs ``` python -m pdf_to_md.cli -i input.pdf -o output.md -v ``` ## Project Structure All Python source files live under the package directory: ``` pdf_to_md/ ``` ## Philosophy “Output less rather than wrong.” The tool prioritizes precision for text and code, ensuring clean Markdown without visual noise from non-text elements.