{"id":721,"date":"2017-03-07T20:43:32","date_gmt":"2017-03-08T01:43:32","guid":{"rendered":"http:\/\/main.jmah.net\/?p=721"},"modified":"2017-03-09T23:42:06","modified_gmt":"2017-03-10T04:42:06","slug":"converting-pdfs-using-imagemagick","status":"publish","type":"post","link":"https:\/\/main.jmah.net\/?p=721","title":{"rendered":"Converting PDFs Using ImageMagick"},"content":{"rendered":"<p><a href=\"http:\/\/main.jmah.net\/?attachment_id=724\" rel=\"attachment wp-att-724\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-724 alignright\" src=\"http:\/\/main.jmah.net\/wp-content\/uploads\/2017\/03\/ImageMagick_w200.jpg\" alt=\"\" width=\"200\" height=\"261\" \/><\/a>There may be situations that you would like to convert a coloured PDF document to black-and-while (monochrome or greyscale) for whatever reasons. One of the methods that can accomplish this is to use <a href=\"https:\/\/www.imagemagick.org\" target=\"_blank\">ImageMagick<\/a>, free command-line software that can perform all sorts of functions related to images. The following examples\u00a0are commands to convert a PDF in colour to black-and-white. Values in the parameters should be adjusted to suit the particular document in question to obtain optimal results. (Note:<a href=\"https:\/\/ghostscript.com\/\" target=\"_blank\"> Ghostscript <\/a>needs to be installed for working with PDFs)<\/p>\n<p><strong>&#8220;magick -density 600 in.pdf -threshold 60% -type bilevel -compress fax out.pdf&#8221;<\/strong><\/p>\n<p><strong>&#8220;magick -density 600 in.pdf -level 10%,90% -type grayscale -depth 8 out.pdf&#8221;<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There may be situations that you would like to convert a coloured PDF document to black-and-while (monochrome or greyscale) for whatever reasons. One of the methods that can accomplish this is to use ImageMagick, free command-line software that can perform &hellip; <a href=\"https:\/\/main.jmah.net\/?p=721\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-721","post","type-post","status-publish","format-standard","hentry","category-research-information-technology"],"_links":{"self":[{"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/posts\/721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/main.jmah.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=721"}],"version-history":[{"count":5,"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/posts\/721\/revisions"}],"predecessor-version":[{"id":730,"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/posts\/721\/revisions\/730"}],"wp:attachment":[{"href":"https:\/\/main.jmah.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/main.jmah.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/main.jmah.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}