Pdf extraction
[COLM'26] SkillLearnBench is the first benchmark for evaluating continual learning methods that automatically generate agent skills.
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.
What its author says it does
Copied from the file, not written here
Extracts text from PDF documents for content analysis.
SKILL.md
1.0 KB, 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.