The Example.dot template contains 2 modules; Custom and ITPMDK. In principle only the Custom module needs to be adapted by you. The ITPMDK module implements the ITPMDKDocumentChange macro. Whenever this macro is called, it retrieves document information on the active document and passes this information by calling external macros that are defined in the Custom module.