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.

想要更強大的技能外掛,就來小蔥技能站7w4.net看看吧。

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

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