PDF Generation in Directus (API)

How to generate PDF`s based on HTML inside flows or extensions using TTA in Directus.

PDF Directus flow operation

Using PDF generation inside of Directus Flows

Use TTA's PDF operation to integrate PDF generation into Directus Flows. It supports generating a PDF file based on HTML content. You can use any HTML content, including images, tables, and styles.

Operation Settings

PDF Directus flow settings

Inside of the operation you have the following options:

OptionDescription
File name This is the name of the file that will be generated.
Options This is the options that will be passed to the PDF generation library. All options can be found on the API page.

Output

The output of the operation is a file ID. The file will be placed on the root folder. You can use this ID to update the image with the correct folder/name ect or you can use it in any image field in Directus.