Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

pdf-official

Skill by sabahattink

Guides an AI assistant through generating PDF documents in Node.js with PDFKit or Puppeteer. It is for building reports, invoices, certificates, and other printable documents from data or HTML templates.

  • Score 48
  • 33 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install pdf-official

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sabahattink/antigravity-fullstack-hq /tmp/antigravity-fullstack-hq && mkdir -p ~/.claude/skills && cp -r /tmp/antigravity-fullstack-hq/skills/pdf-official ~/.claude/skills/pdf-official

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install pdf-official in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

PDF Generation is a skill that guides an AI assistant through creating PDF files in Node.js. It covers two approaches. PDFKit builds documents programmatically and suits invoices and receipts with precise control. Puppeteer converts HTML and CSS into PDF and suits complex layouts, charts, and styled reports. The skill includes sample code for an invoice generator, an HTML-to-PDF helper, and a NestJS service and controller that return PDFs as downloads.

The guide also covers running Puppeteer in Docker with Chromium on Alpine. It lists forbidden patterns, such as launching a browser per request, passing unsanitized user input into HTML templates, and loading external resources on the server. It is aimed at developers who need to produce printable documents from data or HTML templates.

Written from the project's SKILL.md and checked against it.

What it can do

  • Invoice PDF with PDFKitBuilds an A4 invoice with a header, bill-to block, item table, and total.
  • HTML to PDF with PuppeteerRenders an HTML string to a PDF buffer with format, orientation, and margin options.
  • Report HTML templateBuilds a styled HTML report with a title, table columns, rows, and a total.
  • NestJS PDF download endpointShows a guarded controller route that returns an invoice PDF as an attachment.
  • Streamed PDF responseShows how to pipe a PDFKit document directly into an HTTP response.
  • Puppeteer Docker setupProvides an Alpine Dockerfile that installs Chromium and sets Puppeteer environment variables.

What you need

  • Node.js
  • npm packages pdfkit or puppeteer
  • Docker, for the container setup example
  • Chromium, for the Docker setup example

Try asking

  • Create a PDF invoice from this order data using PDFKit
  • Turn this HTML report template into an A4 PDF with Puppeteer
  • Add a NestJS endpoint that streams a PDF report as a download

Good to know

  • The source advises against launching Puppeteer per request in high-traffic scenarios.
  • Unsanitized user input must not be passed into HTML templates.
  • External resources should not be loaded in Puppeteer on a server.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/pdf-official/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to pdf-official

All alternatives →

Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr

pdf-official: common questions

Which library should I use for PDFs in Node.js?

The source suggests PDFKit for programmatic documents like invoices and receipts. It suggests Puppeteer for HTML to PDF with complex layouts or charts.

Can Puppeteer PDF generation run in Docker?

The source includes an Alpine Dockerfile that installs chromium and sets PUPPETEER_SKIP_CHROMIUM_DOWNLOAD and PUPPETEER_EXECUTABLE_PATH.

Does the guide cover security for PDF templates?

It lists forbidden patterns, including not passing unsanitized user input into HTML templates and not loading external resources in Puppeteer on a server.

How do I install pdf-official?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is pdf-official free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is pdf-official safe to use?

It scores 48 of 100. Grades: maintenance B, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to pdf-official?

Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.

pdf-official Install

Add to stack

Loading.