This example was originally written in answer to the question Click How to merge PDFs and add bookmarks? for iText5. The code here is a direct port from the iText5 code. Merging documents while maintaining bookmarks in iText7 is done automatically when using the PdfMergerobject.


insertandadaptoutlines


mergewithoutlines

Resources