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.
- API Endpoint: http://127.0.0.1:8080/html-to-jpg
Parameters
Name | Type | Required | Description | Default |
---|---|---|---|---|
image | Object | No | Image Options (Enterprise Edition) | |
scale | Float | No | Scale 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.