PDF Generation (PdfFactory)

Generate PDFs from Handlebars templates via Gotenberg and store them in S3.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/tachfineamnay/LumiraV2 --skill pdf-generation-pdffactory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: PDF Generation (PdfFactory)
Source: https://github.com/tachfineamnay/LumiraV2/tree/main/skills/17-pdf-generation
Command: npx skills add https://github.com/tachfineamnay/LumiraV2 --skill pdf-generation-pdffactory

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates turning structured data into polished PDFs by rendering Handlebars templates and converting HTML to PDF with Gotenberg, enabling consistent, template-driven documentation generation.

Core Features & Use Cases

  • Template-driven PDF creation with reusable layouts and styles.
  • HTML-to-PDF conversion via Gotenberg using predefined Handlebars templates.
  • Workflow integration: generate, store to S3, and perform versioned deliveries.

Use Case: Generate weekly product reports or customer guides by populating templates with data and producing ready-to-share PDFs.

Quick Start

Generate a reading PDF by supplying your data model and selecting a Handlebars template; PdfFactory will render the HTML, convert it to PDF with Gotenberg, and upload it to S3.

Frequently Asked Questions about PDF Generation (PdfFactory)

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate PDF generation from structured data?

Automate PDF generation by mapping structured data onto Handlebars templates to render HTML, then converting the output to PDF via Gotenberg. This approach enables consistent, template-driven document creation for reports or customer guides without manual formatting.

How does HTML to PDF conversion work with Gotenberg and Handlebars?

HTML to PDF conversion with Gotenberg works by populating a Handlebars template with structured data to produce HTML, which Gotenberg then processes to create a polished PDF. The rendered PDF is subsequently uploaded to an S3 bucket for storage and delivery.

Do I need an S3 bucket to store generated PDFs?

Yes, an S3 bucket is required for the upload workflow. After the Handlebars template is rendered into HTML and converted to a PDF via Gotenberg, the resulting file is stored in S3 to enable versioned deliveries and downstream access.

Can I use Node.js or NestJS to generate PDFs from templates?

Yes, this template-driven PDF generation integrates natively with Node.js and NestJS. You supply the data model and Handlebars template, and the integration handles the HTML rendering, Gotenberg PDF conversion, and S3 upload automatically.

What's the best way to generate weekly product reports as PDFs?

The best way to generate weekly product reports as PDFs is using reusable Handlebars templates populated with your reporting data. This ensures consistent layout and styling, while Gotenberg handles the HTML to PDF conversion for ready-to-share files.

Are there limitations when using Handlebars templates for PDF generation?

When using Handlebars templates for PDF generation, you are constrained to HTML and CSS styling capabilities supported by Gotenberg. Complex print layouts may require careful template design, and all structured data must align with the predefined template variables.