Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 pdf file processing: how to "Enable Editing"

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 ?

you can read the pdf, modify and then write a new pdf with pypdf2.
(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 ?
check out:
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.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Editing a txt document using python duckredbeard 3 210 Sep-24-2020, 02:38 AM
Last Post: duckredbeard
  I Need Help Editing My Code eddywinch82 10 876 Aug-29-2020, 03:54 PM
Last Post: eddywinch82
  Code Editing Help Rememberthecreed 2 484 Feb-08-2020, 09:56 AM
Last Post: Rememberthecreed
  python one line file processing har 4 719 Dec-09-2019, 06:10 AM
Last Post: har
  Indexed position editing of a lst ShruthiLS 4 449 Sep-26-2019, 09:23 AM
Last Post: perfringo
  Trouble processing file villumanati 1 402 Jul-30-2019, 04:17 AM
Last Post: Larz60+
  Editing and testing a package amasta 2 718 Mar-19-2019, 12:36 PM
Last Post: buran
  Error is wave file processing vipinv23 1 906 Jan-18-2019, 02:17 PM
Last Post: Larz60+
  Enable & Disable Wireless connection by using python aniyanetworks 9 6,758 Jan-15-2019, 04:32 AM
Last Post: aniyanetworks
  Editing Dictionaries Astrikor 7 1,359 Aug-15-2018, 05:05 PM
Last Post: Astrikor

Forum Jump:

Users browsing this thread: 1 Guest(s)