Can I hide the Adobe floating toolbar when showing a PDF in browser?

こ雲淡風輕ζ 提交于 2019-11-26 17:09:34

问题


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.


回答1:


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.




回答2:


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.




回答3:


This the way:

myPdfView.put_src("D:\Recomendations.pdf#toolbar=0&navpanes=0&scrollbar=0");

You are welcome...



来源:https://stackoverflow.com/questions/12750725/can-i-hide-the-adobe-floating-toolbar-when-showing-a-pdf-in-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!