Hide pdf toolbar in firefox while displaying pdf using iframe
Asked Answered
P

2

7

I am displaying a pdf file in browser using iframe. It is working fine but i want to disable/hide acrobat toolbar(below image).

Toolbar in firefox

I tried the solution #toolbar=0&statusbar=0 it's working great on chrome but it's not working on Firefox. How can I achieve this?

Priestley answered 24/6, 2015 at 8:40 Comment(2)
Did you get any solution for this...?Calley
Hello, did you get any solution to this?Anthia
B
1

Browsers handle PDF Open Parameters differently (if at all). It is not possible with Javascript to force browsers to support PDF Open Parameters if the browser vendor did not build an API for it.

Bowl answered 10/4, 2021 at 21:51 Comment(0)
S
0

For anyone searching, there is an answer here https://support.mozilla.org/en-US/questions/1119523 from user jscher2000 (https://support.mozilla.org/en-US/user/jscher2000)

#outerContainer #mainContainer div.toolbar {
  display: none !important; /* hide PDF viewer toolbar */
}
#outerContainer #mainContainer #viewerContainer {
  top: 0 !important; /* move doc up into empty bar space */
}
Saire answered 16/7, 2018 at 22:32 Comment(1)
This is not CSS you can add to your page. It has to be added to the userContent.css file of the browserJat

© 2022 - 2024 — McMap. All rights reserved.