Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hiding the toolbars surrounding an embedded pdf?

Though I think the answer maybe in this other question's answer concerning the pdf specification, is it possible to not display the adobe acrobat toolbars in an embedded pdf document?

like image 528
leeand00 Avatar asked Jan 20 '10 20:01

leeand00


People also ask

How do I hide the embedded PDF toolbar?

The PDF Toolbar that comes up in Google Chrome when displaying a PDF, which displays Filename, Page Number, Rotate Button, Download Button, and Print Button can be suppressed by adding #toolbar=0 to the end of the URL.

How do I hide the PDF toolbar in my browser?

What you can do is to add #toolbar=0 to the end of the URL. For details of parameters, please visit PDF Open Parameters. That doesn't seem to have any effect. What is it expected to do, if this is a user preference?

How do I disable the toolbar button in PDF?

If the PDF plugin version supports passed in control options, you can hide all the toolbar buttons by appending #toolbar=0 to the src: ? At least it works with direct links to the document.


2 Answers

If you use any browser besides Firefox browser, then the following code will embed a PDF file without any toolbars:

<embed   src="http://URL_TO_PDF.com/pdf.pdf#toolbar=0&navpanes=0&scrollbar=0"   width="425" height="425" /> 
  • Please note that this does not work on Firefox
  • See the Web Designer's Guide blog post for details.
  • See the full list of embedded tag parameters for more information.
like image 142
leeand00 Avatar answered Sep 19 '22 21:09

leeand00


You can use #toolbar to hide above toolbar.. if toolbar =0, it will disable it.. when toolbar=1, this will enable it.. hope so it will work. this works for me

<embed src="filename.pdf#toolbar=0" width="500" height="375"> (Disable toolbar) <embed src="path/filename.pdf#toolbar=1" width="500" height="375"> (Enable toolbar 
like image 33
Nouman Saleem Avatar answered Sep 17 '22 21:09

Nouman Saleem