----- Original Message -----
From: "Jamsa, Jonathan D - Eagan, MN - Contractor"
<[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, June 13, 2006 10:52 PM
Subject: [iText-questions] TiffImage.java question
What if the value of rowsStrip is greater than Integer.MAX_VALUE, as in
the file I'm currently trying to read where the value is 4294967295 ?
--You have a badly broken tiff.
int rowsStrip = h;
if (dir.isTagPresent(TIFFConstants.TIFFTAG_ROWSPERSTRIP)) //another hack
for broken tiffs
rowsStrip =
(int)dir.getFieldAsLong(TIFFConstants.TIFFTAG_ROWSPERSTRIP);
Any suggestions?
--Get a tiff producer that works correctly. Post the tiff for inspection.
Paulo
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions