pdf-to-txt
Convert PDF files to plain text using PyMuPDF4LLM
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
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 *