

2·
2 months agoFound this on stackoverflow: https://stackoverflow.com/questions/68903835/how-to-draw-a-shape-inside-a-pdf-with-python
import fitz
Open the pdf
doc = fitz.open(‘./test.pdf’) for page in doc: # For every page, draw a rectangle on coordinates (1,1)(100,100) page.draw_rect([1,1,100,100], color = (0, 1, 0), width = 2)
Save pdf
doc.save(‘./your-route/name.pdf’)
Seems like it has a solid chance of working.
I would recommend anything Thermal Grizzly: https://www.thermal-grizzly.com/
Simply because the owner has two 1 hour long videos explaining how its made and tested and it actually seems to be one of the best.