CopyPdf will also copy the links and other annotations. See www.geocities.com/itextpdf.
Best Regards, Paulo Soares > -----Original Message----- > From: Barnaby Shearer [SMTP:[EMAIL PROTECTED] > Sent: Thursday, March 06, 2003 14:22 > To: [EMAIL PROTECTED] > Subject: [iText-questions] PdfWriter.getImportedPage and anchors > (hyperlinks) > > Hi All, > > I am using iText to concatenate some PDF file I am generating in FOP. I > noticed that the PdfWriter.getImportedPage method doesn't copy across > the hyperlinks on a page. > > I have modified the Concat example to copy hyperlinks as well as pages, > and I thought I would post this in case it was of use to anyone else. > > However there is a very large kludge in the new code: For each page it > copies it simple iterates though copying ALL they hyperlinks in the > source document. This is not a problem if the source documents that > contain hyperlinks only contain one page but would be a major bug if you > wanted to concatenate a multiple page PDF containing links. > > Does anyone have any ideas how I could decide if a hyperlink related to > the current page? > > Barnaby > > > -----Original Message----- > From: SourceForge.net [mailto:[EMAIL PROTECTED] > Sent: 04 March 2003 19:51 > To: [EMAIL PROTECTED] > Subject: Fwd: [ itext-Bugs-697436 ] PdfWriter.getImportedPage and > anchors (hyperlinks) > > > Bugs item #697436, was opened at 2003-03-04 19:14 > You can respond by visiting: > https://sourceforge.net/tracker/?func=detail&atid=115255&aid=697436&grou > p_id=15255 > > Category: General > Group: None > >Status: Closed > Resolution: None > Priority: 5 > Submitted By: Barnaby Shearer (bware) > Assigned to: Nobody/Anonymous (nobody) > Summary: PdfWriter.getImportedPage and anchors (hyperlinks) > > Initial Comment: > When I use PdfWriter.getImportedPage to copy pages > > form one PDF to another (e.g. your Concat example), > > the pages lose their hyperlinks. > > This is not mentioned in the API documentation and as > > iText supports adding anchors to pages it is > > constructing I am unsure if this is a bug or a feature > > request. > > (The PDFs I am working with have been generated by > > Apache FOP if that makes any difference.) > > ---------------------------------------------------------------------- > > >Comment By: Paulo Soares (psoares33) > Date: 2003-03-04 19:50 > > Message: > Logged In: YES > user_id=121341 > > Only the content is imported but there are other ways to keep > > the annotations. Please follow up in the mailing list. > > ---------------------------------------------------------------------- > > You can respond by visiting: > https://sourceforge.net/tracker/?func=detail&atid=115255&aid=697436&grou > p_id=15255 << File: PDFConcatenate.java >> ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions