evo-document-text-extraction
Extracts text from PDF, DOCX, and PPTX files using PyPDF2, pdfplumber, pdftotext CLI, and stdlib zipfile+XML fallbacks.
Files2
View on GitHubSKILL.mdtasks-evolved/organize-messy-files/environment/skills/evo-document-text-extraction/SKILL.md
GitHubevo-document-text-extraction
Usage
import sys
sys.path.insert(0, '/app/environment/skills/evo-document-text-extraction/scripts')
from utils import extract_text, extract_text_pdf, extract_text_docx, extract_text_pptx
text = extract_text('/path/to/file.pdf') # auto-detects format
Key Functions
extract_text(filepath, max_pages=3)- unified interface, auto-detects by extensionextract_text_pdf(filepath, max_pages=3)- PDF with fallback chain: PyPDF2 -> pdftotext -> pdfplumberextract_text_docx(filepath)- DOCX via zipfile+XML stdlibextract_text_pptx(filepath)- PPTX via zipfile+XML stdlibextract_text_pdftotext_cli(filepath, max_pages=3)- pdftotext CLI wrapper