Title: Re: [iText-questions] Adding Tiff images problem
Only a couple of lines were changed, you can make a diff or wait until Sunday. The change will load the broken tiff. By the way, I suppose that your boss complains all the time to Adobe for the broken PDFs that he could open in Acrobat 6 and that now fail in 7.
 
Paulo


Von: Matt Davis [mailto:[EMAIL PROTECTED]
Gesendet: Di 09-Mai-06 15:04
An: Paulo Soares; itext-questions@lists.sourceforge.net
Betreff: Re: [iText-questions] Adding Tiff images problem

Can you tell me where and/or what changes you made to that file? I am using
the .net port of iText, however I do have the C# source for it and
depending on the complexity of the change you have made, I could probably
figure out what to change in the C# code. Also, will your change just
create a nicer exception message or will it still include the "broken"
tiff? (My bosses think that if it can be viewed in the viewer they use,
then it should show up in the pdf).

Thanks again for all your help.

Matt
At 09:51 AM 5/9/2006, Paulo Soares wrote:
>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 problem
>>>
>>>
>>>>I am generating thousands of PDF file, each containing up to 700 tiff
>>>>(sometimes jpg) images (around an average of 500 images per PDF book). Most
>>>>of them are working just fine, however I occasionally get the following
>>>>error 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(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
>>>>         ....
>>>>         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 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,
>>>>
>>>>Matt P. Davis
>>>>Programmer Analyst
>>>>Maryland State Archives
>>>>[EMAIL PROTECTED]
>>>
>>
>>Matt P. Davis
>>Programmer Analyst
>>Maryland State Archives
>>[EMAIL PROTECTED]
>


Reply via email to