Some elements can be automatically generated when creating a PDF to add a better look and structure to your elements. In this recipe, we'll see how to add a header and footer, and how to create links to other elements.
Structuring a PDF
Getting ready
We'll use the fpdf module to create PDF documents:
>>> echo "fpdf==1.7.2" >> requirements.txt
>>> pip install -r requirements.txt
How to do it...
- The structuring_pdf.py script is available in GitHub here: https://github.com/PacktPublishing/Python-Automation-Cookbook/blob/master/Chapter05...