A pdf_graft_map is a mapping from one pdf_document to another that ensures objects in the source document are only ever copied into the target document at most once.
A `safe' version of the example given earlier that copies both Root/Example and Root/Example2 would therefore be: