PDF utilities

免费增值
通过 Domenico Giambra | 已更新 2ヶ月前 | Tools
Health Check

N/A

返回全部教程 (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.