Files to look at:

How to remove standard bar items and add custom ones to the DocumentViewer toolbar

This example uses an outdated approach to solving this task that is no longer correct.

Starting with the 15.1 release, it is recommended to use the approach illustrated in the following example: How to remove standard bar items and add custom ones to the DocumentPreviewControl toolbar.