Window.open(stream.toBlobURL('application/pdf'));


#1

Hello,
I am new to electron and have developed a simple canvas program. Everything works with the exception of window.open.

I can window.open (“http://www.google.com”) but can’t stream a pdf to a window like this: window.open(stream.toBlobURL(‘application/pdf’));

the result is a window indicating “Couldn’t load plugin”.

Can someone point me in the right direction? My searches must be way off topic as I am lost on what to do.


#2

Hi,

I am interested in any leads to solve a similar issue : generating an html page from scratch.

What I’m thinking of doing : write the “stream” in a temporary file and opening it with browser-window

Before using electron, I wrote directly in the document of my newly crated window.