Create a PDF using Python script
- Updated: 2026/05/21
Python is used in automation, data generation, and conversion to various formats, including the widely used PDF. Here is a step-by-step example of building an automation that runs Python script from a file to generate a PDF.
Prerequisites
- To run Python script in Automation 360, you must already have the latest version of Python 3.x installed on your device.
- This example uses the FPDF library to generate the PDF. FPDF, a python library that
has been ported from PHP, is a powerful tool for generating PDFs. It offers a range
of functionalities, from generating PDFs from text files to writing your data formats
to generate PDFs. Therefore, install it before you start building this automation by
copying and pasting the following line in the Windows command
prompt:
See FPDF project page.pip install fpdf