A comprehensive guide and skill set for generating professional-grade PDFs from HTML and CSS by mastering flow-based layouts and print-specific CSS rules.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install pdf-generation
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install pdf-generation using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
This skill provides a technical framework for converting web content into high-quality PDF documents while avoiding common pitfalls like orphan whitespace and awkward page breaks. By utilizing modern Openclaw Skills techniques, developers can move away from rigid page containers and embrace fluid, print-optimized CSS that ensures content flows naturally across pages. It focuses on the precise application of page-break properties and paged media rules to create documents that look professional regardless of length or complexity.
The primary philosophy involves using flow-based layouts instead of fixed containers, ensuring that content adapts to the page size dynamically. This approach is essential for any Openclaw Skills implementation requiring automated document generation, from invoices to complex technical reports.
To begin using this PDF generation approach within Openclaw Skills, you must install the necessary rendering tools. For the recommended engine, WeasyPrint, use the following commands:
# Install WeasyPrint via Homebrew (macOS)
brew install weasyprint
# Or install via pip
pip install weasyprint
Once installed, you can generate a PDF with a simple command-line execution:
weasyprint input.html output.pdf
The skill organizes data through standard CSS paged media rules and HTML structures to ensure layout consistency. The following table describes how elements are handled within Openclaw Skills:
| Element | CSS Property | Logical Purpose |
|---|---|---|
| Global Document | @page | Defines page size, orientation, and margins. |
| Typography | orphans & widows | Controls the minimum number of lines at the top or bottom of pages. |
| Small Components | break-inside: avoid | Prevents splitting cards, rows, or timeline items across pages. |
| Headers | break-after: avoid | Ensures headers stay attached to the content that follows them. |
| Tables | tr { break-inside: avoid } | Allows tables to span multiple pages while keeping individual rows intact. |
Loading
A cognitive framework for AI agents that synthesizes the creative methods of history's greatest polymaths, visionaries, and architects into actionable workflows.

A comprehensive tool for managing services, digital products, and client bookings through the Talkspresso REST API.

A secure execution engine for running shell scripts and managing Bitwarden secrets within a controlled environment.

A specialized integration that brings DeepSeek LLM capabilities to your agent environment for high-performance reasoning and coding tasks.

A high-performance search skill for AI agents that returns structured, LLM-ready web data including summaries and metadata.

A comprehensive integration allowing AI agents to programmatically fetch marketing performance data from over 100 platforms through a unified API.








































