At 07:31 PM 5/22/2006, Rudi Verago [vlain] wrote:
Is there any way to detect if a pdf is color or black/white?

FIRST, you have to define what you mean by "color" and what you mean by "black & white"? For example, if I have an object described in RGB with the value [ 1 1 1 ] - is that color or black and white? What about CMYK [ 0 0 0 0.5 ]? Or Spot Black? etc. How about images or gradiants?

Remember that are there eleven(!!) different ways to represent colors in a PDF - and each object can use a different method. Then you have the specific value(s) in each colorspace. Then issues like smooth shadings, images, etc.


Leonard

---------------------------------------------------------------------------
Leonard Rosenthol                            <mailto:[EMAIL PROTECTED]>
Chief Technical Officer                      <http://www.pdfsages.com>
PDF Sages, Inc.                              215-938-7080 (voice)
                                             215-938-0880 (fax)



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to