Skip to main content

Create PDF

Create PDF fills a PDF template with the data of a document and makes a PDF, which a later action can email or upload.

Template​

Template chooses a PDF template of the team and one of its versions. The action keeps that version until you choose another one. An action without a template can be saved, but only switched off.

Data​

Data chooses what fills the template: the Extraction data, the output of a data transformation above it, or inside a For Each Loop the Loop item.

Variables​

Map variables opens the template next to the list of its variables. Each variable gets a value from the data, such as annotations.order_number.value, and each repeating row gets a group, such as annotations.order_lines. The variables of a repeating row are chosen inside one item of its group. Preview with fills the template with a document of the task, so you see the result while you map.

A variable without a value leaves a blank spot in the PDF, unless the template marks it as required: then the export stops. A variable outside a repeating row can also take a value of a group, which prints the value of every item, separated by commas.

File name​

File name sets the name of the PDF, with the same variables as an FTP export. Left empty, the PDF gets the name of the template. In a loop the position of the item is added, unless the name uses a value of the item.

Using the PDF​

Create PDF only makes the file. A Send email below it attaches the PDF, and an FTP export below it uploads it. An HTTP export cannot send a PDF.

An email or FTP export never goes out without its PDF: when the Create PDF action is switched off or failed, the action that uses its PDF fails too.

In a For Each Loop, Create PDF makes one PDF per item, and the emails and FTP exports of the same loop use the PDF of their item.

When it fails​

A PDF that cannot be made stops the export, and a comment on the task gives the reason, such as "Required variables without a value: Order number". A PDF takes at most 1,000 items in one repeating row and 5,000 in all its repeating rows together.