HTML to PDF

v1.0.0

Use when: integrating with PDF API Hub REST APIs for document automation — HTML/URL to PDF, merge, split, compress, OCR, watermark, sign, lock/unlock, conver...

0· 69·0 current·0 all-time
byRishabh Dugar@rishabhdugar

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for rishabhdugar/pdf-api-hub.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "HTML to PDF" (rishabhdugar/pdf-api-hub) from ClawHub.
Skill page: https://clawhub.ai/rishabhdugar/pdf-api-hub
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install pdf-api-hub

ClawHub CLI

Package manager switcher

npx clawhub@latest install pdf-api-hub
Security Scan
Capability signals
Requires sensitive credentials
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description match the included endpoint reference and examples for pdfapihub.com. One small inconsistency: the registry metadata lists no required env vars, while example code shows reading an environment variable (PDFAPIHUB_API_KEY) as a convenience; authentication is otherwise described as a CLIENT-API-KEY header (expected).
Instruction Scope
SKILL.md and the shipped docs provide endpoint references and client examples only. The skill explicitly states it does not execute API calls or store keys; because this is instruction-only with no code files or install steps, there is no hidden runtime behavior. Note: many examples demonstrate running requests and saving downloaded files to disk (within user code) — that is expected for client examples but users should not paste secrets into chat.
Install Mechanism
No install spec and no code files — lowest-risk instruction-only package. Nothing is downloaded or written to disk by the skill itself.
Credentials
The skill declares no required environment variables, which is reasonable for an instruction-only reference. Example snippets do reference an env var (PDFAPIHUB_API_KEY) and a Python wrapper reads os.environ when present — this is a convenience pattern but not enforced by the skill metadata. No unrelated credentials or secret-scoped config paths are requested.
Persistence & Privilege
always:false and the skill does not request installation or persistent agent privileges. It does not modify other skills or system config.
Assessment
This package is a documentation-only integration guide for pdfapihub.com. Before using it: 1) Confirm the API domain (https://pdfapihub.com) is the genuine service you intend to use. 2) Do not paste your CLIENT-API-KEY into chat; store keys in environment variables or a secret manager and inject them into client code at runtime. 3) Note the docs show an example env var (PDFAPIHUB_API_KEY) even though the registry metadata lists none — decide how you’ll supply the API key in your environment. 4) Review the service’s privacy/retention policy (file_deletion_date appears in responses) before uploading sensitive documents. 5) Test with non-sensitive data first and verify output URLs/files and any automatic deletion behavior. If you need the agent to call the API automatically, implement that client logic yourself and review where keys are stored and who can access them.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

📑 Clawdis
OSLinux · macOS · Windows
latestvk97dgjk65gm0fgjfe6pcfvz4fd851bnj
69downloads
0stars
1versions
Updated 1w ago
v1.0.0
MIT-0
Linux, macOS, Windows

When to Use

User needs to call PDF API Hub endpoints (pdfapihub.com/api/v1/...) for document automation: generating PDFs from HTML/URLs, merging, splitting, compressing, OCR, watermarking, signing, encrypting/decrypting, converting between PDF and images, parsing/extracting text and tables, or managing uploaded files.

Scope

This skill ONLY:

  • Provides endpoint reference, request/response contracts, and integration patterns for the PDF API Hub REST API
  • Shows code examples in multiple languages (cURL, Python, Node.js, etc.)
  • Explains authentication, error handling, and output format options

This skill NEVER:

  • Executes API calls or generates files directly
  • Stores or transmits API keys
  • Accesses files outside the user's working directory

All code examples are reference patterns for the user to implement.

Quick Reference

TopicFile
All endpoints & parametersendpoints.md
Code examples by use caseexamples.md
Advanced workflowsadvanced.md

Authentication

Every request requires the CLIENT-API-KEY header.

CLIENT-API-KEY: <your-api-key>
Content-Type: application/json

Get your API key at pdfapihub.com/signup.

Base URL

https://pdfapihub.com/api/v1/

All endpoints use POST with JSON body.

Endpoint Map

#CategoryEndpointPathWhat it does
1DocumentGenerate PDF/generatePdfRender HTML or capture any webpage as a PDF
2DocumentParse PDF/pdf/parseExtract text, tables, or structured layout data
3DocumentMerge PDFs/pdf/mergeCombine multiple PDFs into one
4DocumentSplit PDF/pdf/splitSplit a PDF into pages, ranges, or chunks
5DocumentCompress PDF/compressPdfShrink file size (4 compression levels)
6DocumentPDF Info/pdf/infoGet metadata and page info from a PDF
7DocumentWatermark/watermarkOverlay text/logo watermarks on pages
8DocumentSign PDF/sign-pdfStamp a signature image on PDF pages
9SecurityLock PDF/lockPdfAES-256 encryption with granular permissions
10SecurityUnlock PDF/unlockPdfRemove password protection
11ConversionGenerate Image/generateImageCapture URL/HTML as PNG image
12ConversionCompress Image/compressImageReduce image file size
13ConversionPDF to Image/pdfToImageRender PDF pages as PNG/JPG/WebP
14ConversionImage to PDF/imageToPdfCombine images into a PDF
15OCRPDF OCR/pdfOcrExtract text from scanned PDF documents
16OCRImage OCR/imageOcrExtract text from photos/images
17UtilityURL to HTML/urlToHtmlFetch fully-rendered HTML via headless browser
18File MgmtUpload File/uploadFileUpload a file to cloud storage
19File MgmtList Files/listFilesList uploaded files
20File MgmtDelete File/deleteFileDelete an uploaded file
21TemplatesCreate Template/createTemplateSave a reusable HTML template
22TemplatesList Templates/listTemplatesList saved templates
23TemplatesDelete Template/deleteTemplateDelete a saved template

Output Formats

Most endpoints support the output_format parameter:

ValueDescription
urlReturns a hosted CDN URL (default)
fileReturns the file as a download
base64Returns base64-encoded content
binaryReturns raw binary stream
pdfReturns PDF file directly

Error Handling

HTTP CodeMeaningAction
400Invalid RequestCheck JSON body shape and required fields
401UnauthorizedVerify CLIENT-API-KEY header
422Validation FailedCheck URL/HTML/options for conflicts
429Rate LimitedBack off and retry with exponential delay
500Internal ErrorRetry; contact support if persistent

Common Response Shape

{
  "success": true,
  "pdf_url": "https://cdn.pdfapihub.com/pdf/a1b2c3d4.pdf",
  "file_size_bytes": 84321,
  "file_deletion_date": "2026-05-04",
  "source_type": "html"
}

Core Rules

1. Always Set output_format Explicitly

{ "output_format": "url" }

Don't rely on defaults — be explicit about whether you need a URL, file, or base64.

2. Use html_content for Dynamic Documents

{
  "html_content": "<h1>Invoice #{{number}}</h1>",
  "css_content": "h1 { color: #333; }",
  "dynamic_params": { "number": "INV-001" }
}

3. Use url for Webpage Capture

{
  "url": "https://example.com/report",
  "wait_until": "networkidle",
  "paper_size": "A4"
}

4. Handle Files via URL or Upload

For endpoints that operate on existing PDFs (merge, split, compress, etc.), provide files via:

  • Direct URL to the PDF
  • Previously uploaded file reference via the Upload File endpoint

5. Validate Responses

Always check success: true in the response before using the result.

Common Traps

TrapConsequenceFix
Missing CLIENT-API-KEY header401 errorAlways include the header
Sending both url and html_contentUndefined behaviorUse one or the other
Not setting wait_until for SPAsIncomplete captureUse networkidle for JS-heavy pages
Ignoring file_deletion_dateBroken links after expiryDownload/store files before deletion
Large HTML without paginationTimeout or huge PDFUse page_size to limit output

Security & Privacy

  • All API calls go to pdfapihub.com over HTTPS
  • API keys should be stored in environment variables, never hardcoded
  • Files hosted on CDN have an expiration date — download promptly
  • This skill provides reference patterns only; it does not execute code or store credentials

Feedback

Comments

Loading comments...