You have a broken TIFF. The CVS is down, I'm sending you the file.
Paulo----- Original Message ----- From: "Matt Davis" <[EMAIL PROTECTED]> To: "Paulo Soares" <[EMAIL PROTECTED]>; <itext-questions@lists.sourceforge.net>
Sent: Tuesday, May 09, 2006 1:27 PM Subject: Re: [iText-questions] Adding Tiff images problem
Here is one of the images in question that was causing the below problem. Matt At 03:29 AM 5/9/2006, Paulo Soares wrote:Please post the tiff. Paulo ----- Original Message ----- From: "Matt Davis" <[EMAIL PROTECTED]> To: <itext-questions@lists.sourceforge.net> Sent: Monday, May 08, 2006 4:59 PM Subject: [iText-questions] Adding Tiff images problemI am generating thousands of PDF file, each containing up to 700 tiff(sometimes jpg) images (around an average of 500 images per PDF book). Mostof them are working just fine, however I occasionally get the followingerror when I try to get an instance of what seems to be random tiff images.System.NullReferenceException: Object reference not set to an instance of an object. at iTextSharp.text.pdf.codec.TIFFDirectory.GetFieldAsLong(Int32 tag, Int32 index)at iTextSharp.text.pdf.codec.TiffImage.GetTiffImageColor(TIFFDirectorydir, RandomAccessFileOrArray s) atiTextSharp.text.pdf.codec.TiffImage.GetTiffImage(RandomAccessFileOrArray s,Int32 page, Boolean direct) at iTextSharp.text.Image.GetInstance(Uri url) at iTextSharp.text.Image.GetInstance(String filename) at MDLR_PDF_Book_Maker.MDLRPDFCreator.AddImage(PagesRow page) The line that starts all this is the following: Dim img As Image = Nothing Dim imgPath As String ' the path to the file .... img = Image.GetInstance(imgPath) ..... The tiff image exists and is able to be viewed in any standard tiff image viewing program (including windows xp) in all cases I have found. I amusing the .Net port of iText. Has anyone else seen something similar and/orknow what is causing it and/or how to fix it? Thanks, Matt P. Davis Programmer Analyst Maryland State Archives [EMAIL PROTECTED]Matt P. Davis Programmer Analyst Maryland State Archives[EMAIL PROTECTED]
TiffImage.java
Description: java/