If I open it with AcroProf and I save it I don't get any message. When I run ghostscript on it there are no warnings anymore.
I will try to find a place where I can put the 6 pages (original) I extract from. (btw the generated pcl prints fine, I was only try to avoid this warning that can be a little confusing for the final user) Giuseppe. --- Paulo Soares <[EMAIL PROTECTED]> ha scritto: > You don't need the reader.selectPages(SELECTION), > you can just add the > pages you want in PdfCopy, but that's not a bug. > Open the file in > Acrobat professional and close it to see if it > offers to save it > indicating a rebuild. You can also post the file > somewhere and post a > link to it here. > > Paulo > > > -----Original Message----- > > From: > [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] > On > > Behalf Of beppe costagliola > > Sent: Thursday, June 01, 2006 10:36 AM > > To: [email protected] > > Subject: Re: [iText-questions] Pdf from extracted > pages > > > > > Either you didn't extract it correctly, > forgeting a > > > close, for example, > > > > Paulo, > > > > this is the code I'm using: > > > > // create a reader for the input document > > PdfReader reader = new PdfReader(FROMPDF); > > // retrieve the selected pages > > reader.selectPages(SELECTION); > > int pages = reader.getNumberOfPages(); > > // create a new document > > Document document = new > > Document(reader.getPageSizeWithRotation(1)); > > PdfCopy copy = new PdfCopy(document, new > > FileOutputStream(TOPDF)); > > document.open(); > > // copy selected pages > > PdfImportedPage page; > > for (int i = 0; i < pages; ) { > > ++i; > > page = copy.getImportedPage(reader, i); > > copy.addPage(page); > > } > > // close new document > > document.close(); > > > > > > > > Chiacchiera con i tuoi amici in tempo reale! > > > http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com > > > > > > > _______________________________________________ > > iText-questions mailing list > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > > 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. > > > > > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
