pdf-to-txt
星标14
分支0
更新时间2026年2月8日 10:01
Convert PDF files to plain text using PyMuPDF4LLM
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
文件资源管理器
2 个文件SKILL.md
readonly菜单
Convert PDF files to plain text using PyMuPDF4LLM
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Transcribe audio files to text with automatic language detection (supports Chinese and English)
Download podcast episodes from 小宇宙 (Xiaoyuzhou.fm) and Apple Podcasts
Download audio from YouTube and Twitter/X links
| name | pdf-to-txt |
| description | Convert PDF files to plain text using PyMuPDF4LLM |
| metadata | {"openclaw":{"emoji":"📄","requires":{"bins":["python3"],"python_packages":["pymupdf4llm"]},"install":[{"id":"pip-pymupdf4llm","kind":"pip","command":"pip install pymupdf4llm","label":"Install PyMuPDF4LLM via pip"}]}} |
Convert PDF files to plain text format using PyMuPDF4LLM. This tool extracts text content from PDF documents while preserving the reading order and basic formatting.
Convert a PDF to text file:
python {baseDir}/scripts/convert.py "<pdf_path>"
Output will be saved as <pdf_filename>.txt in the same directory as the PDF.
python {baseDir}/scripts/convert.py "<pdf_path>" --output "~/Documents/output.txt"
Use --markdown flag to get Markdown-formatted output with headers, lists, and other formatting hints:
python {baseDir}/scripts/convert.py "<pdf_path>" --markdown
Convert only specific pages:
# Convert pages 1-10 only
python {baseDir}/scripts/convert.py "<pdf_path>" --pages 1-10
# Convert single page
python {baseDir}/scripts/convert.py "<pdf_path>" --pages 5
# Basic conversion
python {baseDir}/scripts/convert.py "~/Documents/paper.pdf"
# Output: ~/Documents/paper.txt
# With custom output path
python {baseDir}/scripts/convert.py "~/Documents/paper.pdf" --output "~/Notes/paper_content.txt"
# Markdown output
python {baseDir}/scripts/convert.py "~/Documents/paper.pdf" --markdown --output "~/Notes/paper.md"
# Convert first 5 pages only
python {baseDir}/scripts/convert.py "~/Documents/book.pdf" --pages 1-5 --output "~/Notes/chapter1.txt"
--markdown)#- or *