My problem is trying to print it directly from Retool. I would rather not save it and just print it. You seem to have away to get around the sandbox so I can open a page with just the PDF in the browser and can print it from there. But I have not dealt with customer components yet so I have some lernin’ to do.
A feature for custom components which was just released today should help with printing from custom components:
This toggle adds allow-modals
to the sandbox property of the iframe, allowing you to use any of the following features to produce modal dialogs:
window.alert()
window.confirm()
window.print()
window.prompt()
- the
beforeunload
event
Of interest in your use case will probably be the window.print() method.