Unlocking pdf files

Discussion in 'all things UNIX' started by vasa1, Apr 15, 2012.

Thread Status:
Not open for further replies.
  1. vasa1

    vasa1 Registered Member

    Joined:
    May 1, 2010
    Posts:
    4,417
    I get some financial statements in the form of password-protected pdf files. Needless to say, the passwords are set by the senders using some combination of my personal data. Since they're a pain to remember, I've been using the facility in Evince to "unlock forever" so that I subsequently don't have to re-enter (and remember each password). However, this unlocking is restricted to Evince because Evince just stores the password and supplies it the next time I open the file.
    An alternative is to use qpdf to decrypt the file once and for all. qpdf is a tiny install and the syntax isn't too challenging:
    Code:
    qpdf --password=PASSWORD --decrypt infile.pdf outfile.pdf
     
  2. chrisretusn

    chrisretusn Registered Member

    Joined:
    Jun 16, 2004
    Posts:
    1,672
    Location:
    Philippines
    Thanks, definitely a useful tool to have in your box.
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.