I am generating a PDF document and displaying it in a Web browser (current version of IE is most important target). I want to suppress the floating toolbar (see below) that appears and disappears depending on mouse movement.
Is there a way to suppress this? I can control the PDF document (it's built using itextpdf), as well as the Url.
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.
No, currently it is not possible to remove/hide these tabs.
A custom style rule could do it on a user-by-user basis, for example: #outerContainer #mainContainer div. toolbar { display: none ! important; /* hide PDF viewer toolbar */ } #outerContainer #mainContainer #viewerContainer { top: 0 !
I think that is the preference of the user.
What you can do is to add #toolbar=0
to the end of the URL.
For example,
http://DOMAIN/FILE_NAME.pdf#toolbar=0
Something you might want to do is:
<embed src="MyFile.pdf#toolbar=0&scrollbar=0&navpanes=1" width="530" height="300" />
For details of parameters, please visit PDF Open Parameters.
What you're looking for isn't possible. Read the answer by Leonard Rosenthol (Adobe's PDF architect) on the iText mailing list: http://thread.gmane.org/gmane.comp.java.lib.itext.general/55112/focus=55120
Since version X of Adobe Reader, there is a new mode called "Read Mode", which is the default viewing mode when you open a PDF in a web browser. In "Read Mode" you can find a semi-transparent floating toolbar containing basic reading controls, such as page navigation, print and zoom.
Unchecking "Display in Read Mode by Default" can be done from Edit > Preferences > Internet in Adobe Reader X but it there is no way to disable "read mode" programmatically.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With