PDF to Image

👤 rishabhdugar 📦 v1.0.0 ⭐ 4.5 ⬇️ 675 下载
📄 办公效率 免费 🔑 需 API Key

📖 技能介绍


name: pdf-to-image description: "Convert PDF pages to images (PNG, JPG, or WebP). Supports DPI control, resize, background color, and page selection."


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

7w4.net小葱技能站收录全网优质技能,值得收藏。

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"
  }'

🤖 AI 评测

这个 Skill 做得不错,文档写得很清楚,功能说明详细,示例也很实用,开发者用起来会比较顺手。支持多种图片格式和灵活的参数设置,使用起来很方便。美中不足的是缺少对错误情况的说明,遇到问题可能需要自己摸索。总体来说质量良好,是一个值得使用的工具。

📊 多维度评分

适应性4.7
规范性4.4
有效性4.9
可靠性3.9
可信度4.3

📁 包含文件 (4 个)

📄 SKILL.md 2.2 KB
📄 _meta.json 131 B
📄 example.json 895 B
📄 skill.json 2 KB