Imported from lwmxiaobei/xbcode (skills/pdf/SKILL.md). Install upstream with npx skills add lwmxiaobei/xbcode --skill pdf. Copyright stays with the author.
PDF Processing
To work with PDF files:
Use bash to check if pdftotext is available: which pdftotext
If not installed, suggest: brew install poppler (macOS) or apt install poppler-utils (Linux)
Extract text: pdftotext input.pdf - (outputs to stdout)
For structured extraction: pdftotext -layout input.pdf -