Tooluck logoTooluck
SKILL.md

pdf

Agent skill fromeigent-ai/eigent

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

How to install pdf

install pdf
# install the eigent pack with the skills CLI
npx skills add eigent-ai/eigent

# or add only this skill to Claude Code: copy the folder

resources/example-skills/pdf/

# into

~/.claude/skills/pdf/ (all projects)

.claude/skills/pdf/ (one project)

resources/example-skills/pdf/SKILL.md

Apache-2.0Full file
1# PDF Processing Guide
2
3## Overview
4
5This 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.
6
7## Quick Start
8
9```python
10from pypdf import PdfReader, PdfWriter
11
12# Read a PDF
13reader = PdfReader("document.pdf")
14print(f"Pages: {len(reader.pages)}")
15
16# Extract text
17text = ""
18for page in reader.pages:
19 text += page.extract_text()
20```
21
22## Python Libraries
23
24### pypdf - Basic Operations
25
26#### Merge PDFs
27```python
28from pypdf import PdfWriter, PdfReader
29
30writer = PdfWriter()
31for pdf_file in ["doc1.pdf", "doc2.pdf", "doc3.pdf"]:
32 reader = PdfReader(pdf_file)
33 for page in reader.pages:
34 writer.add_page(page)
35
36with open("merged.pdf", "wb") as output:
37 writer.write(output)
38```
39
40#### Split PDF
41```python
42reader = PdfReader("input.pdf")
43for i, page in enumerate(reader.pages):
44 writer = PdfWriter()
45 writer.add_page(page)
46 with open(f"page_{i+1}.pdf", "wb") as output:
47 writer.write(output)
48```
49
50#### Extract Metadata
51```python
52reader = PdfReader("document.pdf")
53meta = reader.metadata
54print(f"Title: {meta.title}")
55print(f"Author: {meta.author}")
56print(f"Subject: {meta.subject}")
57print(f"Creator: {meta.creator}")
58```
59
60#### Rotate Pages
61```python
62reader = PdfReader("input.pdf")
63writer = PdfWriter()
64
65page = reader.pages[0]
66…

Excerpt shown under the repository's Apache-2.0 license.

More skills in eigent

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates