Hi,

I'm using the .NET version of iText.
I'm trying to tag an image with an icc profile.
Here is the code:

Stream stream = new FileStream("C:\\USWebCoatedSWOP.icc", FileMode.Open);
                    byte[] buffer = new byte[stream.Length];
                    stream.Read(buffer, 0, buffer.Length);
                    myimage.TagICC = ICC_Profile.GetInstance(buffer);

When I do this, my PDF doesn't show anything and I get an error when I try to open it in Acrobat. I get this error "Insuficient data for an image"

How can I tag an image with icc profiles?
My image is PNG or JPEG, that supports icc profiles.

If I took of the code above, my PDF is OK.

Thanks

Rodrigo




Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora!
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to