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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -