mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.32k stars 9.97k forks source link

Implement parameter navpanes and toolbar #2784

Open jviereck opened 11 years ago

jviereck commented 11 years ago

See: https://bugzilla.mozilla.org/show_bug.cgi?id=844350

with the acrobat pdf plugin i can pass navpanes=0 and toolbar=0 to hide the toolbars

The parameters are specified here: http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters_v9.pdf#page=7

jviereck commented 11 years ago

Issue #2676 might serve as an starting point on how to implement this.

Snuffleupagus commented 11 years ago

Should we implement the "navpanes" parameter? In Adobe Reader the "navpanes" are separate from the toolbar, but in pdf.js these can't be acessed if the toolbar isn't visible. I suppose that you could just hide the sidebar button if "navpanes=0", but do we want to do that?

kekkc commented 6 years ago

https://github.com/mozilla/pdf.js/issues/9414 was closed with a reference to this issue, but I'm not sure if the parameters are the same as "auto-hide" toolbar. In case someone is searching for a workaround to gain space or some different ideas of implementation, create a userContent.css in profile>chrome with the following content (instead of hiding the toolbar completely, it's just made transparent:

/ https://support.mozilla.org/de/questions/1119523 /

outerContainer #mainContainer div.toolbar {

/display: none !important; / hide PDF viewer toolbar */ opacity: 0.5 !important; }

outerContainer #mainContainer #viewerContainer {

top: 0 !important; / move doc up into empty bar space / }

churchianity commented 1 year ago

I opened this: https://bugzilla.mozilla.org/show_bug.cgi?id=1807490

And was directed here - what's the status of the various unimplemented pdf parameters in pdf.js?