All the TIFF files start with 0x4949 or 0x4d4d, maybe your file is not a 
TIFF.

Paulo

----- Original Message ----- 
From: "Robert Sherman" <[email protected]>
To: <[email protected]>
Sent: Wednesday, September 23, 2009 7:38 PM
Subject: [iText-questions] Error


How do you workaround the Bad endianness tag (not 0x4949 or > 0x4d4d) Error?


                RandomAccessFileOrArray ra = new 
RandomAccessFileOrArray(sSourceTIF);

                comps = TiffImage.GetNumberOfPages(ra);


Above code cause the error.

Robert Shermann
Robert Sherman Programming
10 Bedstraw Loop
Ladera Ranch, Ca 92694
Office-949-702-4527
FX-949-276-5571



------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to