First of all thanks for the quick reply....
ok...below there is what I did....but the result is the same....I see the
bookmark tree in the output pdf...but when I click it doesn't work


                 ...

                 for (int i=1; i <= reader.NumberOfPages ;i++)
                 {
                     PdfImportedPage page = copy.GetImportedPage(reader, i);
                     copy.AddPage(page);
                 }
 
                 #region JavaScript
   
                 // ...
 
                 # endregion

                int pageOffset = 0;                                
                // copy bookmarks from the original pdf
                if (bookmarks != null)
                {
                    if (pageOffset != 0)
                        SimpleBookmark.ShiftPageNumbers(bookmarks,
pageOffset, null);
                    OutputOutlines.AddRange(bookmarks);
                }

                // Copy bookmarks to the output pdf
                if (OutputOutlines.Count > 0)
                    copy.Outlines = OutputOutlines;

                document.Close();


-- 
View this message in context: 
http://www.nabble.com/Bookmarks-in-merged-PDF-document-tp17059129p17861813.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to