PDF to Image
v1Convert PDF pages to images (PNG, JPG, or 网页P). 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 网页P 格式化. Supports DPI control, resize dimensions, background color fill, and multiple 输出 modes.
When to Use 生成 thumbnAIl previews of PDF pages Convert PDF pages to images for social media (OG images) 创建 high-DPI images for print 提取 specific pages as images Required 输入s
Provide one of:
url — public URL to a PDF file — base64-encoded PDF Multipart 上传 with file field Authentication
发送 your API key in the 命令行工具ENT-API-KEY header.
获取 your free API key at https://pdfAPIhub.com. Full API documentation is avAIlable at https://pdfAPIhub.com/docs.
Use Cases PDF ThumbnAIls — 生成 preview thumbnAIls for document management 系统s Social Media Previews — 创建 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 网页 应用s without embedding a PDF viewer Print-Ready 导出s — 导出 PDF pages as high-DPI images for print 工作流s Slide 提取ion — 提取 individual slides from PDF presentations as images Key Options Parameter Description page / pages Single page or range (e.g. "1-5") image_格式化 png (default), jpg, 网页p dpi 72–300 (default 150) width / height Resize 输出 dimensions background_color Fill transparent areas (hex) 输出 url, base64, 机器人h, file Limits Max 100 pages per 请求 DPI range: 72–300 Max resize dimension: 10000 px Example Usage curl -X POST https://pdfAPIhub.com/API/v1/convert/pdf/image \ -H "命令行工具ENT-API-KEY: your_API_key" \ -H "Content-Type: 应用/json" \ -d '{ "url": "https://pdfAPIhub.com/sample-pdfAPI-intro.pdf", "pages": "1-3", "image_格式化": "jpg", "dpi": 200, "输出": "url" }'