{"id":178,"date":"2011-08-24T11:30:28","date_gmt":"2011-08-24T10:30:28","guid":{"rendered":"http:\/\/blog.campodoro.org\/?p=178"},"modified":"2011-08-24T11:30:28","modified_gmt":"2011-08-24T10:30:28","slug":"print-protected-pdf-files-on-osx-using-the-terminal","status":"publish","type":"post","link":"https:\/\/blog.campodoro.org\/?p=178","title":{"rendered":"Print protected PDF files on OSX &#8211; using the terminal"},"content":{"rendered":"<p>The newer versions of Preview (at least OS X 10.5, and maybe earlier) respect the &#8220;do not print without a password&#8221; setting in PDF files. However, it is possible to create a completely unprotected version of any PDF file using ghostscript. A command like this should work:<\/p>\n<p><code>gs -sOutputFile=MyNewFile.pdf -sDEVICE=pdfwrite -dNOPAUSE -dbatch -q MyProtectedFile.pdf<\/code><\/p>\n<p>You may need to type &#8220;quit&#8221; at the command prompt after gs finishes processing the file. Then open the newly created PDF file and voil\u00c3\u00a0, printable! <\/p>\n<div class=\"tweetthis\" style=\"text-align:left;\"><p> <a class=\"tt\" href=\"http:\/\/twitter.com\/share?url=https:\/\/blog.campodoro.org\/?p=178&text=Print+protected+PDF+files+on+OSX+%E2%80%93+using+the+terminal+%23campodoro+%23tips+%23apple&via=goudkamp&related=richardxthripp%2Ctweetthisplugin\" title=\"Twitter\"><img decoding=\"async\" class=\"nothumb\" src=\"http:\/\/blog.campodoro.org\/wp-content\/plugins\/tweet-this\/icons\/en\/twitter\/tt-twitter.png\" alt=\"Post to Twitter\" \/><\/a> <a class=\"tt\" href=\"http:\/\/twitter.com\/share?url=https:\/\/blog.campodoro.org\/?p=178&text=Print+protected+PDF+files+on+OSX+%E2%80%93+using+the+terminal+%23campodoro+%23tips+%23apple&via=goudkamp&related=richardxthripp%2Ctweetthisplugin\" title=\"Twitter\">Tweet<\/a> <a class=\"tt\" href=\"http:\/\/delicious.com\/post?url=https:\/\/blog.campodoro.org\/?p=178&amp;title=Print+protected+PDF+files+on+OSX+%E2%80%93+using+the+terminal\" title=\"Post to Delicious\"><img decoding=\"async\" class=\"nothumb\" src=\"http:\/\/blog.campodoro.org\/wp-content\/plugins\/tweet-this\/icons\/en\/delicious\/tt-delicious.png\" alt=\"Post to Delicious\" \/><\/a> <a class=\"tt\" href=\"http:\/\/delicious.com\/post?url=https:\/\/blog.campodoro.org\/?p=178&amp;title=Print+protected+PDF+files+on+OSX+%E2%80%93+using+the+terminal\" title=\"Post to Delicious\">Post to Delicious<\/a> <a class=\"tt\" href=\"http:\/\/www.facebook.com\/share.php?u=https:\/\/blog.campodoro.org\/?p=178&amp;t=Print+protected+PDF+files+on+OSX+%E2%80%93+using+the+terminal\" title=\"Post to Facebook\"><img decoding=\"async\" class=\"nothumb\" src=\"http:\/\/blog.campodoro.org\/wp-content\/plugins\/tweet-this\/icons\/en\/facebook\/tt-facebook.png\" alt=\"Post to Facebook\" \/><\/a> <a class=\"tt\" href=\"http:\/\/www.facebook.com\/share.php?u=https:\/\/blog.campodoro.org\/?p=178&amp;t=Print+protected+PDF+files+on+OSX+%E2%80%93+using+the+terminal\" title=\"Post to Facebook\">Post to Facebook<\/a><\/p><\/div>","protected":false},"excerpt":{"rendered":"<p>The newer versions of Preview (at least OS X 10.5, and maybe earlier) respect the &#8220;do not print without a password&#8221; setting in PDF files. However, it is possible to create a completely unprotected version of any PDF file using &hellip; <a href=\"https:\/\/blog.campodoro.org\/?p=178\">Continue reading <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":[3,8],"tags":[],"class_list":["post-178","post","type-post","status-publish","format-standard","hentry","category-apple","category-menu"],"_links":{"self":[{"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=\/wp\/v2\/posts\/178"}],"collection":[{"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=178"}],"version-history":[{"count":1,"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=\/wp\/v2\/posts\/178\/revisions"}],"predecessor-version":[{"id":179,"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=\/wp\/v2\/posts\/178\/revisions\/179"}],"wp:attachment":[{"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}