# Callback (browserless_pdf)

Generate PDF file from HTML code

# Config

browserless_pdf:

	config:

		# Required | Type: string | Default: null
		# DSN string
		connection: "https://chrome.browserless.io"

		# Required | Type: string | Default: null
		# Variable to store generated file reference to
		output: "myvar"

		# Required | Type: string | Default: null
		# Name of generated file
		filename: "myfile"

		# Required | Type: array | Default: {}
		# Browserless pdf options
		#
		### Note
		### Complete list of options can be found on https://github.com/browserless/chrome/blob/master/src/schemas.ts#L147
		body: {html: "<html lang="cs"><body><h1>Yeah!</h1></body></html>", options: {format: A4, landscape: true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22