pdf-extract
Extract text from PDF files or folders of PDFs and save as sidecar .txt files
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Extract text from PDF files or folders of PDFs and save as sidecar .txt files
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | pdf-extract |
| description | Extract text from PDF files or folders of PDFs and save as sidecar .txt files |
Extract text from PDF files — either a single .pdf file or all PDFs recursively under a folder — and save each result as a .txt file alongside the source PDF.
When the user asks to extract text from a PDF file or from PDFs in a folder, run the following command:
dotnet run "${CLAUDE_SKILL_DIR}/pdf-extract.cs" <rootFolder|file.pdf>
${CLAUDE_SKILL_DIR} resolves to this skill's directory regardless of where it's installed (project-level .claude/skills/, user-level ~/.claude/skills/, etc.). Replace <rootFolder|file.pdf> with the absolute or relative path to a directory or a single .pdf file.
.pdf file under the given folder and all subfolders..pdf file directly.<filename>.pdf.txt in the same directory as the source PDF..txt file (idempotent — safe to re-run).[OK], [SKIP], or [ERROR].Scanning: /data/documents
[SKIP] /data/documents/archive/old-report.pdf
[OK] /data/documents/2025/annual-report.pdf
[ERROR] /data/documents/corrupt.pdf
PdfDocumentEncryptedException: The document is encrypted and cannot be read without a password.
Done. Total: 3 | Processed: 1 | Skipped: 1 | Errors: 1
dotnet available on the PATH.UglyToad.PdfPig@0.1.13 NuGet package is restored automatically on first run..txt output files)..txt files.[ERROR] entry and be skipped.