Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计通过

pdf-api-hubPDF API HUB 文档

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

2,375

周安装

97

GitHub Stars

公开资料未说明

下载量

768
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pdf-api-hub(PDF API HUB 文档)
来源仓库:https://github.com/rishabhdugar/pdf-api-hub
安装命令:
openclaw skills install pdf-api-hub
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install pdf-api-hub

简介

pdf-api-hub 提供 RESTful API 集成能力,支持 PDF 自动化处理与 Web 转换。

  • 适用于 HTML/URL 转 PDF、合并、压缩、水印等文档工程场景。
  • 可对接前端项目实现动态报告生成与文档发布流程。
  • 使用前需配置 API 密钥并确认网络连通性与配额限制。
  • 建议区分测试环境与生产环境,避免因高并发导致服务中断。

SKILL.md

name
PDF API Hub
slug
pdf-api-hub
version
1.0.0
homepage
https://pdfapihub.com/
description
Use when: integrating with PDF API Hub REST APIs for document automation — HTML/URL to PDF, merge, split, compress, OCR, watermark, sign, lock/unlock, convert, screenshot, parse, and file management via pdfapihub.com.
metadata
{"clawdbot":{"emoji":"📑","requires":{"bins":[]},"os":["linux","darwin","win32"]}}

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

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

87.75%
按下载量换算674

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills