6

How can I embed a PDF in a webpage without showing the Firefox PDF viewer toolbars (and the toolbar overlay in Chrome)?

Adding #toolbar=0 doesn't seem to affect these viewers.

I don't want to protect the PDF, I want to make it look cleaner/better on the website.

Current

enter image description here

Desired

enter image description here

Person
  • 1,043
  • 1
  • 9
  • 14

2 Answers2

4

try it CSS:

    div.pdf {
   position: absolute;
  top: -42px;
  left: 0;width:100%;
  }

and html is:

<div class="pdf"><embed src="http://URL_TO_PDF.com/pdf.pdf">
0

This question was asked before in a different way.
You should try something like this in your src="" :

<embed src="http://URL_TO_PDF.com/pdf.pdf#toolbar=0&navpanes=0&scrollbar=0" width="425" height="425">

Here is the reference link: Hiding the toolbars surrounding an embedded pdf?

Community
  • 1
  • 1
Sari Rahal
  • 1,739
  • 2
  • 29
  • 48
  • 1
    This doesn't work for me, does it work for you in Firefox with the default PDF viewer (not Adobe)? – Person Sep 15 '15 at 15:19
  • This question was asked a little differently in a security question. I will update the answer. – Sari Rahal Sep 15 '15 at 15:27
  • 3
    You've copied the answer for a question about Adobe that has a reply saying it doesn't work in Firefox. – Person Sep 16 '15 at 11:03