← 返回
未分类 Key 中文

PDF to Image

Convert PDF pages to images (PNG, JPG, or WebP). Supports DPI control, resize, background color, and page selection.
将PDF页面转换为图片(PNG、JPG或WebP)。支持DPI控制、调整大小、背景颜色及页面选择。
rishabhdugar rishabhdugar 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 369
下载
💾 1
安装
1
版本
#latest

概述

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 PDF
  • file — base64-encoded PDF
  • Multipart upload with file field

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

ParameterDescription
------------------------
page / pagesSingle page or range (e.g. "1-5")
image_formatpng (default), jpg, webp
dpi72–300 (default 150)
width / heightResize output dimensions
background_colorFill transparent areas (hex)
outputurl, 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"
  }'

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 19:17 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

office-efficiency

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 407 📥 151,813
office-efficiency

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 482 📥 159,732
office-efficiency

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 940 📥 188,391