name: pdf-to-image description: "Convert PDF pages to images (PNG, JPG, or WebP). Supports DPI control, resize, background color, and page selection."
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.
Provide one of:
- url — public URL to a PDF
- file — base64-encoded PDF
- Multipart upload with file field
7w4.net小葱技能站收录全网优质技能,值得收藏。
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.
| 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 |
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"
}'
这个 Skill 做得不错,文档写得很清楚,功能说明详细,示例也很实用,开发者用起来会比较顺手。支持多种图片格式和灵活的参数设置,使用起来很方便。美中不足的是缺少对错误情况的说明,遇到问题可能需要自己摸索。总体来说质量良好,是一个值得使用的工具。