Hello,
I am adding a colored image to a PDF document using itext , however when i
attempt to open the resulting PDF in Adode Reader , I am getting an ERROR
message in dialog which says  "Expected end of color space" . The PDF still
opens but the image is not displayed in the PDF document. Anyone knows what
would cause this behavior? Do i need to set the colorspace on the image or
something like that ? If so how can that be done? 

Please See my code snippet below:

PdfContentByte contentByte = ....
Image image = ...

image.setAlt(altText);
image.setAbsolutePosition(xPos, yPos);
contentByte.addImage(image);




-- 
View this message in context: 
http://www.nabble.com/How-to-avoid-%22expected-end-of-color-space%22-error-tp19319250p19319250.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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