pdf-generatorGenerate professional PDFs from Markdown, HTML, data, or code. Reports, invoices, contracts, and documents with best practices.
Install via ClawdBot CLI:
clawdbot install ivangdavila/pdf-generatorUser needs to create, generate, or export PDF documents. Agent handles document generation from multiple sources (Markdown, HTML, JSON, templates), formatting, styling, and batch processing.
This skill ONLY:
This skill NEVER:
All code examples are reference patterns for the user to implement.
| Topic | File |
|-------|------|
| Tool selection | tools.md |
| Document types | templates.md |
| Advanced operations | advanced.md |
| Source | Best Tool | Why |
|--------|-----------|-----|
| Markdown | pandoc | Native support, TOC, templates |
| HTML/CSS | weasyprint | Best CSS support, no LaTeX |
| Data/JSON | reportlab | Programmatic, precise control |
| Simple text | fpdf2 | Lightweight, fast |
Default recommendation: weasyprint for most HTML-based documents.
# CORRECT: semantic structure
html = """
<article>
<header><h1>Report Title</h1></header>
<section>
<h2>Summary</h2>
<p>Content...</p>
</section>
</article>
"""
# WRONG: style-first approach
html = "<div style='font-size:24px'>Report Title</div>"
/* Force page break before */
.new-page { page-break-before: always; }
/* Keep together */
.keep-together { page-break-inside: avoid; }
/* Headers never orphaned */
h2, h3 { page-break-after: avoid; }
# Example pattern for weasyprint
html = """
<html>
<head>
<title>Document Title</title>
<meta name="author" content="Author Name">
</head>
...
"""
@media print {
body {
font-family: 'Georgia', serif;
font-size: 11pt;
line-height: 1.5;
}
@page {
size: A4;
margin: 2cm;
}
.no-print { display: none; }
}
After generating any PDF:
| Trap | Consequence | Fix |
|------|-------------|-----|
| Missing fonts | Fallback to defaults | Use web-safe fonts |
| Absolute image paths | Images missing | Use relative paths |
| No page size | Unpredictable layout | Set @page { size: A4; } |
| Large images | Huge files | Compress before use |
This is a reference skill. It provides patterns and guidance only.
Data that stays local:
This skill does NOT:
clawhub star pdf-generatorclawhub syncGenerated Mar 1, 2026
A small business owner needs to generate professional invoices from sales data stored in JSON format. The skill guides them to use reportlab for programmatic control, ensuring precise layout and branding. This automates billing and reduces manual errors.
A legal firm requires converting Markdown-based contract templates into PDFs with proper formatting and metadata. The skill recommends pandoc for its native Markdown support and TOC generation, ensuring compliance and readability. This streamlines document preparation for clients.
A data analyst needs to export HTML reports with charts and tables to PDF for stakeholder presentations. The skill suggests weasyprint for its excellent CSS support, enabling print-optimized styling and page breaks. This enhances report clarity and professionalism.
A teacher wants to create PDF worksheets from simple text or Markdown content for classroom use. The skill advises using fpdf2 for its lightweight and fast processing, allowing quick generation of materials. This saves time and supports offline distribution.
Offer a cloud-based PDF generation service with templates and automation features, charging monthly fees. Integrates the skill's guidance for tool selection and best practices to ensure high-quality output. Targets businesses needing scalable document solutions.
Provide a free basic PDF generator with limited features, using the skill's reference patterns for implementation. Upsell premium features like advanced templates or batch processing based on the skill's advanced operations. Attracts individual users and small teams.
Offer consulting services to help clients implement PDF generation solutions using the skill's code patterns and tool recommendations. Focus on industries like legal or finance for custom document workflows. Generates revenue through project-based fees.
๐ฌ Integration Tip
Start by implementing the skill's core rules, such as using weasyprint for HTML-based documents and setting print-optimized CSS, to ensure reliable PDF generation from the outset.
Edit PDFs with natural-language instructions using the nano-pdf CLI.
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
Convert documents and files to Markdown using markitdown. Use when converting PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls), HTML, CSV, JSON, XML, images (with EXIF/OCR), audio (with transcription), ZIP archives, YouTube URLs, or EPubs to Markdown format for LLM processing or text analysis.
็จ MinerU API ่งฃๆ PDF/Word/PPT/ๅพ็ไธบ Markdown๏ผๆฏๆๅ ฌๅผใ่กจๆ ผใOCRใ้็จไบ่ฎบๆ่งฃๆใๆๆกฃๆๅใ
Generate hand-drawn style diagrams, flowcharts, and architecture diagrams as PNG images from Excalidraw JSON
The awesome PPT format generation tool provided by baidu.