<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Making a PDF grayscale with ghostscript</title>
	<atom:link href="http://handyfloss.net/2008.09/making-a-pdf-grayscale-with-ghostscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://handyfloss.net/2008.09/making-a-pdf-grayscale-with-ghostscript/</link>
	<description>Because FLOSS is handy, isn&#039;t it?</description>
	<lastBuildDate>Mon, 21 May 2012 06:39:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: isilanes</title>
		<link>http://handyfloss.net/2008.09/making-a-pdf-grayscale-with-ghostscript/comment-page-1/#comment-121955</link>
		<dc:creator>isilanes</dc:creator>
		<pubDate>Mon, 21 May 2012 06:39:20 +0000</pubDate>
		<guid isPermaLink="false">http://handyfloss.net/?p=422#comment-121955</guid>
		<description>Hi jan,

Thanks, your warning is so true! However, it a PDF without a .pdf ending is used, the user deserves whatever happens to it ;^)

I&#039;ll check it and fix it.</description>
		<content:encoded><![CDATA[<p>Hi jan,</p>
<p>Thanks, your warning is so true! However, it a PDF without a .pdf ending is used, the user deserves whatever happens to it ;^)</p>
<p>I&#8217;ll check it and fix it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jan</title>
		<link>http://handyfloss.net/2008.09/making-a-pdf-grayscale-with-ghostscript/comment-page-1/#comment-121791</link>
		<dc:creator>jan</dc:creator>
		<pubDate>Sun, 20 May 2012 23:08:27 +0000</pubDate>
		<guid isPermaLink="false">http://handyfloss.net/?p=422#comment-121791</guid>
		<description>thanks for the summary of the gs commands! 

tiny comment on the perl script -- if the file name doesn&#039;t end with .pdf, the input file will be overwritten. it might be better to check and add _gray at the end anyway, even if there&#039;s no .pdf ending.</description>
		<content:encoded><![CDATA[<p>thanks for the summary of the gs commands! </p>
<p>tiny comment on the perl script &#8212; if the file name doesn&#8217;t end with .pdf, the input file will be overwritten. it might be better to check and add _gray at the end anyway, even if there&#8217;s no .pdf ending.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: isilanes</title>
		<link>http://handyfloss.net/2008.09/making-a-pdf-grayscale-with-ghostscript/comment-page-1/#comment-116412</link>
		<dc:creator>isilanes</dc:creator>
		<pubDate>Wed, 25 Jan 2012 07:34:57 +0000</pubDate>
		<guid isPermaLink="false">http://handyfloss.net/?p=422#comment-116412</guid>
		<description>Thanks hyangyt! Very nice of you to share your solution.</description>
		<content:encoded><![CDATA[<p>Thanks hyangyt! Very nice of you to share your solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hyangyt</title>
		<link>http://handyfloss.net/2008.09/making-a-pdf-grayscale-with-ghostscript/comment-page-1/#comment-116406</link>
		<dc:creator>hyangyt</dc:creator>
		<pubDate>Wed, 25 Jan 2012 02:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://handyfloss.net/?p=422#comment-116406</guid>
		<description>It converts PDF to DJVU first, then convert to B&amp;W PDF. It seems work much better and faster, and works for images, too.</description>
		<content:encoded><![CDATA[<p>It converts PDF to DJVU first, then convert to B&amp;W PDF. It seems work much better and faster, and works for images, too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hyangyt</title>
		<link>http://handyfloss.net/2008.09/making-a-pdf-grayscale-with-ghostscript/comment-page-1/#comment-116405</link>
		<dc:creator>hyangyt</dc:creator>
		<pubDate>Wed, 25 Jan 2012 02:28:07 +0000</pubDate>
		<guid isPermaLink="false">http://handyfloss.net/?p=422#comment-116405</guid>
		<description>Hi, 

I found a way to do it, please see my post:

http://yentaublog.wordpress.com/2012/01/25/convert-pdfs-to-blackwhite-translated-from-chinese/</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>I found a way to do it, please see my post:</p>
<p><a href="http://yentaublog.wordpress.com/2012/01/25/convert-pdfs-to-blackwhite-translated-from-chinese/" rel="nofollow">http://yentaublog.wordpress.com/2012/01/25/convert-pdfs-to-blackwhite-translated-from-chinese/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: isilanes</title>
		<link>http://handyfloss.net/2008.09/making-a-pdf-grayscale-with-ghostscript/comment-page-1/#comment-116390</link>
		<dc:creator>isilanes</dc:creator>
		<pubDate>Tue, 24 Jan 2012 14:16:57 +0000</pubDate>
		<guid isPermaLink="false">http://handyfloss.net/?p=422#comment-116390</guid>
		<description>Hi hyangyt,

I can&#039;t really help you. Is there any reason why PDF -&gt; PS -&gt; PDF is not acceptable for you?

I have tried the code you show, and it actually works on PS files, but not PDFs (if we do not convert the input PDF to PS before applying gs, the output PDF is still a color one). It strikes me as funny, since gs should also handle PDFs!

I must also say that your code seems to convert text to B/W, but not images, at least in a couple of tries I&#039;ve made.</description>
		<content:encoded><![CDATA[<p>Hi hyangyt,</p>
<p>I can&#8217;t really help you. Is there any reason why PDF -> PS -> PDF is not acceptable for you?</p>
<p>I have tried the code you show, and it actually works on PS files, but not PDFs (if we do not convert the input PDF to PS before applying gs, the output PDF is still a color one). It strikes me as funny, since gs should also handle PDFs!</p>
<p>I must also say that your code seems to convert text to B/W, but not images, at least in a couple of tries I&#8217;ve made.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hyangyt</title>
		<link>http://handyfloss.net/2008.09/making-a-pdf-grayscale-with-ghostscript/comment-page-1/#comment-116388</link>
		<dc:creator>hyangyt</dc:creator>
		<pubDate>Tue, 24 Jan 2012 12:57:37 +0000</pubDate>
		<guid isPermaLink="false">http://handyfloss.net/?p=422#comment-116388</guid>
		<description>This code works fine(for major cases) (see http://superuser.com/questions/200378/converting-a-pdf-to-black-white-with-ghostscript)

pdf2ps color.pdf color.ps

gs \
-o bw-from-color.pdf \
-sDEVICE=pdfwrite \
-c &quot;/setrgbcolor{0 mul 3 1 roll 0 mul 3 1 roll 0 mul 3 1 roll 0 mul add add setgray}def&quot; \
-f color.ps

but how to convert color pdf to monochrome pdf directly(without converting it to ps first)?</description>
		<content:encoded><![CDATA[<p>This code works fine(for major cases) (see <a href="http://superuser.com/questions/200378/converting-a-pdf-to-black-white-with-ghostscript" rel="nofollow">http://superuser.com/questions/200378/converting-a-pdf-to-black-white-with-ghostscript</a>)</p>
<p>pdf2ps color.pdf color.ps</p>
<p>gs \<br />
-o bw-from-color.pdf \<br />
-sDEVICE=pdfwrite \<br />
-c &#8220;/setrgbcolor{0 mul 3 1 roll 0 mul 3 1 roll 0 mul 3 1 roll 0 mul add add setgray}def&#8221; \<br />
-f color.ps</p>
<p>but how to convert color pdf to monochrome pdf directly(without converting it to ps first)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hyangyt</title>
		<link>http://handyfloss.net/2008.09/making-a-pdf-grayscale-with-ghostscript/comment-page-1/#comment-116386</link>
		<dc:creator>hyangyt</dc:creator>
		<pubDate>Tue, 24 Jan 2012 12:35:59 +0000</pubDate>
		<guid isPermaLink="false">http://handyfloss.net/?p=422#comment-116386</guid>
		<description>Hi,

is there any way to convert a pdf to pure black &amp; white (monochrome) with ghostscript? Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>is there any way to convert a pdf to pure black &amp; white (monochrome) with ghostscript? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sherilyn Muckelroy</title>
		<link>http://handyfloss.net/2008.09/making-a-pdf-grayscale-with-ghostscript/comment-page-1/#comment-115750</link>
		<dc:creator>Sherilyn Muckelroy</dc:creator>
		<pubDate>Thu, 05 Jan 2012 07:37:50 +0000</pubDate>
		<guid isPermaLink="false">http://handyfloss.net/?p=422#comment-115750</guid>
		<description>Thanks, bookmarked!</description>
		<content:encoded><![CDATA[<p>Thanks, bookmarked!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 2xJoe</title>
		<link>http://handyfloss.net/2008.09/making-a-pdf-grayscale-with-ghostscript/comment-page-1/#comment-115155</link>
		<dc:creator>2xJoe</dc:creator>
		<pubDate>Thu, 22 Dec 2011 09:53:34 +0000</pubDate>
		<guid isPermaLink="false">http://handyfloss.net/?p=422#comment-115155</guid>
		<description>This hint was very usefull to me, thanx a lot!
GS does the magic that corel and cs5 denied to me due to a obscure &quot;host application error.&quot;</description>
		<content:encoded><![CDATA[<p>This hint was very usefull to me, thanx a lot!<br />
GS does the magic that corel and cs5 denied to me due to a obscure &#8220;host application error.&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

