Html2Pdf
Takes a HTML file and converts to a PDF file.
Location or name of pdf file generated is stored on item. Name is stored in pdf_file property on item. New item is created if missing.
HTML template supports expansion.
Configuration
Section titled “Configuration”| Name | Description | Default | Mandatory |
|---|---|---|---|
name | Must be Html2Pdf | N/A | |
html_template | Where to load template from | N/A | |
store_pdf_full_path | Store full path with name or just name. | true | |
output_directory | Pdf output directory. | "." | |
resources_directory | Location of where to put additional resources such as fonts and images. | N/A |
{ "name": "Html2Pdf", "config": { "html_template": "<path_to_template>.html", "store_pdf_full_path": false, "output_directory": "<path_to_pdf_out_put>", "resources_directory": "<path_to_resources_dir>" }}Example
Section titled “Example”Attached ZIP contains example on basic operations creating an html with expansion & resources.