How do I preserve bookmarks when splitting and merging PDF?

Q:

When spliting a Pdf that has various bookmarks can I keep the
related bookmarks on the new splited pdf files?
---
A:

To preserve bookmarks when importing a set of pages from one document
to another (e.g. similar to the last code example in PDFPage sample
project -www.pdftron.com/net/samplecode.html#PDFPage) use 'true' as
the second argument to pdfdoc.ImportPages(page_set, true).

Import pages method can be used to implement for both PDF split and
merge operations.