PDF

Use when the user wants to create, merge, split, or extract text from PDF files.

anujkumar8076 Updated

File contents

PDF Skill

Create new PDFs and manipulate existing ones.

Setup

pip install pypdf reportlab

Merging PDFs

Use pypdf.PdfWriter, append each input file in order, and write the merged result to a new file.

Splitting a PDF

Read the source with PdfReader, then write each page (or page range) to its own PdfWriter output.

Extracting text

Call page.extract_text() per page. For scanned documents this returns empty text — tell the user OCR is needed rather than returning blank output.

Output format

Write results next to the input file unless the user names a destination.

anujkumar8076/skill-router-mcp/tree/main/skills/pdf commit 070d903741

Frequently asked questions

npx skillmds@latest add anujkumar8076/pdf