Please provide a sample PDF to verify your results...

And visualization is NOT an valid test criteria.  You need to use PDF analysis 
tools to check what's in the file - or at a minimum, open it up in a text 
editor and read the "code".

Leonard

From: Deepali Tatkar [mailto:deepalitatka...@gmail.com]
Sent: Monday, March 30, 2009 3:40 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Color problem in creating pdf using CMYK images

Hi Leonard ,
Color chsanged in cmyk image can be directly visualise in outpdf ,
whereas there is no change incase of RGB image.

i m creating pdf by following  lines of code ....

iTextSharp.text.Image img1 = iTextSharp.text.Image.GetInstance("CMYK.jpg");
iTextSharp.text.Image img2 = iTextSharp.text.Image.GetInstance("RGB.jpg");
int width = (int)img1.Width;
int height = (int)img1.Height;
iTextSharp.text.Rectangle pageSize = new iTextSharp.text.Rectangle(0, 0, width, 
height);
 Document document = new Document(pageSize);
 PdfWriter writer = PdfWriter.GetInstance(document, new 
FileStream("E:\\Output.pdf", FileMode.Create));
 document.Open();
document.Add(img1);
document.Add(img2);
2009/3/29 Leonard Rosenthol <lrose...@adobe.com<mailto:lrose...@adobe.com>>

iText doesn't change the color of your images when making the PDF - so 
something else in your code is going on.  How are you verifying that the images 
in the output are no longer CMYK?



Leonard



From: Deepali Tatkar 
[mailto:deepalitatka...@gmail.com<mailto:deepalitatka...@gmail.com>]
Sent: Saturday, March 28, 2009 12:53 AM
To: Post all your questions about iText here
Subject: [iText-questions] Color problem in creating pdf using CMYK images



Hi, all

I have created a pdf file with both RGB and CMYK images...

but i found that colour of CMYK images is changed , i.e difference is in  black 
color .

is there some extra settings allowed in iTextSharp dll  for keeping original 
color in out put pdf

in case of CMYK images?





thanx

deepali

------------------------------------------------------------------------------

_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net<mailto:iText-questions@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to