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(TIFFDirectory dir, RandomAccessFileOrArray s)
at iTextSharp.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
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 am using the .Net port of iText. Has anyone else seen something similar and/or know what is causing it and/or how to fix it?
Thanks,
Programmer Analyst
Maryland State Archives
[EMAIL PROTECTED]