Skill by K-Dense-AI
Gives an AI assistant a guide for working with PDF files. It covers reading text and tables, merging, splitting, rotating, watermarking, creating, protecting and OCR on scanned PDFs. Aimed at users who need routine PDF processing.
Install pdf
Built from the published package, never by AI.
git clone --depth 1 https://github.com/K-Dense-AI/claude-scientific-writer /tmp/claude-scientific-writer && mkdir -p ~/.claude/skills && cp -r /tmp/claude-scientific-writer/skills/pdf ~/.claude/skills/pdfRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/K-Dense-AI/claude-scientific-writer /tmp/claude-scientific-writer && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-scientific-writer/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 gives an AI assistant a guide for common PDF work. It covers reading and extracting text and tables, merging and splitting files, rotating pages, adding watermarks, creating new PDFs, extracting images, password protection, and OCR on scanned PDFs. The guide uses Python libraries such as pypdf, pdfplumber, reportlab and pytesseract, plus command-line tools such as pdftotext, qpdf and pdfimages.
The skill points to separate reference.md and forms.md files for advanced features, JavaScript libraries such as pdf-lib, and filling PDF forms. It is aimed at users who want to read, edit, create or protect PDF files through an assistant. The skill is published by K-Dense-AI and its complete terms are in a LICENSE.txt file.
Written from the project's SKILL.md and checked against it.
What it can do
- Extract text and tablesReads text with pdfplumber and pulls tables out of PDF pages.
- Merge and split PDFsCombines several PDFs into one file or splits a PDF into separate pages.
- Rotate pagesTurns individual PDF pages by a set number of degrees.
- Add watermarksOverlays a watermark page onto every page of a PDF.
- Create PDFsBuilds new PDF files with reportlab using canvas or multi-page layouts.
- Password protectionAdds user and owner passwords to a PDF and removes passwords with qpdf.
- Extract imagesExports embedded images from a PDF using pdfimages.
- OCR scanned PDFsConverts scanned pages to images and runs OCR with pytesseract.
- Fill PDF formsPoints to a separate forms.md guide for filling PDF forms.
What you need
- Python
- poppler-utils
- qpdf
- pdftk (optional, if available)
- uv for pip install commands
Try asking
- Merge these three PDF files into one document.
- Extract all tables from report.pdf into an Excel file.
- Make scanned-contract.pdf searchable with OCR.
Good to know
- Built-in ReportLab fonts do not include Unicode subscript or superscript glyphs, so markup tags must be used instead.
- Some steps depend on command-line tools that must be installed separately, such as pdftk, which is noted as used only if available.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/pdf/SKILL.md, skills/pdf/scripts/check_bounding_boxes.py, skills/pdf/scripts/check_fillable_fields.py, skills/pdf/scripts/convert_pdf_to_images.py, skills/pdf/scripts/create_validation_image.py, skills/pdf/scripts/extract_form_field_info.py, skills/pdf/scripts/extract_form_structure.py, skills/pdf/scripts/fill_fillable_fields.py, 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.txt11 KB -
SKILL.md8 KB -
forms.md12 KB -
reference.md16 KB -
scripts/check_bounding_boxes.py3 KB
Show all 12 files
-
scripts/check_fillable_fields.py268 B -
scripts/convert_pdf_to_images.py1008 B -
scripts/create_validation_image.py1 KB -
scripts/extract_form_field_info.py4 KB -
scripts/extract_form_structure.py4 KB -
scripts/fill_fillable_fields.py4 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
Can this skill work with scanned PDFs?
Yes. The skill includes OCR for scanned PDFs, converting each page to an image with pdf2image and then running pytesseract on it.
Can it fill in PDF forms?
The skill mentions filling PDF forms and says to follow the separate forms.md file, which uses pdf-lib or pypdf.
Which libraries does the pdf skill use?
It uses Python libraries pypdf, pdfplumber, reportlab and pytesseract, along with command-line tools such as pdftotext, qpdf and pdfimages.
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 MIT licence. The service it connects to may have its own pricing.
Is pdf safe to use?
It scores 90 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.
