{"id":"5086d640-e4cb-44af-a41f-ae8d76009485","entityType":"agent","slug":"clawhub-rishabhdugar-generate-pdf","name":"Generate PDF from HTML","canonicalUrl":"https://www.xpersona.co/agent/clawhub-rishabhdugar-generate-pdf","canonicalPath":"/agent/clawhub-rishabhdugar-generate-pdf","generatedAt":"2026-10-11T01:45:56.891Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T23:09:39.724Z","emptyReason":null},"description":"Generate a PDF document from HTML content or a public URL. Supports custom page sizes, fonts, margins, viewport dimensions, dynamic parameter substitution, a...","descriptionLabel":"Source description","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/10/2026.","installCommand":"clawhub skill install s17er4205vjg2p2hpn1fxtpqz1850q84:generate-pdf","sourceUrl":"https://clawhub.ai/rishabhdugar/generate-pdf","homepage":"https://clawhub.ai/rishabhdugar/skills/generate-pdf","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/rishabhdugar/generate-pdf","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/rishabhdugar/skills/generate-pdf","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":62,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Generate PDF from HTML technical dossier on Xpersona with agent coverage, OPENCLEW support, and live trust metadata."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-10T23:09:39.724Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T23:09:39.724Z","emptyReason":null},"stars":null,"forks":null,"downloads":1234,"packageName":null,"latestVersion":"1.0.0","tractionLabel":"1.2K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T23:09:39.586Z","emptyReason":null},"lastUpdatedAt":"2026-10-10T23:09:39.724Z","lastCrawledAt":"2026-10-10T23:09:39.586Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-11T23:09:39.586Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.0","createdAt":"2026-04-17T15:04:46.066Z","changelog":"Initial release of generate-pdf skill: - Generate PDF documents from either raw HTML content or public URLs. - Supports custom page sizes, fonts, margins, and viewport options. - Offers multiple output formats: downloadable URL, base64, or raw PDF. - Allows dynamic parameter substitution for template rendering. - Includes features for invoicing, reporting, certification, and more.","fileCount":5,"zipByteSize":4750}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17er4205vjg2p2hpn1fxtpqz1850q84:generate-pdf","setupComplexity":"low","setupSteps":["Install using `clawhub skill install s17er4205vjg2p2hpn1fxtpqz1850q84:generate-pdf` in an isolated environment before connecting it to live workloads.","No published capability contract is available yet, so validate auth and request/response behavior manually.","Review the upstream CLAWHUB listing at https://clawhub.ai/rishabhdugar/generate-pdf before using production credentials."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-rishabhdugar-generate-pdf/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-rishabhdugar-generate-pdf/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-rishabhdugar-generate-pdf/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-rishabhdugar-generate-pdf/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-rishabhdugar-generate-pdf/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-rishabhdugar-generate-pdf/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-11T01:45:56.890Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-rishabhdugar-generate-pdf/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-rishabhdugar-generate-pdf/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-rishabhdugar-generate-pdf/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-rishabhdugar-generate-pdf/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T23:09:39.724Z","emptyReason":null},"readme":"Skill: Generate PDF from HTML\n\nOwner: rishabhdugar\n\nSummary: Generate a PDF document from HTML content or a public URL. Supports custom page sizes, fonts, margins, viewport dimensions, dynamic parameter substitution, a...\n\nTags: latest:1.0.0\n\nVersion history:\n\nv1.0.0 | 2026-04-17T15:04:46.066Z | user\n\nInitial release of generate-pdf skill:\n\n- Generate PDF documents from either raw HTML content or public URLs.\n- Supports custom page sizes, fonts, margins, and viewport options.\n- Offers multiple output formats: downloadable URL, base64, or raw PDF.\n- Allows dynamic parameter substitution for template rendering.\n- Includes features for invoicing, reporting, certification, and more.\n\nArchive index:\n\nArchive v1.0.0: 5 files, 4750 bytes\n\nFiles: example.json (928b), skill-card.md (2066b), skill.json (3313b), SKILL.md (2907b), _meta.json (131b)\n\nFile v1.0.0:SKILL.md\n\n---\nname: generate-pdf\ndescription: \"Generate a PDF document from HTML content or a public URL. Supports custom page sizes, fonts, margins, viewport dimensions, dynamic parameter substitution, and multiple output formats.\"\n---\n\n# Generate PDF\n\n## What It Does\nGenerates a PDF document from either raw HTML content or a public URL using a headless Chromium browser. The API renders the page and returns the result as a downloadable URL, base64 string, or raw PDF file.\n\n## When to Use\n- Convert an HTML template (invoice, report, certificate) into a PDF\n- Take a PDF snapshot of a live webpage\n- Generate PDFs with dynamic data via placeholder substitution\n- Create PDFs with custom fonts, margins, and page sizes\n\n## Required Inputs\nYou must provide **one** of:\n- `html_content` — raw HTML string to render\n- `url` — a public URL to convert\n\n## Authentication\nSend your API key in the `CLIENT-API-KEY` header.\n\nGet your **free API key** at [https://pdfapihub.com](https://pdfapihub.com). Full API documentation is available at [https://pdfapihub.com/docs](https://pdfapihub.com/docs).\n\n## Use Cases\n- **Invoice Generation** — Generate branded PDF invoices from HTML templates with dynamic customer data\n- **Report Export** — Convert dashboard or analytics HTML pages into downloadable PDF reports\n- **Certificate Creation** — Produce personalized certificates or diplomas with dynamic name/date substitution\n- **Contract Generation** — Create contracts from templates with client-specific details filled in\n- **Resume/CV Export** — Convert styled HTML resumes to PDF for download\n- **Receipt Generation** — Auto-generate PDF receipts for e-commerce transactions\n- **Webpage Archival** — Save a snapshot of any public webpage as a PDF for records\n\n## Key Options\n| Parameter | Description |\n|-----------|-------------|\n| `output_format` | `url` (default), `base64`, `file`/`pdf`/`binary` |\n| `paper_size` | A4, A3, A5, Letter, Legal, Tabloid |\n| `landscape` | `true` for landscape orientation |\n| `margin` | Object with `top`, `right`, `bottom`, `left` (e.g. `\"10mm\"`) |\n| `font` | Google Font names, pipe-separated |\n| `dynamic_params` | Key-value object for `{{placeholder}}` replacement |\n| `wait_till` | Seconds to wait before rendering (for JS-heavy pages) |\n\n## Example Usage\n```bash\ncurl -X POST https://pdfapihub.com/api/v1/generatePdf \\\n  -H \"CLIENT-API-KEY: your_api_key\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"html_content\": \"<html><body><h1>Invoice #{{invoice_id}}</h1><p>Total: {{total}}</p></body></html>\",\n    \"css_content\": \"body { font-family: Arial; }\",\n    \"dynamic_params\": { \"invoice_id\": \"INV-001\", \"total\": \"$1,249.00\" },\n    \"paper_size\": \"A4\",\n    \"output_format\": \"url\"\n  }'\n```\n\n## Notes\n- Boolean fields accept string values: `\"true\"`, `\"1\"`, `\"yes\"`, `\"on\"`\n- Files are automatically deleted after 30 days\n- Page count limits are tier-dependent\n\nFile v1.0.0:_meta.json\n\n{\n  \"ownerId\": \"kn7e2tc4x8t7e64enbs2qz122x85144x\",\n  \"slug\": \"generate-pdf\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1776438286066\n}\n\nFile v1.0.0:skill-card.md\n\n## Description:\n\nGenerate a PDF document from HTML content or a public URL with support for custom page sizes, fonts, margins, viewport dimensions, dynamic parameter substitution, and multiple output formats.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[rishabhdugar](https://clawhub.ai/user/rishabhdugar)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nDevelopers and teams use this skill to convert HTML templates or public web pages into PDFs for invoices, reports, certificates, receipts, and archival snapshots.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: HTML, CSS, dynamic parameters, public URLs, and generated PDFs may be processed by or stored with pdfapihub.com.\n\nMitigation: Use only data approved for that provider and avoid secrets, internal-only URLs, regulated personal data, contracts, invoices, or customer records unless the provider is approved for that data.\n\nRisk: Generated PDFs may expose sensitive rendered content through returned URLs or downloadable files.\n\nMitigation: Treat generated PDF links and files as externally hosted outputs and apply appropriate access, sharing, and retention controls.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/rishabhdugar/skills/generate-pdf)\n- [PDF API Hub documentation](https://pdfapihub.com/docs)\n- [PDF API Hub](https://pdfapihub.com)\n\n## Skill Output:\n\n**Output Type(s):** [text, shell commands, configuration, files]\n\n**Output Format:** [JSON API request guidance and PDF output as a URL, base64 string, or binary file]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Requires a pdfapihub.com API key; output retention and page limits are provider dependent.]\n\n## Skill Version(s):\n\n1.0.0 (source: server release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.0:example.json\n\n{\n  \"request\": {\n    \"method\": \"POST\",\n    \"url\": \"https://pdfapihub.com/api/v1/generatePdf\",\n    \"headers\": {\n      \"CLIENT-API-KEY\": \"your_api_key\",\n      \"Content-Type\": \"application/json\"\n    },\n    \"body\": {\n      \"html_content\": \"<html><body><h1>Invoice #{{invoice_id}}</h1><p>Customer: {{customer}}</p><p>Total: {{total}}</p></body></html>\",\n      \"css_content\": \"body { font-family: Arial, sans-serif; padding: 32px; } h1 { color: #333; }\",\n      \"dynamic_params\": {\n        \"invoice_id\": \"INV-2026-0042\",\n        \"customer\": \"Acme Corp\",\n        \"total\": \"$1,249.00\"\n      },\n      \"paper_size\": \"A4\",\n      \"output_format\": \"url\"\n    }\n  },\n  \"response\": {\n    \"status\": 200,\n    \"body\": {\n      \"success\": true,\n      \"pdf_url\": \"https://cdn.pdfapihub.com/pdf/0ac4a76f-1a4f-4f14-8c63-5190f501e112.pdf\",\n      \"file_size_bytes\": 84321,\n      \"file_deletion_date\": \"2026-05-17\",\n      \"source_type\": \"html\"\n    }\n  }\n}\n\nFile v1.0.0:skill.json\n\n{\n  \"name\": \"Generate PDF\",\n  \"description\": \"Generate a PDF document from HTML content or a public URL. Supports custom page sizes, fonts, margins, viewport dimensions, dynamic parameter substitution, and multiple output formats.\",\n  \"method\": \"POST\",\n  \"endpoint\": \"/v1/generatePdf\",\n  \"base_url\": \"https://pdfapihub.com/api\",\n  \"auth\": {\n    \"type\": \"apiKey\",\n    \"header\": \"CLIENT-API-KEY\",\n    \"required\": true\n  },\n  \"parameters\": {\n    \"body\": {\n      \"content_type\": \"application/json\",\n      \"fields\": [\n        { \"name\": \"url\", \"type\": \"string\", \"required\": false, \"description\": \"URL of the webpage to convert to PDF\" },\n        { \"name\": \"html_content\", \"type\": \"string\", \"required\": false, \"description\": \"HTML content to convert to PDF. Either url or html_content must be provided.\" },\n        { \"name\": \"css_content\", \"type\": \"string\", \"required\": false, \"description\": \"Optional CSS to apply to the HTML\" },\n        { \"name\": \"output_format\", \"type\": \"string\", \"required\": false, \"default\": \"url\", \"enum\": [\"url\", \"base64\", \"pdf\", \"binary\", \"file\"], \"description\": \"Output format for the generated PDF\" },\n        { \"name\": \"paper_size\", \"type\": \"string\", \"required\": false, \"default\": \"A4\", \"enum\": [\"A4\", \"A3\", \"A5\", \"Letter\", \"Legal\", \"Tabloid\"], \"description\": \"Paper size for the PDF\" },\n        { \"name\": \"landscape\", \"type\": \"boolean\", \"required\": false, \"default\": false, \"description\": \"Set to true for landscape orientation\" },\n        { \"name\": \"printBackground\", \"type\": \"boolean\", \"required\": false, \"default\": true, \"description\": \"Whether to print background graphics\" },\n        { \"name\": \"displayHeaderFooter\", \"type\": \"boolean\", \"required\": false, \"default\": false, \"description\": \"Whether to display header and footer\" },\n        { \"name\": \"preferCSSPageSize\", \"type\": \"boolean\", \"required\": false, \"default\": true, \"description\": \"Whether to prefer CSS-defined page size\" },\n        { \"name\": \"margin\", \"type\": \"object\", \"required\": false, \"description\": \"Custom margins with top, right, bottom, left values (e.g. '10mm')\" },\n        { \"name\": \"page_size\", \"type\": \"integer\", \"required\": false, \"description\": \"Maximum number of pages to generate (tier-dependent)\" },\n        { \"name\": \"paperWidth\", \"type\": \"number\", \"required\": false, \"description\": \"Custom paper width in pixels\" },\n        { \"name\": \"paperHeight\", \"type\": \"number\", \"required\": false, \"description\": \"Custom paper height in pixels\" },\n        { \"name\": \"viewPortWidth\", \"type\": \"integer\", \"required\": false, \"default\": 1080, \"description\": \"Viewport width for rendering\" },\n        { \"name\": \"viewPortHeight\", \"type\": \"integer\", \"required\": false, \"default\": 720, \"description\": \"Viewport height for rendering\" },\n        { \"name\": \"font\", \"type\": \"string\", \"required\": false, \"description\": \"Google Font name(s), pipe-separated (e.g. 'Roboto|Open Sans')\" },\n        { \"name\": \"wait_till\", \"type\": \"integer\", \"required\": false, \"default\": 0, \"description\": \"Time to wait in seconds before generating PDF\" },\n        { \"name\": \"dynamic_params\", \"type\": \"object\", \"required\": false, \"description\": \"Key-value pairs for {{placeholder}} substitution in HTML\" },\n        { \"name\": \"output_filename\", \"type\": \"string\", \"required\": false, \"description\": \"Custom filename for the output PDF\" }\n      ]\n    }\n  }\n}","readmeExcerpt":"Skill: Generate PDF from HTML Owner: rishabhdugar Summary: Generate a PDF document from HTML content or a public URL. Supports custom page sizes, fonts, margins, viewport dimensions, dynamic parameter substitution, a... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-17T15:04:46.066Z | user Initial release of generate-pdf skill: - Generate PDF documents from either raw HTML content or public URLs. - Supports cus","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"curl -X POST https://pdfapihub.com/api/v1/generatePdf \\\n  -H \"CLIENT-API-KEY: your_api_key\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{"},{"language":"bash","snippet":"curl -X POST https://pdfapihub.com/api/v1/generatePdf \\\n  -H \"CLIENT-API-KEY: your_api_key\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"html_content\": \"<html><body><h1>Invoice #{{invoice_id}}</h1><p>Total: {{total}}</p></body></html>\",\n    \"css_content\": \"body { font-family: Arial; }\",\n    \"dynamic_params\": { \"invoice_id\": \"INV-001\", \"total\": \"$1,249.00\" },\n    \"paper_size\": \"A4\",\n    \"output_format\": \"url\"\n  }'"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: generate-pdf\ndescription: \"Generate a PDF document from HTML content or a public URL. Supports custom page sizes, fonts, margins, viewport dimensions, dynamic parameter substitution, and multiple output formats.\"\n---\n\n# Generate PDF\n\n## What It Does\nGenerates a PDF document from either raw HTML content or a public URL using a headless Chromium browser. The API renders the page and returns the result as a downloadable URL, base64 string, or raw PDF file.\n\n## When to Use\n- Convert an HTML template (invoice, report, certificate) into a PDF\n- Take a PDF snapshot of a live webpage\n- Generate PDFs with dynamic data via placeholder substitution\n- Create PDFs with custom fonts, margins, and page sizes\n\n## Required Inputs\nYou must provide **one** of:\n- `html_content` — raw HTML string to render\n- `url` — a public URL to convert\n\n## Authentication\nSend your API key in the `CLIENT-API-KEY` header.\n\nGet your **free API key** at [https://pdfapihub.com](https://pdfapihub.com). Full API documentation is available at [https://pdfapihub.com/docs](https://pdfapihub.com/docs).\n\n## Use Cases\n- **Invoice Generation** — Generate branded PDF invoices from HTML templates with dynamic customer data\n- **Report Export** — Convert dashboard or analytics HTML pages into downloadable PDF reports\n- **Certificate Creation** — Produce personalized certificates or diplomas with dynamic name/date substitution\n- **Contract Generation** — Create contracts from templates with client-specific details filled in\n- **Resume/CV Export** — Convert styled HTML resumes to PDF for download\n- **Receipt Generation** — Auto-generate PDF receipts for e-commerce transactions\n- **Webpage Archival** — Save a snapshot of any public webpage as a PDF for records\n\n## Key Options\n| Parameter | Description |\n|-----------|-------------|\n| `output_format` | `url` (default), `base64`, `file`/`pdf`/`binary` |\n| `paper_size` | A4, A3, A5, Letter, Legal, Tabloid |\n| `landscape` | `true` for landscape orientation |\n| `margin` | Object with `top`, `right`, `bottom`, `left` (e.g. `\"10mm\"`) |\n| `font` | Google Font names, pipe-separated |\n| `dynamic_params` | Key-value object for `{{placeholder}}` replacement |\n| `wait_till` | Seconds to wait before rendering (for JS-heavy pages) |\n\n## Example Usage\n```bash\ncurl -X POST https://pdfapihub.com/api/v1/generatePdf \\\n  -H \"CLIENT-API-KEY: your_api_key\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"html_content\": \"<html><body><h1>Invoice #{{invoice_id}}</h1><p>Total: {{total}}</p></body></html>\",\n    \"css_content\": \"body { font-family: Arial; }\",\n    \"dynamic_params\": { \"invoice_id\": \"INV-001\", \"total\": \"$1,249.00\" },\n    \"paper_size\": \"A4\",\n    \"output_format\": \"url\"\n  }'\n```\n\n## Notes\n- Boolean fields accept string values: `\"true\"`, `\"1\"`, `\"yes\"`, `\"on\"`\n- Files are automatically deleted after 30 days\n- Page count limits are tier-dependent"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7e2tc4x8t7e64enbs2qz122x85144x\",\n  \"slug\": \"generate-pdf\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1776438286066\n}"},{"path":"skill-card.md","content":"## Description:\n\nGenerate a PDF document from HTML content or a public URL with support for custom page sizes, fonts, margins, viewport dimensions, dynamic parameter substitution, and multiple output formats.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[rishabhdugar](https://clawhub.ai/user/rishabhdugar)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nDevelopers and teams use this skill to convert HTML templates or public web pages into PDFs for invoices, reports, certificates, receipts, and archival snapshots.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: HTML, CSS, dynamic parameters, public URLs, and generated PDFs may be processed by or stored with pdfapihub.com.\n\nMitigation: Use only data approved for that provider and avoid secrets, internal-only URLs, regulated personal data, contracts, invoices, or customer records unless the provider is approved for that data.\n\nRisk: Generated PDFs may expose sensitive rendered content through returned URLs or downloadable files.\n\nMitigation: Treat generated PDF links and files as externally hosted outputs and apply appropriate access, sharing, and retention controls.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/rishabhdugar/skills/generate-pdf)\n- [PDF API Hub documentation](https://pdfapihub.com/docs)\n- [PDF API Hub](https://pdfapihub.com)\n\n## Skill Output:\n\n**Output Type(s):** [text, shell commands, configuration, files]\n\n**Output Format:** [JSON API request guidance and PDF output as a URL, base64 string, or binary file]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Requires a pdfapihub.com API key; output retention and page limits are provider dependent.]\n\n## Skill Version(s):\n\n1.0.0 (source: server release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment."},{"path":"example.json","content":"{\n  \"request\": {\n    \"method\": \"POST\",\n    \"url\": \"https://pdfapihub.com/api/v1/generatePdf\",\n    \"headers\": {\n      \"CLIENT-API-KEY\": \"your_api_key\",\n      \"Content-Type\": \"application/json\"\n    },\n    \"body\": {\n      \"html_content\": \"<html><body><h1>Invoice #{{invoice_id}}</h1><p>Customer: {{customer}}</p><p>Total: {{total}}</p></body></html>\",\n      \"css_content\": \"body { font-family: Arial, sans-serif; padding: 32px; } h1 { color: #333; }\",\n      \"dynamic_params\": {\n        \"invoice_id\": \"INV-2026-0042\",\n        \"customer\": \"Acme Corp\",\n        \"total\": \"$1,249.00\"\n      },\n      \"paper_size\": \"A4\",\n      \"output_format\": \"url\"\n    }\n  },\n  \"response\": {\n    \"status\": 200,\n    \"body\": {\n      \"success\": true,\n      \"pdf_url\": \"https://cdn.pdfapihub.com/pdf/0ac4a76f-1a4f-4f14-8c63-5190f501e112.pdf\",\n      \"file_size_bytes\": 84321,\n      \"file_deletion_date\": \"2026-05-17\",\n      \"source_type\": \"html\"\n    }\n  }\n}"},{"path":"skill.json","content":"{\n  \"name\": \"Generate PDF\",\n  \"description\": \"Generate a PDF document from HTML content or a public URL. Supports custom page sizes, fonts, margins, viewport dimensions, dynamic parameter substitution, and multiple output formats.\",\n  \"method\": \"POST\",\n  \"endpoint\": \"/v1/generatePdf\",\n  \"base_url\": \"https://pdfapihub.com/api\",\n  \"auth\": {\n    \"type\": \"apiKey\",\n    \"header\": \"CLIENT-API-KEY\",\n    \"required\": true\n  },\n  \"parameters\": {\n    \"body\": {\n      \"content_type\": \"application/json\",\n      \"fields\": [\n        { \"name\": \"url\", \"type\": \"string\", \"required\": false, \"description\": \"URL of the webpage to convert to PDF\" },\n        { \"name\": \"html_content\", \"type\": \"string\", \"required\": false, \"description\": \"HTML content to convert to PDF. Either url or html_content must be provided.\" },\n        { \"name\": \"css_content\", \"type\": \"string\", \"required\": false, \"description\": \"Optional CSS to apply to the HTML\" },\n        { \"name\": \"output_format\", \"type\": \"string\", \"required\": false, \"default\": \"url\", \"enum\": [\"url\", \"base64\", \"pdf\", \"binary\", \"file\"], \"description\": \"Output format for the generated PDF\" },\n        { \"name\": \"paper_size\", \"type\": \"string\", \"required\": false, \"default\": \"A4\", \"enum\": [\"A4\", \"A3\", \"A5\", \"Letter\", \"Legal\", \"Tabloid\"], \"description\": \"Paper size for the PDF\" },\n        { \"name\": \"landscape\", \"type\": \"boolean\", \"required\": false, \"default\": false, \"description\": \"Set to true for landscape orientation\" },\n        { \"name\": \"printBackground\", \"type\": \"boolean\", \"required\": false, \"default\": true, \"description\": \"Whether to print background graphics\" },\n        { \"name\": \"displayHeaderFooter\", \"type\": \"boolean\", \"required\": false, \"default\": false, \"description\": \"Whether to display header and footer\" },\n        { \"name\": \"preferCSSPageSize\", \"type\": \"boolean\", \"required\": false, \"default\": true, \"description\": \"Whether to prefer CSS-defined page size\" },\n        { \"name\": \"margin\", \"type\": \"object\", \"required\": false, \"description\": \"Custom margins with top, right, bottom, left values (e.g. '10mm')\" },\n        { \"name\": \"page_size\", \"type\": \"integer\", \"required\": false, \"description\": \"Maximum number of pages to generate (tier-dependent)\" },\n        { \"name\": \"paperWidth\", \"type\": \"number\", \"required\": false, \"description\": \"Custom paper width in pixels\" },\n        { \"name\": \"paperHeight\", \"type\": \"number\", \"required\": false, \"description\": \"Custom paper height in pixels\" },\n        { \"name\": \"viewPortWidth\", \"type\": \"integer\", \"required\": false, \"default\": 1080, \"description\": \"Viewport width for rendering\" },\n        { \"name\": \"viewPortHeight\", \"type\": \"integer\", \"required\": false, \"default\": 720, \"description\": \"Viewport height for rendering\" },\n        { \"name\": \"font\", \"type\": \"string\", \"required\": false, \"description\": \"Google Font name(s), pipe-separated (e.g. 'Roboto|Open Sans')\" },\n        { \"name\": \"wait_till\", \"type\": \"integer\", \"required\": false, \"default\": 0, \"description\": \"Time to wait in seconds before gene"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":null,"editorialQuality":{"score":100,"threshold":65,"status":"thin","wordCount":1461,"uniquenessScore":42,"reasons":["uniqueness-below-45"]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-10T23:09:39.724Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-10T23:09:39.724Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-11T01:45:56.891Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}