On 18 Jul 2007 08:12:56 -0000, Animesh Mondal wrote: > My requirement is that I've some existing pdfs which I've to concatenate > and at the same time have to put bookmarks at each constituents pdf's > contents' starting portion in the resulting pdf. Whether this can be > done at time of concatenation or i've to put outlines in each > constituent pdf or i make a single pdf from scratch rather making > multiple pdf. But at current I'm given the multiple pdfs with which i > can manipulate only.
jPdfTweak (http://jpdftweak.sourceforge.net/) supports this. Open your PDFs, select to insert bookmarks and use the bookmarks from the original files, and you will get one bookmark for each file plus the file's original bookmarks one level indented below them. You may also edit the bookmarks interactively. If you have to do this regularly: jPDFTweak uses IText, the source code is available, so you can also look there :) Basically, you have to track page numbers while concatenating your PDFs and build a new outlines list; this list is used in a second pass with PdfStamper#setOutlines. Michael ------------------------------------------------------------------------- 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/