PDF to Image
/install pdf-to-image
PDF to Image
What It Does
Renders selected pages of a PDF as images in PNG, JPG, or WebP format. Supports DPI control, resize dimensions, background color fill, and multiple output modes.
When to Use
- Generate thumbnail previews of PDF pages
- Convert PDF pages to images for social media (OG images)
- Create high-DPI images for print
- Extract specific pages as images
Required Inputs
Provide one of:
url— public URL to a PDFfile— base64-encoded PDF- Multipart upload with
filefield
Authentication
Send your API key in the CLIENT-API-KEY header.
Get your free API key at https://pdfapihub.com. Full API documentation is available at https://pdfapihub.com/docs.
Use Cases
- PDF Thumbnails — Generate preview thumbnails for document management systems
- Social Media Previews — Create OG images (1200×630) from the first page of a PDF
- E-commerce Product Sheets — Convert product PDF spec sheets into gallery images
- Document Previews — Show image previews of PDFs in web apps without embedding a PDF viewer
- Print-Ready Exports — Export PDF pages as high-DPI images for print workflows
- Slide Extraction — Extract individual slides from PDF presentations as images
Key Options
| Parameter | Description |
|---|---|
page / pages |
Single page or range (e.g. "1-5") |
image_format |
png (default), jpg, webp |
dpi |
72–300 (default 150) |
width / height |
Resize output dimensions |
background_color |
Fill transparent areas (hex) |
output |
url, base64, both, file |
Limits
- Max 100 pages per request
- DPI range: 72–300
- Max resize dimension: 10000 px
Example Usage
curl -X POST https://pdfapihub.com/api/v1/convert/pdf/image \
-H "CLIENT-API-KEY: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://pdfapihub.com/sample-pdfapi-intro.pdf",
"pages": "1-3",
"image_format": "jpg",
"dpi": 200,
"output": "url"
}'
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install pdf-to-image - 安装完成后,直接呼叫该 Skill 的名称或使用
/pdf-to-image触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
PDF to Image 是什么?
Convert PDF pages to images (PNG, JPG, or WebP). Supports DPI control, resize, background color, and page selection. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 71 次。
如何安装 PDF to Image?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install pdf-to-image」即可一键安装,无需额外配置。
PDF to Image 是免费的吗?
是的,PDF to Image 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
PDF to Image 支持哪些平台?
PDF to Image 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 PDF to Image?
由 Rishabh Dugar(@rishabhdugar)开发并维护,当前版本 v1.0.0。