(Follow up in the mailing list)
Answers below. 

> -----Original Message-----
> From: Filippo Lion [mailto:[EMAIL PROTECTED] 
> Sent: Friday, January 27, 2006 9:43 AM
> To: Paulo Soares
> Subject: Problems with iText
> 
> Hi Paulo,
>    I've got some problems using itext-1.3.
> 
> ------------------------
> FIRST (file first.TIF)
> 
> RandomAccessFileOrArray ra = new RandomAccessFileOrArray(inputStream);
> int comps = TiffImage.getNumberOfPages(ra);
> for (int c = 0; c < comps; ++c) {
>       Image img = TiffImage.getTiffImage(ra, c + 1); //<-- 
> using instruction
> 
> java.lang.IllegalArgumentException: The compression 6 is not 
> supported.
>

That's self explanatory.
 
> ------------------------
> SECOND (file second.TIF)
> 
> RandomAccessFileOrArray ra = new RandomAccessFileOrArray(inputStream);
> int comps = TiffImage.getNumberOfPages(ra); //<-- using instruction
> 
> java.lang.IllegalArgumentException: Bad endianness tag (not 0x4949 or
> 0x4d4d)
>

Broken tiff.
 
> ------------------------
> THIRD (file third.TIF)
> 
> using instruction: PdfReader aPdfDocument = new PdfReader(inputStream)
> 
> java.lang.ClassCastException
>       at com.lowagie.text.pdf.PdfReader.readDocObj(PdfReader.java:720)
>       at com.lowagie.text.pdf.PdfReader.readPdf(PdfReader.java:441)
>       at com.lowagie.text.pdf.PdfReader.<init>(PdfReader.java:203)
>       at com.lowagie.text.pdf.PdfReader.<init>(PdfReader.java:213)
> ------------------------
>

No idea. Post the pdf.
 
> 
> Cuold you help me, please?
> Thank you very much.
> 
> Filippo
> 
> 
> P.S.
> I hope I didn't do a bad thing asking you to help me... :-) 
>  --
>  Email.it, the professional e-mail, gratis per te: 
> http://www.email.it/f
>  
>  Sponsor:
>  Solo 10 Euro per chiamare in tutto il mondo!! Scopri il 
> vantaggio di Email
> Phone Card,        clicca subito
>  Clicca qui: 
> http://adv.email.it/cgi-bin/foclick.cgi?mid=2685&d=20060127
> 
> 
> 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to