โ† All skills
Tencent SkillHub ยท Content Creation

Pdf Generator

Generate professional PDFs from Markdown, HTML, data, or code. Reports, invoices, contracts, and documents with best practices.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Generate professional PDFs from Markdown, HTML, data, or code. Reports, invoices, contracts, and documents with best practices.

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
EXTRA_FILES.txt, SKILL.md, advanced.md, templates.md, tools.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

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.

Upgrade existing

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.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.1

Documentation

ClawHub primary doc Primary doc: SKILL.md 12 sections Open source page

When to Use

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.

Scope

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.

Quick Reference

TopicFileTool selectiontools.mdDocument typestemplates.mdAdvanced operationsadvanced.md

1. Choose the Right Tool

SourceBest ToolWhyMarkdownpandocNative support, TOC, templatesHTML/CSSweasyprintBest CSS support, no LaTeXData/JSONreportlabProgrammatic, precise controlSimple textfpdf2Lightweight, fast Default recommendation: weasyprint for most HTML-based documents.

2. Structure Before Style

# 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>"

3. Handle Page Breaks Explicitly

/* 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; }

4. Always Set Metadata

# Example pattern for weasyprint html = """ <html> <head> <title>Document Title</title> <meta name="author" content="Author Name"> </head> ... """

5. Use Print-Optimized CSS

@media print { body { font-family: 'Georgia', serif; font-size: 11pt; line-height: 1.5; } @page { size: A4; margin: 2cm; } .no-print { display: none; } }

6. Validate Output

After generating any PDF: Check file size (0 bytes = failed) Open and verify page count Verify fonts render correctly

Common Traps

TrapConsequenceFixMissing fontsFallback to defaultsUse web-safe fontsAbsolute image pathsImages missingUse relative pathsNo page sizeUnpredictable layoutSet @page { size: A4; }Large imagesHuge filesCompress before use

Security & Privacy

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

Feedback

If useful: clawhub star pdf-generator Stay updated: clawhub sync

Category context

Writing, remixing, publishing, visual generation, and marketing content production.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
4 Docs1 Files
  • SKILL.md Primary doc
  • advanced.md Docs
  • templates.md Docs
  • tools.md Docs
  • EXTRA_FILES.txt Files