{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/pdf-generator",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=pdf-generator",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "EXTRA_FILES.txt",
      "SKILL.md",
      "advanced.md",
      "templates.md",
      "tools.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/pdf-generator",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "When to Use",
        "body": "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."
      },
      {
        "title": "Scope",
        "body": "This skill ONLY:\n\nProvides code patterns and implementation guidance for PDF generation\nExplains tool selection, CSS for print, and document structure\nShows reference examples for common document types\n\nThis skill NEVER:\n\nExecutes code or generates files directly\nMakes network requests\nAccesses files outside user's working directory\n\nAll code examples are reference patterns for the user to implement."
      },
      {
        "title": "Quick Reference",
        "body": "TopicFileTool selectiontools.mdDocument typestemplates.mdAdvanced operationsadvanced.md"
      },
      {
        "title": "1. Choose the Right Tool",
        "body": "SourceBest ToolWhyMarkdownpandocNative support, TOC, templatesHTML/CSSweasyprintBest CSS support, no LaTeXData/JSONreportlabProgrammatic, precise controlSimple textfpdf2Lightweight, fast\n\nDefault recommendation: weasyprint for most HTML-based documents."
      },
      {
        "title": "2. Structure Before Style",
        "body": "# CORRECT: semantic structure\nhtml = \"\"\"\n<article>\n  <header><h1>Report Title</h1></header>\n  <section>\n    <h2>Summary</h2>\n    <p>Content...</p>\n  </section>\n</article>\n\"\"\"\n\n# WRONG: style-first approach\nhtml = \"<div style='font-size:24px'>Report Title</div>\""
      },
      {
        "title": "3. Handle Page Breaks Explicitly",
        "body": "/* Force page break before */\n.new-page { page-break-before: always; }\n\n/* Keep together */\n.keep-together { page-break-inside: avoid; }\n\n/* Headers never orphaned */\nh2, h3 { page-break-after: avoid; }"
      },
      {
        "title": "4. Always Set Metadata",
        "body": "# Example pattern for weasyprint\nhtml = \"\"\"\n<html>\n<head>\n  <title>Document Title</title>\n  <meta name=\"author\" content=\"Author Name\">\n</head>\n...\n\"\"\""
      },
      {
        "title": "5. Use Print-Optimized CSS",
        "body": "@media print {\n  body {\n    font-family: 'Georgia', serif;\n    font-size: 11pt;\n    line-height: 1.5;\n  }\n  \n  @page {\n    size: A4;\n    margin: 2cm;\n  }\n  \n  .no-print { display: none; }\n}"
      },
      {
        "title": "6. Validate Output",
        "body": "After generating any PDF:\n\nCheck file size (0 bytes = failed)\nOpen and verify page count\nVerify fonts render correctly"
      },
      {
        "title": "Common Traps",
        "body": "TrapConsequenceFixMissing fontsFallback to defaultsUse web-safe fontsAbsolute image pathsImages missingUse relative pathsNo page sizeUnpredictable layoutSet @page { size: A4; }Large imagesHuge filesCompress before use"
      },
      {
        "title": "Security & Privacy",
        "body": "This is a reference skill. It provides patterns and guidance only.\n\nData that stays local:\n\nAll PDF generation happens on user's machine\nNo data sent externally\n\nThis skill does NOT:\n\nExecute code or make files\nMake network requests\nAccess system files"
      },
      {
        "title": "Feedback",
        "body": "If useful: clawhub star pdf-generator\nStay updated: clawhub sync"
      }
    ],
    "body": "When to Use\n\nUser needs to create, generate, or export PDF documents. Agent handles document generation from multiple sources (Markdown, HTML, JSON, templates), formatting, styling, and batch processing.\n\nScope\n\nThis skill ONLY:\n\nProvides code patterns and implementation guidance for PDF generation\nExplains tool selection, CSS for print, and document structure\nShows reference examples for common document types\n\nThis skill NEVER:\n\nExecutes code or generates files directly\nMakes network requests\nAccesses files outside user's working directory\n\nAll code examples are reference patterns for the user to implement.\n\nQuick Reference\nTopic\tFile\nTool selection\ttools.md\nDocument types\ttemplates.md\nAdvanced operations\tadvanced.md\nCore Rules\n1. Choose the Right Tool\nSource\tBest Tool\tWhy\nMarkdown\tpandoc\tNative support, TOC, templates\nHTML/CSS\tweasyprint\tBest CSS support, no LaTeX\nData/JSON\treportlab\tProgrammatic, precise control\nSimple text\tfpdf2\tLightweight, fast\n\nDefault recommendation: weasyprint for most HTML-based documents.\n\n2. Structure Before Style\n# CORRECT: semantic structure\nhtml = \"\"\"\n<article>\n  <header><h1>Report Title</h1></header>\n  <section>\n    <h2>Summary</h2>\n    <p>Content...</p>\n  </section>\n</article>\n\"\"\"\n\n# WRONG: style-first approach\nhtml = \"<div style='font-size:24px'>Report Title</div>\"\n\n3. Handle Page Breaks Explicitly\n/* Force page break before */\n.new-page { page-break-before: always; }\n\n/* Keep together */\n.keep-together { page-break-inside: avoid; }\n\n/* Headers never orphaned */\nh2, h3 { page-break-after: avoid; }\n\n4. Always Set Metadata\n# Example pattern for weasyprint\nhtml = \"\"\"\n<html>\n<head>\n  <title>Document Title</title>\n  <meta name=\"author\" content=\"Author Name\">\n</head>\n...\n\"\"\"\n\n5. Use Print-Optimized CSS\n@media print {\n  body {\n    font-family: 'Georgia', serif;\n    font-size: 11pt;\n    line-height: 1.5;\n  }\n  \n  @page {\n    size: A4;\n    margin: 2cm;\n  }\n  \n  .no-print { display: none; }\n}\n\n6. Validate Output\n\nAfter generating any PDF:\n\nCheck file size (0 bytes = failed)\nOpen and verify page count\nVerify fonts render correctly\nCommon Traps\nTrap\tConsequence\tFix\nMissing fonts\tFallback to defaults\tUse web-safe fonts\nAbsolute image paths\tImages missing\tUse relative paths\nNo page size\tUnpredictable layout\tSet @page { size: A4; }\nLarge images\tHuge files\tCompress before use\nSecurity & Privacy\n\nThis is a reference skill. It provides patterns and guidance only.\n\nData that stays local:\n\nAll PDF generation happens on user's machine\nNo data sent externally\n\nThis skill does NOT:\n\nExecute code or make files\nMake network requests\nAccess system files\nFeedback\nIf useful: clawhub star pdf-generator\nStay updated: clawhub sync"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ivangdavila/pdf-generator",
    "publisherUrl": "https://clawhub.ai/ivangdavila/pdf-generator",
    "owner": "ivangdavila",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}