html Page option.
See Screenshot options for all available options for screenshots.
Example
This example generates a basic image that is 400x200.Output

Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Generate images from HTML.
html Page option.
See Screenshot options for all available options for screenshots.
curl --request POST 'https://api.doczilla.app/v1/screenshot' \
--header 'Authorization: Bearer <your token>' \
--header 'Content-Type: application/json' \
--output 'doczilla.pdf' \
--data '{
"page": {
"html": "PGRpdj5Zb3VyIGZpcnN0IERvY3ppbGxhIGltYWdlPC9kaXY+"
},
"screenshot": {
"viewport": {
"width": 400,
"height": 200
}
}
}'
import Doczilla from '@doczilla/node'
const doczilla = new Doczilla('<your token>')
const pdf = await doczilla.screenshot.direct({
page: {
html: '<div>Your first Doczilla image</div>'
},
screenshot: {
viewport: {
width: 400,
height: 200
}
}
})

Was this page helpful?