Remove pdf protection without password

broken image

With pdftk we can use: pdftk protected.pdf input_pw output out.pdf do_ask But maybe you received a pdf from a company which used some data of yours to encrypt the file, and you'd like to avoid leaking it. Of course, since this is about removing the password protection from the file, maybe you don't care. This is an old question, but seems to be a reference on the matter and, surprisingly, none of the answers tells us how to avoid passing the password on the command line (which may be a source of leakage).

broken image