What if that color is part of a transparency operation?

What if that color is overprinted?  Or knocked out?

and you probably need to find all the places that content can exist in a PDF, 
which isn't just a single stream.

Leonard

From: Jon Wu <j...@wuservices.com<mailto:j...@wuservices.com>>
Reply-To: Post here 
<itext-questions@lists.sourceforge.net<mailto:itext-questions@lists.sourceforge.net>>
Date: Wednesday, January 15, 2014 11:49 AM
To: Post here 
<itext-questions@lists.sourceforge.net<mailto:itext-questions@lists.sourceforge.net>>
Subject: Re: [iText-questions] Changing colors of graphics and text in imported 
PDFs

Thanks Leonard.

What if all I'm doing is a few color replacements? Could I just find something 
like 0 0 0 1 k in the stream (assuming that's there) and then replace it with 4 
numbers for my predetermined CMYK values or are there other intricacies that 
would cause issues?


On Wed, Jan 15, 2014 at 1:59 AM, Leonard Rosenthol 
<lrose...@adobe.com<mailto:lrose...@adobe.com>> wrote:
Can you do this with iText? Yes.  HOWEVER it is going to require you to have a 
VERY DEEP understanding of PDF and Color Management/Science.

Leonard

From: Jon Wu <j...@wuservices.com<mailto:j...@wuservices.com>>
Reply-To: Post here 
<itext-questions@lists.sourceforge.net<mailto:itext-questions@lists.sourceforge.net>>
Date: Wednesday, January 15, 2014 10:24 AM
To: Post here 
<itext-questions@lists.sourceforge.net<mailto:itext-questions@lists.sourceforge.net>>
Subject: [iText-questions] Changing colors of graphics and text in imported PDFs

Hi,

I'm trying to find a way to manipulate the colors in existing PDFs. I saw some 
similar questions asked 6 or more years ago and I'm not sure if things have 
changed.

Imagine I have a design that started in Adobe Illustrator with text and 
graphics and there are 5 distinct colors used in the design such as a color 
palette like ones you see on https://kuler.adobe.com/. The goal is to be able 
to identify the 5 colors in the PDF and replace with with entirely new CMYK 
colors as if I can just change the palette of the design on the fly from code. 
If it helps, I could make all 5 of the initial colors anything such as a named 
spot color.

Can I (or do I want to) do this with iText?

If not, what about string manipulation / search and replace?

Or I see in past posts there was some mention of other programs to do this but 
some examples would be helpful is iText isn't the right tool for this purpose.

Thanks!

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net<mailto:iText-questions@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to