PDF Extract
Process PDF files from the shared volume at {{SHARED_VOLUME}}.
Extract Text
# Extract all text
pdftotext {{SHARED_VOLUME}}/input/document.pdf {{SHARED_VOLUME}}/output/document.txt
# Extract text from specific pages
pdftotext -f 1 -l 5 {{SHARED_VOLUME}}/input/document.pdf {{SHARED_VOLUME}}/output/pages.txt
Get PDF Info
pdfinfo {{SHARED_VOLUME}}/input/document.pdf
Tips for AI Agents
- Use
pdftotext(poppler-utils) for reliable text extraction. - Use
tabula-javaorcamelotfor structured table extraction. - OCR-scanned PDFs require
tesseractfor text recognition.