{"id":377,"date":"2008-02-27T13:28:39","date_gmt":"2008-02-27T17:28:39","guid":{"rendered":"http:\/\/crazedmonkey.com\/blog\/programming\/command-line-pdf-preflight-needed.html"},"modified":"2008-02-27T13:28:39","modified_gmt":"2008-02-27T17:28:39","slug":"command-line-pdf-preflight-needed","status":"publish","type":"post","link":"http:\/\/crazedmonkey.com\/blog\/programming\/command-line-pdf-preflight-needed.html","title":{"rendered":"What I really want: A command-line preflight tool for PDFs"},"content":{"rendered":"<p>Creating PDFs is difficult.  Creating PDFs for print is even more difficult.  <a href=\"http:\/\/reportlab.org\/\">Reportlab<\/a> does a great job, but it defaults to RGB in most cases.  This necessitates some tweaking of both Reportlab code and the code using Reportlab.  Testing the result is difficult, mostly because I don&#8217;t know of any command-line tools to do preflight testing for RGB and CMYK elements.<\/p>\n<p>What I need is a command-line tool to do some basic PDF preflighting (eg. non-CMYK elements, non-embedded fonts, images below 300dpi, characters which may cause difficulties in printing, etc.).  Is that so much to ask?  When <a href=\"http:\/\/www.adobe.com\/devnet\/acrobat\/pdfs\/pdf_reference_1-7.pdf\" title=\"PDF Reference, Sixth Edition\" type=\"application\/pdf\">the PDF spec<\/a> is 1300 pages long, it is.  Still, don&#8217;t think I won&#8217;t try and take a stab at it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating PDFs is difficult. Creating PDFs for print is even more difficult. <a href=\"http:\/\/reportlab.org\/\">Reportlab<\/a> does a great job, but it defaults to RGB in most cases. This necessitates some tweaking of both Reportlab code and the code using Reportlab. Testing the result is difficult, mostly because I don&#8217;t know of any command-line tools to do&nbsp;&hellip;&nbsp;<a class=\"read_more\" href=\"http:\/\/crazedmonkey.com\/blog\/programming\/command-line-pdf-preflight-needed.html\" rel=\"bookmark\" title=\"Continue reading &ldquo;What I really want: A command-line preflight tool for PDFs&rdquo;\"><span>Read more<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/crazedmonkey.com\/blog\/wp-json\/wp\/v2\/posts\/377"}],"collection":[{"href":"http:\/\/crazedmonkey.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/crazedmonkey.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/crazedmonkey.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/crazedmonkey.com\/blog\/wp-json\/wp\/v2\/comments?post=377"}],"version-history":[{"count":0,"href":"http:\/\/crazedmonkey.com\/blog\/wp-json\/wp\/v2\/posts\/377\/revisions"}],"wp:attachment":[{"href":"http:\/\/crazedmonkey.com\/blog\/wp-json\/wp\/v2\/media?parent=377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/crazedmonkey.com\/blog\/wp-json\/wp\/v2\/categories?post=377"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/crazedmonkey.com\/blog\/wp-json\/wp\/v2\/tags?post=377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}