PDF Generator

Installation
SKILL.md

PDF Generator

The PDF Generator skill enables creation of professional PDF documents from various sources including Markdown, HTML, plain text, and structured data. It handles formatting, images, metadata, watermarks, and multi-page layouts. This skill leverages Node.js libraries like puppeteer, pdfkit, or jsPDF for comprehensive PDF generation capabilities.

Whether you need to convert documentation to PDF, generate reports with charts, create printable forms, or produce client deliverables, this skill provides the tools and workflows to create publication-quality PDFs programmatically.

Core Workflows

Workflow 1: Convert Markdown to PDF

Purpose: Transform Markdown files into formatted PDF documents with styling

Steps:

  1. Read the source Markdown file
  2. Parse Markdown to HTML using a library like marked
  3. Apply CSS styling for professional appearance
  4. Use Puppeteer to render HTML as PDF with proper page breaks
  5. Add metadata (title, author, creation date)
  6. Save to specified output path
Related skills
Installs
First Seen