pdfkit-generation

Solid

Generate professional PDFs with PDFKit in Node.js. Use when creating pitch decks, reports, or styled documents with AGNT branding. Covers large script handling, Unicode-safe characters, and brand design patterns.

Data & Documents 270 stars 46 forks Updated today NOASSERTION

Install

View on GitHub

Quality Score: 76/100

Stars 20%
81
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

--- name: "PDFKit Generation" description: "Generate professional PDFs with PDFKit in Node.js. Use when creating pitch decks, reports, or styled documents with AGNT branding. Covers large script handling, Unicode-safe characters, and brand design patterns." category: "document-processing" icon: "fas fa-file-pdf" allowed-tools: - file_operations - execute_javascript_code - execute_shell_command --- # PDFKit Generation ## Description Generate professional PDFs using PDFKit in a Node.js environment, with AGNT brand styling and proper handling of large scripts. This skill covers the critical workflow for bypassing command-line size limits, Unicode-safe character usage, and reusable design patterns. ## Source agnt (custom) ## When to Use Use this skill when: - Creating pitch decks, reports, or styled PDF documents - Generating PDFs with AGNT brand colors and styling - Working with large PDF generation scripts that exceed CLI limits - You need Unicode-safe alternatives to emojis in PDFs - Building multi-page documents with consistent theming --- # PDFKit Generation Guide ## Critical Pattern: Large Script Handling ### The Problem `execute_javascript_code` passes code via command line, which has ~8KB limit on Windows. Large PDF generation scripts (often 20KB+) will fail with: ``` Error: spawn ENAMETOOLONG ``` ### The Solution: 3-Step Pattern ``` +-------------------------------------------------------------+ | 1. file_operations: WRITE compact script to .js/.cjs...

Details

Author
agnt-gg
Repository
agnt-gg/agnt
Created
1 years ago
Last Updated
today
Language
JavaScript
License
NOASSERTION

Similar Skills

Semantically similar based on skill content — not just same category