Pdf extraction
Extracts text from PDF documents for content analysis.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill pdf-extractionAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.0 KB, 220 tokens by cl100k_base, as published. Nobody here has run it
PDF Extraction Skill
This skill provides methods for extracting text from PDF files, which is essential for categorizing academic papers and documents.
Methods
1. Using pdftotext (Command Line)
pdftotext is a fast utility for converting PDF files to plain text.
pdftotext "filename.pdf" "output.txt"
To read the first few pages (often enough for classification):
pdftotext -f 1 -l 2 "filename.pdf" - | head -n 50
2. Using Gemini CLI pdf Skill
If the pdf skill is activated, you can use its tools to extract text or analyze forms.
// Example usage after activating skill
await pdf.extractText({ file_path: "document.pdf" });
Usage Pattern for Classification
- Extract the first page or the abstract.
- Search for key terms related to the target subjects.
- Use the extracted text to decide the destination folder.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.