Skip to content

Broad PDF toolkit covering extraction, merging, splitting, creation, forms, and OCR with Python and CLI tools.

CCM score
65 of 100
skills.sh installs
247
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers reading, extracting text and tables, merging, splitting, rotating, watermarking, encrypting, image extraction, and OCR of scanned PDFs
  • Includes worked examples with pypdf, pdfplumber, reportlab, qpdf, pdftotext, and pytesseract, plus a quick-reference table of tools by task
  • Enforces a rule against Unicode subscript and superscript characters in ReportLab output, using <sub> and <super> markup instead
  • Designed for tasks involving any .pdf file, with form filling delegated to a separate FORMS.md reference

Install

$ npx -y skills add davila7/claude-code-templates --skill 'PDF Processing' -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

PDF Processing Guide

Overview

This guide covers essential PDF processing operations using Python libraries and command-line tools. For advanced features, JavaScript libraries, and detailed examples, see REFERENCE.md. If you need to fill out a PDF form, read FORMS.md and follow its instructions.

Quick Start

from pypdf import PdfReader, PdfWriter

# Read a PDF
reader = PdfReader("document.pdf")
print(f"Pages: {len(reader.pages)}")

# Extract text
text = ""
for page in reader.pages:
    text += page.extract_text()

Python Libraries

pypdf - Basic Operations

Merge PDFs
from pypdf import PdfWriter, PdfReader

writer = PdfWriter()
for pdf_file in ["doc1.pdf", "doc2.pdf", "doc3.pdf"]:
    reader = PdfReader(pdf_file)
    for page in reader.pages:
        writer.add_page(page)

with open("merged.pdf", "wb") as output:
    writer.write(output)
Split PDF
reader = PdfReader("input.pdf")
for i, page in enumerate(reader.pages):
    writer = PdfWriter()
    writer.add_page(page)
    with open(f"page_{i+1}.pdf", "wb") as output:
        writer.write(output)

Details

Repository
github.com/davila7/claude-code-templates
Category
Office Files & Slides
First seen
Jun 3, 2026

Questions

What does the PDF Processing skill do?

PDF Processing gives Claude Code guidance for working with PDF files, including extracting text and tables, merging and splitting PDFs, rotating pages, adding watermarks, creating new PDFs, filling forms, encrypting PDFs and running OCR on scanned files. It is meant for any request that mentions a .pdf file or asks to produce one.

How do I install the PDF Processing skill?

Run npx -y skills add davila7/claude-code-templates --skill 'PDF Processing' -y in your project. Once installed, the PDF Processing skill lets the agent handle PDF reading, editing and creation tasks described in its guide.

Which Python libraries does the PDF Processing skill rely on?

The PDF Processing skill's guide uses pypdf for basic operations, pdfplumber for text and table extraction, and reportlab for creating PDFs. For scanned files it uses pytesseract with pdf2image, which the guide says to install first.

Which skills are the PDF Processing skill's closest neighbors in its category?

PDF Processing is listed in the Office Files & Slides category on Claude Marketplaces, alongside slideshow, lark-doc, lark-drive, lark-sheets and lark-whiteboard. Its focus is narrower, covering PDF files specifically rather than slides or spreadsheets.

More from davila7/claude-code-templates

All 398

Similar to PDF Processing

More Office Files & Slides