Nov-08-2024, 12:12 PM
hi. i'm rookie in python programming and, yes, i'm pretty rough in code writing (in english writing also).
so: i need to modify a large number of pdf documents and - this is the issue - i need to 'protect' the documents from editing the documents with sw such adobe and i cannot use password.
for the first aim i wrote a routine that enumerates pages whit pymupdf library.
for the second one, i manually avoided the problem by printing each document on pdf-printer with the 'print document and marking' options abled (in this way, even if some people open the pdf documenti in editing mode the text added by the routine doesn't appear marked with the text box) .
now i'd like to automate the procedure by some print method (or function) or other pdf saving options.
these are the steps:
1.- open pdf file
2.- add text
3. print/save (in a mode that sw i.e. adobe cannot easily allow editing)
for the first two point i reached the goal, but the third one....
thankyou all for help!
so: i need to modify a large number of pdf documents and - this is the issue - i need to 'protect' the documents from editing the documents with sw such adobe and i cannot use password.
for the first aim i wrote a routine that enumerates pages whit pymupdf library.
for the second one, i manually avoided the problem by printing each document on pdf-printer with the 'print document and marking' options abled (in this way, even if some people open the pdf documenti in editing mode the text added by the routine doesn't appear marked with the text box) .
now i'd like to automate the procedure by some print method (or function) or other pdf saving options.
these are the steps:
1.- open pdf file
2.- add text
3. print/save (in a mode that sw i.e. adobe cannot easily allow editing)
for the first two point i reached the goal, but the third one....
thankyou all for help!