# Send Pdf Generator to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
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

```text
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.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "pdf-generator",
    "name": "Pdf Generator",
    "source": "tencent",
    "type": "skill",
    "category": "内容创作",
    "sourceUrl": "https://clawhub.ai/ivangdavila/pdf-generator",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/pdf-generator",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/pdf-generator",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=pdf-generator",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "EXTRA_FILES.txt",
      "SKILL.md",
      "advanced.md",
      "templates.md",
      "tools.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "pdf-generator",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T07:57:34.438Z",
      "expiresAt": "2026-05-07T07:57:34.438Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=pdf-generator",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=pdf-generator",
        "contentDisposition": "attachment; filename=\"pdf-generator-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "pdf-generator"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/pdf-generator"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/pdf-generator",
    "downloadUrl": "https://openagent3.xyz/downloads/pdf-generator",
    "agentUrl": "https://openagent3.xyz/skills/pdf-generator/agent",
    "manifestUrl": "https://openagent3.xyz/skills/pdf-generator/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/pdf-generator/agent.md"
  }
}
```
## Documentation

### 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
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: ivangdavila
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-30T07:57:34.438Z
- Expires at: 2026-05-07T07:57:34.438Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/pdf-generator)
- [Send to Agent page](https://openagent3.xyz/skills/pdf-generator/agent)
- [JSON manifest](https://openagent3.xyz/skills/pdf-generator/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/pdf-generator/agent.md)
- [Download page](https://openagent3.xyz/downloads/pdf-generator)