Api2pdf for Openclaw

A comprehensive API-driven document service for converting, merging, and manipulating PDFs and Office files via secure Membrane integration.

gora050
v1.0.2
Apr 3, 2026
0
548
1

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install api2pdf

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 api2pdf 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 Api2pdf?

Api2pdf is a specialized service that simplifies the process of converting HTML, URLs, and various file formats into high-quality PDFs. By integrating this tool as part of your Openclaw Skills library, you eliminate the need to maintain complex, resource-heavy PDF generation libraries locally. It provides a scalable API for creating professional documents like invoices, reports, and certificates on the fly.

This skill uses the Membrane framework to manage authentication and connectivity. This means developers can focus on document logic rather than handling API keys or token refreshes. With support for Chrome-based rendering and LibreOffice conversions, it ensures high fidelity for both web-to-pdf and office-to-pdf workflows.

Api2pdf Use Cases

  • Converting dynamic web pages or raw HTML templates into downloadable PDF reports.
  • Merging several PDF documents into a single file for streamlined record keeping.
  • Converting Microsoft Office documents (Word, Excel, PowerPoint) into PDF format programmatically.
  • Protecting sensitive PDFs with passwords or adding custom watermarks for branding.
  • Generating barcodes and QR codes to be embedded directly into generated documents.

How Api2pdf Works

  1. The user installs the Membrane CLI to act as the interface between the local environment and the Api2pdf service.
  2. Authentication is handled through a secure login flow that stores credentials safely in the Membrane cloud, not on the local machine.
  3. The user identifies the required action (e.g., convert-url-to-pdf) by searching the available action list within the connection.
  4. Commands are sent via the CLI or an AI agent, passing necessary parameters like source URLs or HTML strings.
  5. Api2pdf processes the request in the cloud and returns a URL to the generated document, which is stored temporarily for 24 hours.

Api2pdf Setup

To integrate this with your Openclaw Skills, start by installing the Membrane CLI:

npm install -g @membranehq/cli

Log in to your account:

membrane login --tenant

Search for the Api2pdf connector and establish a new connection:

membrane search api2pdf --elementType=connector --json
# Use the ID from the search results
membrane connect --connectorId=CONNECTOR_ID --json

Api2pdf Data Schema & Taxonomy

The skill organizes operations into distinct action schemas. Results typically include a URL to the generated asset.

Feature Input Examples Output Type
PDF Conversion HTML, URL, CSS Options File URL (S3-backed)
PDF Utilities Merge List, Password, Pages Processed PDF URL
Barcode Gen Text, Format (QR, Code128) Image/PDF URL
Account Management N/A Balance/Usage Stats

Api2pdf Advanced Features

  • Proxy request support to access underlying Api2pdf API endpoints not explicitly listed as pre-built actions.
  • Automated file lifecycle management with a 24-hour auto-delete policy and manual override options.
  • OCR (Optical Character Recognition) capabilities to extract text from images and scanned documents.
  • Support for headless environments via CLI-based authentication codes.
  • Direct conversion of HTML to Excel (.xlsx) and Word (.docx) using LibreOffice engines.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*