PDF Generator for Openclaw

Generate professional PDFs from Markdown, HTML, data, or code using industry best practices and optimized print patterns.

ivangdavila
v1.0.1
Feb 19, 2026
16
13.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install pdf-generator

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install pdf-generator using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is PDF Generator?

The PDF Generator is a specialized technical resource designed for developers leveraging Openclaw Skills to automate document creation workflows. It provides comprehensive architectural patterns and implementation guidance for converting raw data sources—such as Markdown, HTML, and JSON—into high-fidelity PDF documents. By emphasizing semantic structure and print-optimized styling, this skill enables the creation of professional reports, invoices, and contracts.

Unlike basic conversion tools, this skill focuses on the technical nuances of document layout, including CSS print media queries, metadata embedding, and font management. It serves as a reference framework within the Openclaw Skills ecosystem to ensure that generated files meet enterprise standards for accessibility and visual consistency without requiring external network requests or compromising data privacy.

PDF Generator Use Cases

  • Creating automated financial reports and invoices from structured JSON data.
  • Converting project documentation and technical manuals from Markdown to printable formats.
  • Generating legal contracts and agreements using dynamic HTML templates.
  • Implementing batch document export features in developer tools via Openclaw Skills.
  • Designing print-ready research papers with complex table structures and bibliographies.

How PDF Generator Works

  1. Evaluate the source data type to select the optimal engine (e.g., WeasyPrint for HTML/CSS or Pandoc for Markdown).
  2. Construct a semantic document structure to ensure accessibility and consistent rendering across Openclaw Skills integrations.
  3. Apply specialized CSS for print, defining page sizes, margins, and explicit page-break behavior.
  4. Incorporate document metadata such as title, author, and creation dates for professional indexing.
  5. Execute the generation process locally on the user's machine to maintain strict data security.
  6. Validate the final output by verifying file integrity, font embedding, and layout accuracy.

PDF Generator Setup

To utilize these patterns within your environment, ensure you have the necessary dependencies installed for your chosen engine. For the recommended WeasyPrint workflow:

pip install weasyprint
# Synchronize the latest PDF patterns
clawhub sync pdf-generator

Users can then reference the internal templates.md and tools.md files provided by this skill to implement the code patterns in their local projects.

PDF Generator Data Schema & Taxonomy

Element Technical Implementation
Source Formats Supports Markdown, HTML5, JSON, and Plain Text
Style Engine CSS3 @media print and @page at-rules
Metadata Title, Author, Subject, and Keywords embedded via engine-specific headers
Layout Control Explicit classes for page-break-before and page-break-inside avoid
Image Handling Optimized relative path referencing for local asset inclusion

PDF Generator Advanced Features

  • Multi-engine selection guide for balancing lightweight speed (fpdf2) versus high-fidelity CSS (weasyprint).
  • Advanced page-break management to prevent orphaned headers and split tables.
  • Print-optimized CSS templates specifically designed for Openclaw Skills documentation standards.
  • Local-first security architecture ensuring no sensitive document data ever leaves your system.
  • Reference patterns for batch processing and automated document verification.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*