Skip to content
Back to skills

Pdf Skill

ASecurity

Expert in generating, parsing, and manipulating PDF documents using tools like PDFKit, PDF.js, and Puppeteer. Use when creating PDFs, extracting content, merging documents, or filling forms. Triggers include "PDF", "generate PDF", "parse PDF", "extract PDF", "merge PDF", "PDF form", "PDFKit".

  • 225 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added September 4, 2026
toolspythonbashnodesecurity

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 13 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add NeverSight/skills_feed --skill pdf-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pdf Skill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pdf Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-pdf-skill/badge)](https://www.skillsdirectory.com/skills/neversight-pdf-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pdf-skill
description: Expert in generating, parsing, and manipulating PDF documents using tools like PDFKit, PDF.js, and Puppeteer. Use when creating PDFs, extracting content, merging documents, or filling forms. Triggers include "PDF", "generate PDF", "parse PDF", "extract PDF", "merge PDF", "PDF form", "PDFKit".
---

# PDF Skill

## Purpose
Provides expertise in programmatic PDF generation, parsing, and manipulation. Specializes in creating PDFs from scratch, extracting content, merging/splitting documents, and handling forms using PDFKit, PDF.js, Puppeteer, and similar tools.

## When to Use
- Generating PDFs programmatically
- Extracting text or data from PDFs
- Merging or splitting PDF documents
- Filling PDF forms programmatically
- Converting HTML to PDF
- Adding watermarks or annotations
- Parsing PDF structure and metadata
- Building PDF report generators

## Quick Start
**Invoke this skill when:**
- Generating PDFs from code or data
- Extracting content from PDF files
- Merging, splitting, or manipulating PDFs
- Filling or creating PDF forms
- Converting HTML/web pages to PDF

**Do NOT invoke when:**
- Word document creation → use `/docx-skill`
- Excel/spreadsheet work → use `/xlsx-skill`
- PowerPoint creation → use `/pptx-skill`
- General file operations → use Bash or file tools

## Decision Framework
```
PDF Operation?
├── Generate from scratch
│   ├── Simple → PDFKit (Node) / ReportLab (Python)
│   └── Complex layouts → Puppeteer/Playwright + HTML
├── Parse/Extract
│   ├── Text extraction → pdf-parse / PyPDF2
│   └── Table extraction → Camelot / Tabula
├── Manipulate
│   └── pdf-lib (merge, split, edit)
└── Forms
    └── pdf-lib (fill) / PDFtk (advanced)
```

## Core Workflows

### 1. PDF Generation with PDFKit
1. Install PDFKit (`npm install pdfkit`)
2. Create new PDDocument
3. Add content (text, images, graphics)
4. Style with fonts and colors
5. Add pages as needed
6. Pipe to file or response

### 2. HTML to PDF Conversion
1. Set up Puppeteer/Playwright
2. Navigate to HTML content or URL
3. Configure page size and margins
4. Set print options (headers, footers)
5. Generate PDF buffer
6. Save or stream result

### 3. PDF Parsing and Extraction
1. Choose parser (pdf-parse, PyPDF2, pdfplumber)
2. Load PDF file
3. Extract text or structured data
4. Handle multi-page documents
5. Clean and normalize extracted text
6. Output in desired format

## Best Practices
- Use vector graphics over raster when possible
- Embed fonts for consistent rendering
- Test PDF output across different readers
- Handle large PDFs with streaming
- Use appropriate library for task complexity
- Consider accessibility (tagged PDFs)

## Anti-Patterns
| Anti-Pattern | Problem | Correct Approach |
|--------------|---------|------------------|
| Image-only PDFs | Not searchable/accessible | Use text with fonts |
| No font embedding | Rendering issues | Embed required fonts |
| Memory loading large PDFs | Crashes | Stream processing |
| Ignoring encryption | Security/access issues | Handle encrypted PDFs |
| Wrong tool for job | Over-engineering | Match tool to complexity |

Files in this skill

  • SKILL.md3.1 KB
  • description_ar.txt439 B
  • description_cn.txt293 B
  • description_de.txt423 B
  • description_en.txt294 B
  • description_es.txt329 B
  • description_fr.txt432 B
  • description_it.txt353 B
  • description_ja.txt437 B
  • description_ko.txt350 B
  • description_ru.txt596 B
  • description_tw.txt293 B
  • stats.json66 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.