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 *