generate-pdf for Openclaw

A powerful PDF generation skill for converting raw HTML or public URLs into professional documents with custom styling and dynamic data.

rishabhdugar
v1.0.0
Apr 17, 2026
0
1.3k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install generate-pdf

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 generate-pdf 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 generate-pdf?

This Openclaw Skills component enables AI agents to programmatically generate PDF documents from web sources or custom HTML templates. By leveraging a headless Chromium engine, the skill ensures pixel-perfect rendering of invoices, reports, and certificates. It provides developers with the flexibility to define custom page sizes, margins, and layouts, making it an essential tool for automated document workflows within the Openclaw Skills ecosystem.

generate-pdf Use Cases

  • Automated invoice generation from HTML templates with dynamic data substitution.
  • Exporting real-time data analytics and dashboard views into shareable PDF reports.
  • Creating personalized academic certificates or professional diplomas using Openclaw Skills.
  • Archiving snapshots of public webpages for compliance or record-keeping.
  • Generating legally binding contracts with client-specific details via placeholder replacement.

How generate-pdf Works

  1. The AI agent sends a request containing either a public URL or raw HTML content to the PDF generation endpoint.
  2. If dynamic parameters are provided, the system replaces placeholder tags within the HTML with the specified values.
  3. A headless Chromium browser renders the content, applying custom fonts, margins, and CSS.
  4. The rendering engine generates the PDF file according to specified dimensions like A4, Letter, or custom page sizes.
  5. The resulting document is returned as a temporary URL, a base64 string, or raw binary data based on the requested output format.

generate-pdf Setup

To integrate this Openclaw Skills feature, obtain a free API key from pdfapihub.com. Use the following structure to initiate requests:

curl -X POST https://pdfapihub.com/api/v1/generatePdf \
  -H "CLIENT-API-KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "html_content": "<html><body><h1>Document</h1></body></html>",
    "paper_size": "A4",
    "output_format": "url"
  }'

generate-pdf Data Schema & Taxonomy

The Openclaw Skills generation engine processes and organizes data based on the following structure:

Component Data Type Description
Input Source String Either html_content or a public url.
Dynamic Params Object Key-value pairs for template substitution.
Page Config Object Includes paper_size, landscape, and margin.
Output String/Binary URL, Base64 string, or PDF file.

Documents generated are retained for 30 days before automatic deletion.

generate-pdf Advanced Features

  • Support for Google Fonts via pipe-separated strings for professional typography.
  • Wait-time configuration (wait_till) to ensure JS-heavy pages render fully before capture.
  • Multi-format output flexibility including raw binary, base64, and hosted URLs within Openclaw Skills.
  • Advanced CSS injection to override existing styles during the PDF generation process.
  • Built-in placeholder substitution engine for high-volume personalized document creation.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*