Quantcast
Channel: Electron: print iframe given reference to it - Stack Overflow
Browsing all 4 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Answer by the Hutt for Electron: print iframe given reference to it

You need to convert the iframe object to Data URL. And load the URL in a new hidden BrowserWindow object.Build data URL in Renderer process and send the URL to Main process using preload. In main...

View Article


Electron: print iframe given reference to it

I would like to use the react-to-print library to print an iframe from my Electron app. How can I use the iframe reference to get the correct window/element to print?const handleElectronPrint = async...

View Article


Answer by Shaaa for Electron: print iframe given reference to it

Adding on to the previous answer : It would be good idea to close the window programmatically, even when "show: false". It will take up resources. win?.close();While minimized or hidden, BrowserWindows...

View Article

Answer by ESSAADI_ ELMEHDI for Electron: print iframe given reference to it

I am writing this answer to address a minor issue that you might encounter when following the advice in the Hutt's answer. The character encoding can be lost when creating the blob, which can cause...

View Article
Browsing all 4 articles
Browse latest View live


Latest Images