Person
Person

Reputation: 1121

How can I embed a PDF in a webpage without showing the Firefox PDF viewer toolbars?

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

Upvotes: 6

Views: 15523

Answers (2)

ousmorez
ousmorez

Reputation: 1

Adding #toolbar=0 effects all the browsers except Mozilla Firefox, and there is no way to turn toolbar off or make it disable in Mozilla Firefox till today.

You can use it like this:

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

Upvotes: -1

user5988442
user5988442

Reputation:

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">

Upvotes: 4

Related Questions