Hiding the toolbars surrounding an embedded pdf?

2019-01-13 15:46发布

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

2条回答
Explosion°爆炸
2楼-- · 2019-01-13 16:16

The following code will embed a pdf without any toolbars:

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

See this blog for details: http://blogs.adobe.com/pdfdevjunkie/2007/08/using_the_html_embed_tag_to_di.html

For a full list of parameters to the embedded tag see this:
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf

查看更多
地球回转人心会变
3楼-- · 2019-01-13 16:18

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

<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
查看更多
登录 后发表回答