I am using python to generate a set of plots. I then save these plots into a PDF document. Along the way I also produce a log file which details all the variables and other information in the program.
At the end of the day I have two files, one plots.pdf and one log.txt
What I really need to do is attach or append the log.txt file to the plots.pdf file.
How can I do this in python?
Ideally I would like to generate them each individually and then at the end attach/append the log.txt to the plots.pdf
I have seen answers showing how to add text to a pdf but not attach or append a file.
Like this: log.txt attached to PDF file
Thanks!