PDF utilities

FREEMIUM
By Domenico Giambra | Updated vor einem Monat | Tools
Health Check

N/A

Back to All Tutorials (4)

Convert from HTML to PDF

{
	"source": [
		{
			"type": "html",
			"data": "<p>Hello world</p>",
			"options": {
				"format": "A4",
				"'printBackground" => true,
				"margin": {
					"top": "5mm",
					"right": "5mm",
					"bottom": "5mm",
					"right": "5mm"
				}
			}
		}
	]
}

“options” parameter is optional, the default value is {“format”: “A4”}
Passing several object to “source” array, you can concatenate different html-converted pdf with different options.