I am sure Bruno meant that there are no APIs in iText that would enable this in an easy fashion.
It is certainly possible to use the low level object APIs in iText to find everything in the PDF where colors can be specified and then run the appropriate algorithms on them to convert them to grayscale (as there is only monochrome for images) and put the changed data back. I will point out that to do this comprehensively is quite complex, especially when dealing with function conversion for shadings. -----Original Message----- From: Mike Marchywka [mailto:[email protected]] Sent: Thursday, February 11, 2010 7:12 AM To: [email protected] Subject: Re: [iText-questions] FW: Mail to iTextSharp > Date: Thu, 11 Feb 2010 08:25:24 +0100 > From: [email protected] > To: [email protected] > Subject: Re: [iText-questions] FW: Mail to iTextSharp > > suphat phuenpha wrote: >> If I want to convert a color PDF files to black and white or gray. >> What can I do that ? > > You can't. Isn't this just a matter of finding all the color tables or models and changing them to grey? When you say can't you mean there is nothing in the API that does this in a few lines or it is fundamentally impossible ( without say rendering to pixels and makes new PDF pages out of color-modified pixels)? ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
