Skip to main content

Setting HTML content

You can set the HTML content of the page to render dynamically generated content as well.

mutation PDF {
content(html: "<h1>Hello, World!</h1>") {
status
}

pdf(displayHeaderFooter: true, printBackground: false, format: a0) {
base64
}
}
BQL Schemas

For more details on BQL mutations, refer to the BrowserQL Schema reference pages.

Rest API

Generating PDFs can also be done with Browserless Rest API. For endpoint details, parameters, and code samples, see the Browserless REST API.