callbacks.onPrint
Takes over the toolbar Print button and Ctrl / ⌘ + P; not called when the document forbids printing. When set, the SDK's Print dialog does not run; print with
viewer.print({ pages }).() => void
viewer.print({ pages }).