I still think what you are trying to do doesn't make sense - but maybe I am getting dense...

If I understand you correctly, you will need to write code that parses the PDF page content stream, as well as iterating colorspace resources and image resources. In addition, these routines will need to be recursive, in order to handle any Form XObjects, Patterns, or Type 3 CharProcs that they encounter.

Leonard

On Apr 10, 2008, at 4:31 PM, George Bilalis wrote:
Hi Leonard,
I had a newer post this morning with what I came to after some work. Please look at that. Further to that let's suppose: a document under examination can be using any (valid) colorspace, or a combination of. If so, I have to get this information on a page by page base and have the program take some action depending on that information. To that I also need any named colors (like Pantone) used besides the normal base colors. This is what I refered originally -by name - I only need the name of the color used. I don't have to know the chromatic values of any color used on the other hand.

George

From: [EMAIL PROTECTED]
Date: Thu, 10 Apr 2008 16:00:39 +0200
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] How to get a reference by name of all the colors in a page?

I guess I don't understand this. If I have a color specified as a combination fo Cyan and Magenta - what is the "name" of that color? Or what about Red + Green?

What about colorspaces like LAB or ICCBased?

What do you want to do with DeviceN?

Leonard

On Apr 9, 2008, at 4:07 PM, George Bilalis wrote:
Hi Leonard,
Thanks for comming back. What I need is the sum of all colors used in the page and their names. 1. Is CMYK colorspace. Number is 4, the names "Cyan" "Magenta" Yellow" Black".
2. Is RGB colorspace. Number is 3, names are "Red" "Green" "Blue".
3. Is CMYK plus Spot. Number is 4 + ? , names are ("C" "M" "Y" "K") + ?.

Does this makes sense?
Thanks




From: [EMAIL PROTECTED]
Date: Wed, 9 Apr 2008 15:47:03 +0200
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] How to get a reference by name of all the colors in a page?

Do you want to know the colorspaces (RGB vs CMYK vs Spot) _OR_ are you actually looking at specific color values ([0 0 1], [1 1 0 0], etc.)??

Leonard

On Apr 9, 2008, at 3:08 PM, George Bilalis wrote:
Hi all,

I 've searched the forum and found a similar question posted a long time ago but in different context as I understand it, so please excuse me if a raise the same subject.
What I have to do is:
While a pdf document is open and a loop is counting to end of number_of_pages, I have to run a certain action and I need to know the total number of colors (RGB and/or CMYK plus Spot if used) in this page. This number defined as the sum of colors used by all elements on the page, whether textual, graphic or images.
Also I need to know these colors by name reference (as a string list).

The sequence is repeating for each page and program flow depends on this information. Is it possible through PageResources class? Or any other procedural way?

Thanks in advance


Κατεβάστε 30 ΔΩΡΕΑΝ Emoticons για τον Windows Live Messenger σας! Windows Live Mail. ---------------------------------------------------------------------- ---
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http:// java.sun.com/javaone_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar


Κατεβάστε 30 ΔΩΡΕΑΝ Emoticons για τον Windows Live Messenger σας! Είναι δωρεάν! ---------------------------------------------------------------------- ---
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http:// java.sun.com/javaone_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar


Κατεβάστε 30 ΔΩΡΕΑΝ Emoticons για τον Windows Live Messenger σας! Windows Live Messenger! ---------------------------------------------------------------------- ---
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http:// java.sun.com/javaone_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to