I'm well aware that there are a billion questions relating to Python and PDF but none (that I can find) handle a fairly simple use-case.
I have a PDF template with some text in some places. I want to:
- Open this PDF in Python
- Replace a few known strings with other strings.
- Save the edited version as a new file.
Currently the only option I can see is generating the whole PDF from scratch which is not very desirable because the template is a fairly complicated design that I'd have to re-implement somehow.
Is there not a library that can edit PDFs?