Python Forum
PDF generation / edit - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: PDF generation / edit (/thread-34387.html)



PDF generation / edit - SpongeB0B - Jul-27-2021

Hi everyone,

I made a little website with flask, now I would like to generate a pdf (static) with the content of that website.

By static I mean that I will generate the PDF once, not the user.

Ideally I'm looking for a package that can edit a PDF, as such I can build a base with a regular program with a GUI and insert afterward text, image etc.. with that package.. any ideas ?

sorry the question might be already asked but I couldn't find it with the search engine as it need at least characters (PDF) :/


RE: PDF generation / edit - Larz60+ - Jul-27-2021

There are several packages available for this:


RE: PDF generation / edit - SpongeB0B - Jul-28-2021

Thanks again @Larz60+ ,

Actually I didn't g00gle it, but asked the Duck [Image: dax-logo.svg] instead Big Grin

and doing so, I've found : FPDF2 and more precisely how add content to an existing .pdf

https://pyfpdf.github.io/fpdf2/ExistingPDFs.html

I will let a little review of this package here when I'm done.