Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

PDFKit PDF Generation

Builds invoices and reports as PDFs in Node.js with PDFKit, including tables, page numbers and custom fonts.

Claude's review

7/10 Compact, current PDFKit guide with the built-in table API, buffered page-number footer trick, fonts and Express streaming.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

PDFKit is a JavaScript library that generates PDF files in Node.js and the browser, with text, images, vector graphics, tables, custom fonts and streaming output. Use when asked to "generate a PDF with Node", "create an invoice or report PDF", "add page numbers to a PDFKit document", "draw a table in PDFKit", or "stream a PDF from an Express route".

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: pdfkit
description: >-
  PDFKit is a JavaScript library that generates PDF files in Node.js and the browser, with text, images, vector graphics, tables, custom fonts and streaming output. Use when asked to "generate a PDF with Node", "create an invoice or report PDF", "add page numbers to a PDFKit document", "draw a table in PDFKit", or "stream a PDF from an Express route".
license: Apache-2.0
compatibility: Node.js 18+; pdfkit 0.20 (older 0.15-0.17 releases behave the same for the basics, but lack some features noted below)
metadata:
  author: terminal-skills
  version: "1.1.0"
  category: documents
  repository: https://github.com/foliojs/pdfkit
  tags: "pdf, pdfkit, reports, invoices, node"
---

# PDFKit

## Overview

PDFKit builds PDFs from code: you create a `PDFDocument`, call drawing methods, pipe it to a writable stream and call `end()`. It is streaming, so the same document can go to a file or an HTTP response. Checked against pdfkit 0.20.2 (August 2026), run in scratch with Node 24.

Things that differ from older write-ups: `doc.table()` is built in (added in the 0.17 line), so you no longer have to draw tables by hand; 0.20 removed the browser virtual file system (use `registerFile`) and exports `PDFDocument` as a named export as well as the default. PDFKit does not render HTML; for HTML to PDF use a headless browser instead.

## Instructions

### Install

```bash
npm install pdfkit
npm install -D @types/pdfkit typescript
```

`@types/pdfkit` (0.17.x) provides the TypeScript types, including `table`.

### Document basics

```typescript
import PDFDocument from "pdfkit";
import fs from "node:fs";

const doc = new PDFDocument({ size: "A4", margin: 50 });
...

From TerminalSkills's repository, Apache-2.0 licence.

Related skills

  • Checked

    Arc42 architecture docs

    Writes arc42 software architecture documents with clear links between decisions, risks and technical debt.

    by LLM-Coding 549
    7/101 credit
  • Checked

    Incident postmortem writer

    Writes blameless incident postmortems with fishbone and five whys analysis, so the team fixes root causes.

    by github 42k
    7/101 credit
  • Checked

    Plain language docs

    Rewrites docs and notes in plain English with short active sentences, so anyone can follow them first time.

    by AminBlg 4.7k
    8/101 credit
  • Checked

    Clear runbooks and READMEs

    Rewrites docs, runbooks and error messages in Simplified Technical English so readers get one clear meaning.

    by TanStack 3.4k
    7/101 credit
  • Checked

    Simplified Technical English

    Rewrites manuals into Simplified Technical English, so non native readers and translators can follow them.

    by samber 359
    7/101 credit
  • Checked

    Team Template Builder

    Turns documents your team keeps rewriting into a light template with helpful prompts and a filled example.

    by mohitagw15856 1.6k
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added