Html 隐藏嵌入 pdf 周围的工具栏?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2104608/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 01:55:18  来源:igfitidea点击:

Hiding the toolbars surrounding an embedded pdf?

htmlpdfembedtoolbars

提问by leeand00

Though I think the answer maybe in this other question's answer concerning the pdf specification, is it possible to not displaythe adobe acrobat toolbars in an embedded pdf document?

虽然我认为答案可能在关于 pdf 规范的另一个问题的答案中,是否可以不在嵌入式 pdf 文档中显示adobe acrobat 工具栏?

回答by leeand00

The following code will embed a PDF file without any toolbars:

以下代码将嵌入一个没有任何工具栏的 PDF 文件:

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

回答by Nouman Saleem

You can use #toolbar to hide above toolbar.. if toolbar =0, it will disable it.. when toolbar=1, this will enable it.. hope so it will work. this works for me

您可以使用#toolbar 隐藏工具栏上方.. 如果工具栏=0,它将禁用它.. 当工具栏=1 时,这将启用它.. 希望它会起作用。这对我有用

<embed src="filename.pdf#toolbar=0" width="500" height="375"> (Disable toolbar)
<embed src="path/filename.pdf#toolbar=1" width="500" height="375"> (Enable toolbar