13

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?

Jeroen
  • 1,168
  • 1
  • 12
  • 24
Juraj
  • 131
  • 1
  • 1
  • 6
  • http://stackoverflow.com/questions/11658011/cannot-modify-content-of-iframe-what-is-wrong – yivi Jan 11 '17 at 09:19
  • 1
    Possible duplicate of [Cannot modify content of iframe, what is wrong?](http://stackoverflow.com/questions/11658011/cannot-modify-content-of-iframe-what-is-wrong) – yivi Jan 11 '17 at 09:20
  • it doesn=t work for me. I try to hide and remove, but no change... It can be pdf viewer default option, which prevent me to remove/hide toolbarViewerRight – Juraj Jan 11 '17 at 09:31

3 Answers3

28

Use #toolbar=0 after your .pdf file name in src

<iframe src="your-pdf-name.pdf#toolbar=0"></iframe>
Vijay Lathiya
  • 1,087
  • 11
  • 14
4

Try the following:

<iframe src="kd/kd.pdf?page=hsn#toolbar=0" width="100%" height="1000" id="iframe11">
</iframe>
Rob
  • 26,989
  • 16
  • 82
  • 98
kenneth
  • 49
  • 1
  • 2
3

Try using embed tag instead iframe tag, like this:

<embed src="http://host/yourpdf.pdf#toolbar=0" style="width:600px; height:500px;">