build-html-to-pdf

Generate PDFs from HTML templates using Playwright and Chromium on AWS Lambda.

2|4|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/soofi-xyz/soofi-xyz-team-kit --skill build-html-to-pdf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-html-to-pdf
Source: https://github.com/soofi-xyz/soofi-xyz-team-kit/tree/main/skills/build-html-to-pdf
Command: npx skills add https://github.com/soofi-xyz/soofi-xyz-team-kit --skill build-html-to-pdf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of generating PDFs from HTML documents, enabling efficient server-side document rendering for various business needs.

Core Features & Use Cases

  • Workflow Automation: Build and refactor PDF generation tasks on AWS Lambda using Playwright and Chromium.
  • Template Rendering: Define print-first HTML templates with explicit CSS and asset management.
  • Use Case: Generate styled invoices or reports automatically from HTML templates, ensuring consistency and quality across deployments.

Quick Start

Use the build-html-to-pdf skill to set up automated PDF workflows for your HTML templates.

Frequently Asked Questions about build-html-to-pdf

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

FAQPage Schema
How do I convert HTML to PDF on AWS Lambda using Playwright?

This Skill sets up server-side HTML-to-PDF conversion on AWS Lambda using Playwright and Chromium. It provides deployment-ready packaging to automate document rendering workflows without managing external browser infrastructure.

Can I use Chromium on AWS Lambda for automated print-first HTML rendering?

Yes, you can use Chromium on AWS Lambda for print-first HTML rendering. This setup ensures deterministic output by enforcing strict request contracts and explicit CSS and asset management for your document templates.

What is the best way to automate server-side PDF generation from HTML templates?

Automating server-side PDF generation from HTML templates is best achieved by leveraging Playwright and Chromium on AWS Lambda. This method ensures consistency and quality across deployments by using strict request contracts and deterministic rendering workflows.

Do I need any external dependencies to run HTML to PDF conversion workflows on AWS Lambda?

No external dependencies are required beyond the packaged components. The workflow leverages Playwright and Chromium within AWS Lambda, providing a self-contained, deployment-ready environment for server-side PDF generation.

Why does my HTML to PDF rendering fail on AWS Lambda?

HTML to PDF rendering on AWS Lambda often fails due to missing strict request contracts or improperly managed CSS and assets. Ensuring deterministic HTML rendering and deployment-ready packaging helps prevent these server-side document generation errors.