Erasing and copying PDF destinations

Q:

I have been fairly pleased with using the PDFTron product. Recently I
have come upon some tasks that I am not sure if the tool can help me
do.

1. Find a specific destination by name and remove it. (Current code
below adopted from code you provided in the past)
2. Transfer Destinations in one PDF to another PDF. The PDFs are
virtually identical except for some text changes.
---
A:

1. Find a specific destination by name and remove it.

You can use nametree.Find(Byte key[], Int32 key_sz) to find a
destination by name (e.g. a buffer with ascii characters)

To remove the destination you would use nametree.Erase(Byte key[]) or
nametree.Erase(NameTreeIterator itr).

2. Transfer Destinations in one PDF to another PDF. The PDFs are
virtually identical except for some text changes.

This is also possible but, if the files are virtually identical it is
much simpler to edit the original document (as possibly 'SaveAs' the
document) instead of having to copy and recreate all document
structures.