Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Generate professional PDFs from Markdown, HTML, data, or code. Reports, invoices, contracts, and documents with best practices.
Generate professional PDFs from Markdown, HTML, data, or code. Reports, invoices, contracts, and documents with best practices.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
User 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: Provides code patterns and implementation guidance for PDF generation Explains tool selection, CSS for print, and document structure Shows reference examples for common document types This skill NEVER: Executes code or generates files directly Makes network requests Accesses files outside user's working directory All code examples are reference patterns for the user to implement.
TopicFileTool selectiontools.mdDocument typestemplates.mdAdvanced operationsadvanced.md
SourceBest ToolWhyMarkdownpandocNative support, TOC, templatesHTML/CSSweasyprintBest CSS support, no LaTeXData/JSONreportlabProgrammatic, precise controlSimple textfpdf2Lightweight, 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: Check file size (0 bytes = failed) Open and verify page count Verify fonts render correctly
TrapConsequenceFixMissing fontsFallback to defaultsUse web-safe fontsAbsolute image pathsImages missingUse relative pathsNo page sizeUnpredictable layoutSet @page { size: A4; }Large imagesHuge filesCompress before use
This is a reference skill. It provides patterns and guidance only. Data that stays local: All PDF generation happens on user's machine No data sent externally This skill does NOT: Execute code or make files Make network requests Access system files
If useful: clawhub star pdf-generator Stay updated: clawhub sync
Writing, remixing, publishing, visual generation, and marketing content production.
Largest current source with strong distribution and engagement signals.