Hi,

I'm trying to concatenate some pdf files(containing images)  into a single
file and trying to create a bookmark to it. 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 started writing something like this but need a help.
The below code created a bookmark but I am not sure how to link to the pdf
file, so when I click on bookmark it should go to a particular title.

PdfDestination d5 = new PdfDestination(PdfDestination.FITH);
         PdfAction m_action = PdfAction.gotoLocalPage(1, d5, pdfcopy);
        PdfOutline out1 = new 
PdfOutline(copy.getDirectContent().getRootOutline(),
m_action, title);

Please help.


 
Thanks and regards, 

 



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/add-bookmark-to-merged-documents-tp4659292.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to