i am using #toolbar=0&navpanes=0&scrollbar=0
in iframe url for disabling toolbar but in Mozzila it doesn't work. I tryed to import javascript into iframe, but the same result....
iframe:
<iframe ?wmode="transparent" type="application/pdf" id="iframe" src="'.$url.'#toolbar=0&navpanes=0&scrollbar=0" width="100%" height="685"></iframe>
used js:
jQuery('#iframe').load(function(){
jQuery('#iframe').contents().find("#toolbarViewerRight").hide();
});
Any idea, how can i disable/remove/hide this toolbar or only download button?
You cannot disable it, as it's not part of the iframe . You can't control that, since it's a browser feature.
A: There is no way to disable the download button on the PDF viewer that displays the document.
The server sends the data with a HTTP header inline-disposition that causes a download.
Use #toolbar=0 after your .pdf file name in src
<iframe src="your-pdf-name.pdf#toolbar=0"></iframe>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With