George Bilalis wrote: > > ..... > 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). > ... > > Hi again. > After breaking down the logic behind my problem and reading in the Pdf > Reference manual, I think the info I need may only be gathered by > searching down the tree in PdfDictionary (and subDictionaries) through > PageResources Class for key entries on colorSpace for all the elements of > a page. > Q1. Do I have to search the complete tree, or can I focus to a faster > search? > > Is it so? > > _________________________________________________________________ > Κατεβάστε 30 ΔΩΡΕΑΝ Emoticons για τον Windows Live Messenger σας! > http://www.livemessenger-emoticons.com/el-gr/ > ------------------------------------------------------------------------- > 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 >
-- View this message in context: http://www.nabble.com/How-to-get-a-reference-by-name-of-all-the-colors-in-a-page--tp16586669p16603942.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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