The file is broken, I only get garbage with other viewers.
Paulo
________________________________
From: Mikhail Kogan [mailto:mko...@kcura.com]
Sent: Tuesday, October 19, 2010 6:25 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] IndexOutOfRangeException when GetInstance of certain
image
Hello,
When trying to load some images by using the following code
Dim stream As New System.IO.FileStream(inputFilesPath, IO.FileMode.Open)
image = iTextShapr.text.image.GetInstance(stream)
I get this error:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at iTextSharp.text.pdf.codec.TIFFFaxDecoder.DecodeT6(Byte[] buffer, Byte[]
compData, Int32 startX, Int32 height, Int64 tiffT6Options)
at iTextSharp.text.pdf.codec.TiffImage.GetTiffImage(RandomAccessFileOrArray s,
Int32 page, Boolean direct)
at iTextSharp.text.Image.GetInstance(Byte[] imgb)
Bad image is attached. Can someone please take a look at this and see if this
image is broken or iTextSharp does not support it? Or maybe there is a fix for
this?
Thanks,
Mikhail(Misha) Kogan
kCura Corporation
200 West Jackson Blvd.
Suite 800
Chicago, IL 60606
direct: (773) 433-5915
fax: (312) 263-4351
mko...@kcura.com<mailto:mko...@kcura.com>
www.kcura.com<http://www.kcura.com/>
________________________________
NOTICE: This electronic mail message and any files transmitted with it are
intended exclusively for the individual or entity to which it is addressed. The
message, together with any attachment, may contain confidential and/or
privileged information. Any unauthorized review, use, printing, saving,
copying, disclosure or distribution is strictly prohibited. If you have
received this message in error, please immediately advise the sender by reply
email and delete all copies.
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.
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
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