Moving Native Download / Print Buttons

Product: PDFTron / Webviewer

Product Version: @pdftron/webviewer": “^8.3.0”,

Please give a brief summary of your issue:
I am attempting to move the native print button out of the menu overlay by using UI.settingsMenuOverlay.getItems() and then selecting the print button out of that array and placing it into the main header with the insertAfter() method, however despite actually being able to log the print button item I receive from the getItems array, the insertAfter method thinks it is undefined. Is there an easy way to move menyOverlay native items out of the menu and into the main header?

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)

Please provide a link to a minimal sample where the issue is reproducible:


The existing items in the menu overlay are represented with basic element items when you call getItems.

I think to achieve what you are looking to do, you will have to implement your own print and download buttons:

or customize the open-source UI: GitHub - PDFTron/webviewer-ui: WebViewer UI built in React.

Let me know if this helps!