Skip to main content

HTML to JPG (Enterprise)

The parameters are consistent with the main HTML to PDF interface. The additional image parameter specifies the image scale factor, allowing you to adjust the output clarity as needed.

Parameters

NameTypeRequiredDescriptionDefault
imageObjectNoImage Options (Enterprise Edition)
scaleFloatNoScale Factor (0.1 - 5.0)1.0

Request Body

{
"id": "any",
"html": "",
"pdf": {
"footerTemplate": "",
"headerTemplate": "",
"displayHeaderFooter": false,
"generateTaggedPdf": true,
"generateDocumentOutline": true
},
"options": {
"waitUntil": "load"
},
"image": {
"scale": 1.5
}
}

Response Body

The API returns a JPEG image stream (Content-Type: image/jpeg), which can be directly displayed or saved in a browser or HTTP client.