NW.js 0.13.3 : how to open a local pdf file in chrome://print window ?

280 views
Skip to first unread message

Joel Zhang

unread,
Apr 6, 2016, 2:31:22 AM4/6/16
to nw.js
Hi,

Currently I'm testing the pdf viewer in nw.js 0.13.3. The pdf viewer is nice, I can open a local pdf file in the pdf viewer and press the Print icon on the top right corner to get the print preview. From the dev tool, I find this preview page's url is chrome://print :

Is it possible to open a local pdf file in this  chrome://print  without using  the pdf viewer? 

I tried with    window.open("chrome://print?file:///test.pdf");   and got a print preview page ,but the preview area is empty (the characters just said "loading preview..."):  


Anyone has some insights ? Or it's just impossible ?

Thanks for any help.




Roger

unread,
Apr 6, 2016, 6:36:04 AM4/6/16
to Joel Zhang, nw.js

Will check this. Please report an issue to track.


--
You received this message because you are subscribed to the Google Groups "nw.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nwjs-general...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joel Zhang

unread,
Apr 6, 2016, 9:00:29 PM4/6/16
to nw.js, jjooee...@gmail.com
@Roger: Thanks for your help.  I reported the issue here: https://github.com/nwjs/nw.js/issues/4688

在 2016年4月6日星期三 UTC+8下午6:36:04,Roger Wang写道:
Reply all
Reply to author
Forward
0 new messages