![]() |
pdf file processing: how to "Enable Editing" - 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 file processing: how to "Enable Editing" (/thread-22914.html) |
pdf file processing: how to "Enable Editing" - Pavel_47 - Dec-03-2019 Hello, When opening some pdf files, the following banner appears at the top: ![]() To prevent this from appearing during the next file opening, simply click on "Enable Editing" and save the file. I am looking for a way to automate this process by using Python. For that I need to know the attribute of the pdf file which is responsible for this "Enable Editing". Any ideas ? Thanks. RE: pdf file processing: how to "Enable Editing" - Larz60+ - Dec-03-2019 you can read the pdf, modify and then write a new pdf with pypdf2. RE: pdf file processing: how to "Enable Editing" - Pavel_47 - Dec-03-2019 (Dec-03-2019, 12:18 PM)Larz60+ Wrote: you can read the pdf, modify and then write a new pdf with pypdf2.It was the core of my quesition: how to modify ? What should I do once pdf is read ? RE: pdf file processing: how to "Enable Editing" - Larz60+ - Dec-03-2019 check out: https://stackoverflow.com/a/2180841 RE: pdf file processing: how to "Enable Editing" - Pavel_47 - Dec-04-2019 The example from your link doesn't match my case. In that example the pdf is modified ... e.g. watermark is added. In my case, I have nothing to modify in the file - I just have to activate editing and save the file so that the annoying banner disappears. |