Animesh Mondal wrote: > Hi, > I'm trying two concatenate some pdf files into a single file and trying > to create a bookmark to the section of each(constituent) pdf's starting > portion. The source pdfs have no bookmark. I'm using PdfCopy writer > object. I used concat_pdf.java from iText tutorial. The files being > concatenated. but no bookmark. I've extended PdfPageEventHelper class > (as Bookmarks.java given in iText bookmark tutorial), overriden > onParagraph(), onEndPage() methods and have called writer.setPageEvent() > methods. But all this not helping to create the bookmark. Here also i > see that I can't do any document.add() instead using writer.addPage(). > Please help.
Please don't mix stuff that shouldn't be mixed, like PdfCopy with PageEvents, that's never going to work. Create the outline as described in Chapter 13 of the book, then add these 'bookmarks' with setOutline. Don't expect to have bookmarks that work on a paragraph level; read the book and you'll understand why not. I have the impression you are starting from the wrong assumptions concerning PDF. br, Bruno ------------------------------------------------------------------------- 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 iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/