Get topic in print format without print dialog

Is there a way to call some Discourse URI to get topic content in printable format whiteout printing dialog open.
If you call Discourse url with print param eg: Discourse return nicely html formatted for print. But this page automatically opening print dialog.
I am trying to put simply formatted html content of topic in iframe on my page but without opening print dialog.

1 Like

An iframe-specific workaround is to use the iframe sandbox attribute, specifically:

Do not include the above in your sandbox attribute (or leave it empty altogether) should stop the print dialog.