html - How to print pdf which is in iframe using jQuery? -


i've tried print pdf, , tried print iframe.

html:

<iframe name="iframetoprint" id="iframetoprint" src="/path/to/mypdf.pdf"></iframe> 

js:

$('#iframetoprint').get(0).contentwindow.print(); 

and says:

error: permission denied access property 'print' in mozilla firefox

i think firefox doesn't have permission print pdfs iframe, have no idea.

is there way this?


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -