That's what I figured you wanted - but wanted to be sure. Thanks for
explaining!
So my recommendation on what you have to do to implement this still
applies...
Leonard
On Apr 11, 2008, at 11:00 AM, George Bilalis wrote:
Hi Leonard,
thanks for replying and of course it's my fault to explain better,
and not your interpretive power!!!
So let me give a more general idea of what I have to do, and maybe
I can get some better ideas how to do it.
Think of a light-version of a pdf document pre-flighter (like the
one Acrobat has, only a lot lighter). This concerns a quality
acceptance test for a offset printshop production workflow. There a
lot of files are input for processing and come from a wide variety
of outside sources.
Accepted work has to be in CMYK plus combination of Spot (mostly
Pantone) colors but the rest of color space families in PDF (i.e.
DeviceGray, DeviceRGB, CalGray, CalRGB, Lab, Indexed, Pattern) are
out of consideration and have to be rejected, leaving us with
DeviceCMYK, ICCBased, DeviceN and Separation color spaces.
Input pre-flight for a large number of possible errors is currently
done in PitStop Pro and automatic corrective action is taken for
contracted work.
Non contracted work is rejected and returned to source for
correction. This is time consuming and if it's only a minor color
problem (like some graphic element left forgotten in a page with
the wrong color space - say RGB) this could be rectified by
operator intervention.
Thus a specific preflight test is planned searching (and
collecting) each page, listing all inks (colors) defined for all
graphic elements of the page.
The optimum solution is a list of colors used per page.
This for all incoming documents and I believe this can be done.
I hope this time it's more clear
George
From: [EMAIL PROTECTED]
Date: Thu, 10 Apr 2008 23:24:42 +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 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
Κατεβάστε 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
-------------------------------------------------------------------------
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