PDF API Hub for Openclaw

A comprehensive document automation integration for converting HTML to PDF, merging files, performing OCR, and managing document workflows via REST API.

rishabhdugar
v1.0.0
Apr 17, 2026
0
728
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install pdf-api-hub

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install pdf-api-hub using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is PDF API Hub?

The PDF API Hub skill provides a sophisticated interface for developers and AI agents to handle complex document processing tasks through the pdfapihub.com REST API. By utilizing this within the Openclaw Skills ecosystem, users can automate the generation of high-quality PDFs from HTML or URLs, manage file security, and execute advanced conversions without manual intervention. It serves as a critical bridge for applications requiring reliable document infrastructure and cloud-based file management.

PDF API Hub Use Cases

  • Generating automated invoices, reports, or certificates from dynamic HTML templates and CSS.
  • Capturing full-page screenshots or PDF versions of JavaScript-heavy web applications.
  • Batch processing document operations such as merging multiple PDFs or splitting documents into individual pages.
  • Implementing OCR workflows to extract searchable text and structured data from scanned images and PDFs.
  • Securing sensitive documents with AES-256 encryption, custom watermarks, and digital signature stamps.

How PDF API Hub Works

  1. The AI agent identifies a document processing need, such as converting a webpage to a PDF.
  2. It references the Openclaw Skills endpoint map to determine the correct POST request structure for pdfapihub.com.
  3. The agent constructs a JSON payload containing the source (URL or HTML) and desired configuration like paper size or output format.
  4. Using a CLIENT-API-KEY for authentication, the request is sent to the high-performance document engine.
  5. The skill processes the response, providing the user with a CDN-hosted URL, base64 data, or raw binary for the finished document.

PDF API Hub Setup

To begin using this skill, you must first obtain an API key from the PDF API Hub dashboard. For security, ensure this key is handled as an environment variable in your Openclaw Skills environment.

# Set your API key in your environment
export PDF_API_HUB_KEY='your_api_key_here'

Test the integration using a basic cURL command to fetch document metadata:

curl -X POST https://pdfapihub.com/api/v1/pdf/info \
  -H "CLIENT-API-KEY: $PDF_API_HUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/sample.pdf"}'

PDF API Hub Data Schema & Taxonomy

The skill interacts with structured JSON payloads and returns detailed metadata for every document operation. Below is the standard response structure for most document tasks:

Property Type Description
success boolean Confirms the operation completed without errors
pdf_url string Publicly accessible URL for the generated file
file_size_bytes number The exact size of the resulting document
file_deletion_date string Timestamp when the file will be removed from the CDN
source_type string Indicates if the source was a URL, HTML, or uploaded file

Users can customize the output by setting the output_format parameter to url, file, base64, or binary.

PDF API Hub Advanced Features

  • Intelligent rendering triggers using wait_until parameters like networkidle to ensure SPAs are fully loaded before capture.
  • Dynamic data injection into HTML templates using dynamic_params for high-volume personalized document generation.
  • Multi-page OCR capabilities that handle both standard PDFs and raw images for text extraction.
  • Advanced security permissions for locked PDFs, allowing or disallowing printing, modifying, and copying content.
  • Integrated file management endpoints to upload temporary assets and list available templates within the Openclaw Skills workflow.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*