14
6
I have a PDF File which says that document security is enabled. It says that the only things allowed are: Printing, Content Copying or Extraction, and Content Extraction for Accessibility.
I'm trying to use PDF Toolkit (PDFTK) to create a smaller version of this PDF file so that it takes up less hard drive space. When I try running PDFTK on the file, though, it says that the owner password is required. If I open up the file in a Adobe Reader, it doesn't ask for a password and opens up fine.
I'm not familiar with PDF encryption, and so I was wondering what's going on here and why I can read the file in Reader but not PDFTK.
It seems to me that there are three options:
- It's easy to read the data which is supposedly encrypted, but PDFTK respects the permissions flag and won't allow you to modify a file if you don't provide the owner's password.
- While it's possible to decrypt the data in a protected PDF (since it's not really secure), it's not a simple task and PDFTK didn't implement the logic needed to do this.
- The data is actually encrypted, and you need the owner password in order to read its contents.
Which of the three is correct?
It seems that #3 is unlikely since I am able to read the contents of the file in Acrobat without providing a password.
This bug is now fixed, so that, in recent Debian versions, pdftk warns about the missing password but it still performs the requested operation. – a3nm – 2016-09-08T15:57:21.560