Which product are you using?
PDF.js Express Version
I want to customize the header so that only the print icon is visible.
Note: I tried disabling all icons except the print icon but it didn’t work.
I thought of it this way:
const newButton = {
type: 'actionButton',
img: 'icon-header-print-line',
title: 'action.print',
onClick: () => {
alert('Printing!');
},
dataElement: 'printButton',
}
instance.UI.setHeaderItems((header) => {
const items = header.update([]); //erase all items
header.push(newButton)
}
But I don’t know how to show printModal ???
Thanks!!!