Thank you, the fix was applied.

Best Regards,
Paulo Soares

----- Original Message ----- 
From: "Ronald Dauster" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 22, 2003 8:30
Subject: [iText-questions] NPE in TiffImage if RowsPerStrip is missing


> iText 1.0 throws a NullPointerException if one tries to read a bilevel
> TIFF image
> that does not contain the RowsPerStrip tag (278).
>  
> According to the TIIF 6.0 specification, pg. 39, RowsPerStrip is
> optional and has a
> default value of 2**32-1.
>  
> The following trivial change fixes this.
>  
> /src/com/lowagie/text/pdf/codec/TiffImage.java
> 145c145,148
> <             long tstrip =
> dir.getFieldAsLong(TIFFConstants.TIFFTAG_ROWSPERSTRIP);
> ---
> >             long tstrip = 0xFFFFFFFFL;
> >             if (dir.isTagPresent(TIFFConstants.TIFFTAG_ROWSPERSTRIP))
> {
> >                 tstrip =
> dir.getFieldAsLong(TIFFConstants.TIFFTAG_ROWSPERSTRIP);
> >             }
> 
>  
> Regards,
> Ronald Dauster
>  
> 



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to