{"id":185,"date":"2013-03-23T19:46:43","date_gmt":"2013-03-23T18:46:43","guid":{"rendered":"http:\/\/frosteyes.dk\/?p=185"},"modified":"2013-05-05T21:17:28","modified_gmt":"2013-05-05T20:17:28","slug":"removing-simple-pdf-password","status":"publish","type":"post","link":"http:\/\/www.frosteyes.dk\/index.php\/uncategorized\/removing-simple-pdf-password","title":{"rendered":"Removing simple PDF password"},"content":{"rendered":"<p>At my work I receive my payslip as a pdf file with a password. This is very nice, as it of cause prevents anybody from snooping into my salary. Though today I had the need for sending a copy of my payslip to my bank adviser, so I needed to create a version with the password protection removed. Luckily it was pretty simple, as I could just use ghostscript on my mac. XXX is the password, and the parameters outputFileName.pdf and inputFileName.pdf is self-evident.<\/p>\n<pre lang=\"bash\">\r\ngs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite \\\r\n -sPDFPassword=XXX -sOutputFile=outputFileName.pdf \\\r\n -c .setpdfwrite -f inputFileName.pdf \r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>At my work I receive my payslip as a pdf file with a password. This is very nice, as it of cause prevents anybody from snooping into my salary. Though today I had the need for sending a copy of my payslip to my bank adviser, so I needed to create a version with the &hellip; <a href=\"http:\/\/www.frosteyes.dk\/index.php\/uncategorized\/removing-simple-pdf-password\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Removing simple PDF password<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-185","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/posts\/185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/comments?post=185"}],"version-history":[{"count":5,"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/posts\/185\/revisions"}],"predecessor-version":[{"id":223,"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/posts\/185\/revisions\/223"}],"wp:attachment":[{"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/media?parent=185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/categories?post=185"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.frosteyes.dk\/index.php\/wp-json\/wp\/v2\/tags?post=185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}