That's generally a sign that the profile doesn't match the image
colorspace. You can't have a CMYK profile and an RGB image.
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Develop
> Sent: Thursday, October 05, 2006 6:30 PM
> To: [email protected]
> Subject: [iText-questions] Tag ICC Profile Image
>
> 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!
> <http://us.rd.yahoo.com/mail/br/tagline/mobile_alerts/*http://
> br.mobile.yahoo.com/mailalertas/>
>
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
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