PDF Report Skill for Openclaw

A high-performance PDF generation engine that transforms structured JSON data into professional A4 reports.

mohamed-hammane
v1.0.1
Apr 5, 2026
0
1.1k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install pdf-report

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-report 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 Report Skill?

The PDF Report skill for Openclaw Skills enables developers and AI agents to create formatted, high-quality documents directly from workspace data. By leveraging Jinja2 for templating and WeasyPrint for rendering, it converts complex JSON objects into clean, multi-page PDFs including tables, lists, and chart images. This tool is essential for any workflow within Openclaw Skills that requires automated reporting or document export capabilities.

Designed with flexibility in mind, it allows for deep customization through custom templates while maintaining strict workspace security. Whether you are generating technical documentation or business summaries, this skill ensures your data is presented in a professional, print-ready format.

PDF Report Skill Use Cases

  • Generating automated monthly business summaries from database exports.
  • Creating analytical data reports featuring tables and embedded Matplotlib charts.
  • Exporting workspace data into a shareable A4 format for stakeholders.
  • Building debugging reports that include rendered HTML previews.

How PDF Report Skill Works

  1. Prepare your structured data in a JSON format following the specific schema required by the skill.
  2. Execute the render script using the dedicated Python virtual environment within your Openclaw Skills workspace.
  3. The skill processes the JSON input through a Jinja2 template to generate structured HTML.
  4. WeasyPrint renders the generated HTML into a professional A4 PDF document.
  5. The resulting PDF is saved to the specified workspace path with automated page numbering and formatted headers.

PDF Report Skill Setup

First, install the necessary system dependencies for WeasyPrint:

# Ubuntu/Debian
sudo apt-get install -y libpango-1.0-0 libpangocairo-1.0-0 libgdk-pixbuf2.0-0 libffi-dev libcairo2

Next, create a virtual environment and install the Python dependencies within your Openclaw Skills directory:

python3 -m venv ~/.openclaw/workspace/.venv_pdf
~/.openclaw/workspace/.venv_pdf/bin/pip install weasyprint jinja2

PDF Report Skill Data Schema & Taxonomy

The skill expects a JSON object with a specific hierarchy to ensure correct rendering. Below is the metadata taxonomy used by Openclaw Skills:

Field Type Description
title String The primary title of the report.
summary Array A list of strings for the executive summary section.
sections Array A list of objects containing titles, items, tables, and charts.
charts Array Nested within sections, contains src paths to images and captions.
footer String Text that appears at the bottom of every page.

PDF Report Skill Advanced Features

  • Custom Jinja2 template support for complete control over document branding and layout.
  • Automated footer page numbering (e.g., 1 / 3) for multi-page documents.
  • Workspace-relative path enforcement to ensure security within the Openclaw Skills environment.
  • HTML debug mode to inspect the rendered markup before PDF conversion.
  • Graceful error handling for missing chart assets to ensure report generation finishes even if visual data is incomplete.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins python3
Github Stars: 0
forks: 0

Featured*