From the user's point of view, the easiest way would be to start with a PDF file with static content, and then with python just add dynamic parts. Is this a simple process?
Unfortunately not. There are several tools that are good at creating PDF files from scratch (most often for Python, ReportLab ), but usually they do not load existing PDF files. You will need to enable the generation code for any text text, lines, blocks, shapes and images, and not for free editing by the user.
On the other hand, pyPdf , which can load PDF files, sort pages and extract some of the information, but cannot really add new content. You can "merge pages into one, but you still have to create additional overlay information as a page in ReportLab in the first place.
source share