简体   繁体   中英

Print PDF in a Popup with Javascript

I would like to print a PDF in an Popup window in Firefox 30 with Javascript.

When I looked at on firebug, I received this message " "

Is there a workaround ?

Here my simple code :

var myWin = open("my-pdf.pdf");
frames["myWin"].focus();
frames["myWin"].print();

I encountered this bug; Updating compatability.js and this started working for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM