Create an API secret key, then turn your HTML or any public link into a pixel-perfect PDF or image. It all takes one request.
Create your account, verify your email, and generate the key that authenticates every request you send.
Read the guidePOST /api/api-secret-keys/create/
{
"success": true,
"errors": [],
"data": {
"key": "pigdf_x7KqLm...9dRw",
"api_key": { "hint": "pigdf_x7Kq...9dRw" }
}
}Send a complete HTML document and receive a pixel-perfect PDF. Every option, default, error, and limit is documented.
Read the guidePOST /api/render/html-to-pdf/
{
"content": "<h1>Invoice #1024</h1>",
"options": {
"page_size": { "width": 794, "height": 1123 },
"tagged": true
}
}Turn the same HTML into a crisp PNG or JPEG image, with control over format, size, quality, transparency, and scale.
Read the guidePOST /api/render/html-to-image/
{
"content": "<h1>Dashboard</h1>",
"options": {
"format": "png",
"image_size": { "width": 1280 }
}
}Give a public webpage URL and receive that page as a PDF, with the same page size, margin, scale, and orientation options.
Read the guidePOST /api/render/link-to-pdf/
{
"link": "https://pigdf.com/",
"options": { "landscape": true }
}Capture any public webpage as a PNG or JPEG image, with format, size, quality, transparency, and scale options.
Read the guidePOST /api/render/link-to-image/
{
"link": "https://pigdf.com/",
"options": { "format": "png" }
}