Skill Document Limited info

pdf

Anthropic's official skill for working with PDFs: extract text and tables, merge, split, rotate, watermark, create, fill forms, encrypt and decrypt.

Last verified: data checked

pdf — illustration

What it is

Anthropic's official skill for working with PDFs: extract text and tables, merge, split, rotate, watermark, create, fill forms, encrypt and decrypt. It comes from Anthropic's official skills repository (anthropics/skills).

Setup

  1. Step 1

    bash
    /plugin marketplace add anthropics/skills
  2. Step 2

    bash
    /plugin install document-skills@anthropic-agent-skills

skill رسمية من Anthropic للـ PDF: استخراج نصوص وجداول، دمج، تقسيم، تعبئة نماذج وتشفير.

Examples

Ask Claude

Prompt
prompt
Use the PDF skill to extract the form fields from `path/to/some-file.pdf`

Expected output: Example from the anthropics/skills README.

Read and extract text

python
python
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()

What it does: Copied from the skill's SKILL.md.

Merge PDFs

python
python
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)

What it does: Copied from the skill's SKILL.md.