Nothing was attached. Paulo
----- Original Message ----- From: "Matteo Pileggi" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, May 04, 2007 2:23 PM Subject: [iText-questions] R:java.lang.ClassCastException:com.lowagie.text.pdf.PRIndirectReference I try with 1.4.6, 1.4.8 and 2.02 version of itext, but I have always the same error. In attachment the pdf file. An extract of my code to add a pdf to another one: for (int i = from; i <= to; i++) { // take a page from original pdf PdfImportedPage page = writer.getImportedPage(reader, i); // add page to a new pdf writer.addPage(page); } PRAcroForm form = reader.getAcroForm(); if (form != null) writer.copyAcroForm(reader); writer.freeReader(reader); -----Messaggio originale----- Da: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] Per conto di Paulo Soares Inviato: venerdì 4 maggio 2007 11.16 A: Post all your questions about iText here Oggetto: Re: [iText-questions]java.lang.ClassCastException: com.lowagie.text.pdf.PRIndirectReference Assuming that you still get the error with the latest version, post the PDF and the code needed to reproduce the problem. Paulo > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Matteo Pileggi > Sent: Friday, May 04, 2007 9:15 AM > To: [email protected] > Subject: [iText-questions] > java.lang.ClassCastException:com.lowagie.text.pdf.PRIndirectReference > > > Hi all, > > I find a old post (Sent: Tuesday, January 21, 2003 9:01) about this > error without solution. > > Can someone help me? > > 09:40:05,353 INFO [STDOUT] java.lang.ClassCastException: > com.lowagie.text.pdf.PRIndirectReference > 09:40:05,354 INFO [STDOUT] at > com.lowagie.text.pdf.PdfCopy.copyDictionary(PdfCopy.java:209) > 09:40:05,354 INFO [STDOUT] at > com.lowagie.text.pdf.PdfCopy.copyObject(PdfCopy.java:266) > 09:40:05,354 INFO [STDOUT] at > com.lowagie.text.pdf.PdfCopy.copyIndirect(PdfCopy.java:197) > 09:40:05,355 INFO [STDOUT] at > com.lowagie.text.pdf.PdfCopy.copyObject (PdfCopy.java:268) > 09:40:05,355 INFO [STDOUT] at > com.lowagie.text.pdf.PdfCopy.copyStream(PdfCopy.java:236) > 09:40:05,355 INFO [STDOUT] at > com.lowagie.text.pdf.PdfCopy.copyObject(PdfCopy.java:278) > 09:40:05,355 INFO [STDOUT] at > com.lowagie.text.pdf.PdfCopy.copyIndirect(PdfCopy.java:197) > 09:40:05,355 INFO [STDOUT] at > com.lowagie.text.pdf.PdfCopy.copyObject(PdfCopy.java:268) > 09:40:05,355 INFO [STDOUT] at > com.lowagie.text.pdf.PdfCopy.copyDictionary (PdfCopy.java:222) > 09:40:05,355 INFO [STDOUT] at > com.lowagie.text.pdf.PdfCopy.copyObject(PdfCopy.java:266) > 09:40:05,355 INFO [STDOUT] at > com.lowagie.text.pdf.PdfCopy.copyDictionary(PdfCopy.java:222) > 09:40:05,355 INFO [STDOUT] at > com.lowagie.text.pdf.PdfCopy.copyObject(PdfCopy.java:266) > 09:40:05,355 INFO [STDOUT] at > com.lowagie.text.pdf.PdfCopy.copyDictionary(PdfCopy.java:219) > 09:40:05,356 INFO [STDOUT] at > com.lowagie.text.pdf.PdfCopy.addPage (PdfCopy.java:352) > > Regard, > Matteo > > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
