The CVS has an update delay of 24 hours. You can look at the change at http://itext.cvs.sourceforge.net/itext/src/com/lowagie/text/pdf/PdfCopy.java?r1=1.51&r2=1.52.
Paulo > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Pileggi Matteo > Sent: Wednesday, May 16, 2007 2:44 PM > To: Post all your questions about iText here > Subject: [iText-questions] > R:R:R:R:java.lang.ClassCastException:com.lowagie.text.pdf.PRIn > directReference > > Hi! > I've downloaded all source files from CVS and compiled (with > bcprov-jdk14-136.jar and bcmail-jdk14-136.jar) but I've > always an error. (to download source files I follow the > "guide" on http://www.lowagie.com/iText/cvs.html) > > The previous error was a ClassCastException; now I've a > NullPointerException: > > java.lang.NullPointerException > at > com.lowagie.text.pdf.PdfWriter.getPdfIndirectReference(PdfWrit > er.java:841) > at > com.lowagie.text.pdf.PdfImportedPage.<init>(PdfImportedPage.java:69) > at > com.lowagie.text.pdf.PdfReaderInstance.getImportedPage(PdfRead > erInstance.java:89) > at > com.lowagie.text.pdf.PdfCopy.getImportedPage(PdfCopy.java:162) > at PdfTest.main(PdfTest.java:22) > > > Can you try to execute my simple main (in attachment)? > You can change 2 variables CHANGE_ME_INPUT (with pdf in this > link -> http://www.pitagora.it/viggiani/0777219550006.pdf) > and CHANGE_ME_OUTPUT (wherever you want). > > Regard, > Matteo > > > -----Messaggio originale----- > Da: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Per > conto di Paulo Soares > Inviato: mercoledì 16 maggio 2007 13.34 > A: Post all your questions about iText here > Oggetto: Re: > [iText-questions]R:R:R:java.lang.ClassCastException:com.lowagi > e.text.pdf.PRIndirectReference > > It was a bug and it's now fixed in the CVS. > > Paulo > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > Pileggi Matteo > > Sent: Wednesday, May 16, 2007 11:34 AM > > To: Post all your questions about iText here > > Subject: [iText-questions] > > R:R:R:java.lang.ClassCastException:com.lowagie.text.pdf.PRIndi > > rectReference > > > > Hi! > > For this old post, I find a way to post a link for the "impeached" > > file > > > > Here the link -> http://www.pitagora.it/viggiani/0777219550006.pdf > > > > Regard, > > Matteo > > > > > > > > -----Messaggio originale----- > > Da: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Per conto di > > Pileggi Matteo > > Inviato: martedì 8 maggio 2007 15.29 > > A: Post all your questions about iText here > > Oggetto: [iText-questions] > > R:R:java.lang.ClassCastException:com.lowagie.text.pdf.PRIndire > > ctReference > > > > Hi all! > > My pdf is 2.1 MB and the email get back. > > > > I try to reduce the page of my pdf and test if the error persist. > > > > Bye, > > Matteo > > > > -----Messaggio originale----- > > Da: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Per conto di > > Paulo Soares > > Inviato: venerdì 4 maggio 2007 23.34 > > A: Post all your questions about iText here > > Oggetto: Re: > > [iText-questions]R:java.lang.ClassCastException:com.lowagie.te > > xt.pdf.PRIndirectReference > > > > 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.PRIndirect > > Reference > > > > > > 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 Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. ------------------------------------------------------------------------- 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/
