PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

HTML to PDF

Renders an HTML text as a PDF file. Scripts are removed before rendering; styles are kept.

The HTML To PDF action renders HTML as a PDF file, for example to turn an HTML template filled with process data into an invoice, a report or a confirmation you can email or store.

Add the action

In the Process Designer toolbox, open Converters and pick HTML To PDF (or type HTML To PDF in the search box). Then click Configure on the action to open its settings.

The HTML To PDF action properties with the Configure button

Inputs and outputs

All three fields are in the Configure panel.

FieldDirectionTypeRequiredWhat to put / what you get
HTML stringInputTextYesThe HTML to render. You can type it in the editor or use a variable.
File NameInputTextNoThe PDF's file name. .pdf is added when missing. Empty: Document_Generated_by_PROCESIO.pdf.
File OutputOutputFileNoThe generated PDF.

Example

HTML stringFile NameFile Output
<h1>Page one</h1><p>First</p><script>alert(1)</script>reportreport.pdf
<p>Annex</p>annex.pdfannex.pdf
<p>x</p>(empty)Document_Generated_by_PROCESIO.pdf

Good to know

  • Scripts and other unsafe content are removed before rendering (see Sanitizer). The PDF never runs JavaScript, so build the final HTML before this step.
  • <style> blocks and inline style attributes are kept, so you can control fonts, colours, tables and page breaks with CSS. Text is rendered as UTF-8, so accented and non-Latin characters are kept.
  • To fill a template with data first, build the HTML with text actions or HTML Manipulation, then pass it here.
  • If rendering fails, the step fails with Error while trying to generate pdf.

On this page