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:
- Read the source Markdown file
- Parse Markdown to HTML using a library like
marked - Apply CSS styling for professional appearance
- Use Puppeteer to render HTML as PDF with proper page breaks
- Add metadata (title, author, creation date)
- Save to specified output path