Skill by benchflow-ai
Guides an AI assistant through PDF tasks such as extracting text and tables, creating PDFs, merging and splitting files, and filling forms. Aimed at developers and analysts who process documents programmatically.
Install pdf
Built from the published package, never by AI.
git clone --depth 1 https://github.com/benchflow-ai/skillsbench /tmp/skillsbench && mkdir -p ~/.claude/skills && cp -r /tmp/skillsbench/tasks-extra/find-topk-similiar-chemicals/environment/skills/pdf ~/.claude/skills/pdfRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/benchflow-ai/skillsbench /tmp/skillsbench && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skillsbench/tasks-extra/find-topk-similiar-chemicals/environment/skills/pdf ~/.gemini/antigravity-cli/skills/pdfAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The pdf skill is a guide for processing PDF files with Python libraries and command-line tools. It covers extracting text and tables, creating new PDFs, merging and splitting files, rotating pages, adding watermarks, and password protection. Examples use pypdf for basic operations, pdfplumber for text and table extraction, and reportlab for creating documents. Command-line examples use pdftotext, qpdf, pdftk and pdfimages.
The guide includes code snippets for each task and a quick reference table that maps tasks to tools. For OCR of scanned PDFs, it converts pages to images with pdf2image and reads them with pytesseract. Form filling is covered in a separate forms.md file, and advanced usage is in reference.md. The skill is aimed at developers and analysts who want programmatic document processing and analysis. The source states a proprietary license with terms in LICENSE.txt.
Written from the project's SKILL.md and checked against it.
What it can do
- Extract textReads text from PDF pages with pdfplumber or pdftotext.
- Extract tablesPulls tables from pages with pdfplumber and can export them to Excel.
- Merge PDFsCombines several PDF files into one document with pypdf or qpdf.
- Split PDFSplits a PDF into one file per page, or into page ranges with qpdf.
- Rotate pagesRotates PDF pages by a set number of degrees.
- Extract metadataReads title, author, subject and creator fields from a PDF.
- Create PDFsBuilds new PDFs with reportlab using canvas or multi-page layouts.
- Add watermarkOverlays a watermark page onto every page of a document.
- Password protectionEncrypts a PDF with a user password and an owner password using pypdf.
- OCR scanned PDFsConverts pages to images and extracts text with pytesseract.
What you need
- Python
- pypdf, pdfplumber and reportlab Python libraries
- poppler-utils for pdftotext and pdfimages
- qpdf command-line tool
- pytesseract and pdf2image for OCR
- pdftk (optional, if available)
Try asking
- Extract all tables from this PDF and save them to an Excel file.
- Merge these three PDF files into one document.
- Add a watermark to every page of document.pdf.
Good to know
- The source states a proprietary license, with full terms in LICENSE.txt.
- Form filling is detailed in forms.md, not in the main guide.
- pdftk is noted as usable only if it is available on the system.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: tasks-extra/find-topk-similiar-chemicals/environment/skills/pdf/SKILL.md, tasks-extra/find-topk-similiar-chemicals/environment/skills/pdf/scripts/check_bounding_boxes.py, tasks-extra/find-topk-similiar-chemicals/environment/skills/pdf/scripts/check_bounding_boxes_test.py, tasks-extra/find-topk-similiar-chemicals/environment/skills/pdf/scripts/check_fillable_fields.py, tasks-extra/find-topk-similiar-chemicals/environment/skills/pdf/scripts/convert_pdf_to_images.py, tasks-extra/find-topk-similiar-chemicals/environment/skills/pdf/scripts/create_validation_image.py, tasks-extra/find-topk-similiar-chemicals/environment/skills/pdf/scripts/extract_form_field_info.py, tasks-extra/find-topk-similiar-chemicals/environment/skills/pdf/scripts/fill_fillable_fields.py, tasks-extra/find-topk-similiar-chemicals/environment/skills/pdf/scripts/fill_pdf_form_with_annotations.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
LICENSE.txt1 KB -
SKILL.md9 KB -
forms.md9 KB -
reference.md16 KB -
scripts/check_bounding_boxes.py3 KB
Show all 12 files
-
scripts/check_bounding_boxes_test.py8 KB -
scripts/check_fillable_fields.py362 B -
scripts/convert_pdf_to_images.py1 KB -
scripts/create_validation_image.py2 KB -
scripts/extract_form_field_info.py6 KB -
scripts/fill_fillable_fields.py5 KB -
scripts/fill_pdf_form_with_annotations.py3 KB
Alternatives to pdf
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
pdf: common questions
Which Python libraries does the pdf skill use?
The guide uses pypdf for basic operations, pdfplumber for text and table extraction, and reportlab for creating PDFs. It also shows pytesseract and pdf2image for OCR.
Can it extract text from scanned PDFs?
The guide shows OCR for scanned PDFs. It converts each page to an image with pdf2image and reads the text with pytesseract.
Does the pdf skill fill PDF forms?
The main guide says form filling is covered in forms.md and lists pdf-lib or pypdf as options. The form details are not in the main file.
How do I install pdf?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pdf free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is pdf safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pdf?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
