Hiding the toolbars surrounding an embedded pdf?

前端 未结 2 1320
孤街浪徒
孤街浪徒 2020-11-30 03:44

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

相关标签:
2条回答
  • 2020-11-30 04:15

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

    <embed
      src="http://URL_TO_PDF.com/pdf.pdf#toolbar=0&navpanes=0&scrollbar=0"
      width="425" height="425" />
    
    • See the Web Designer's Guide blog post for details.
    • See the full list of embedded tag parameters for more information.
    0 讨论(0)
  • 2020-11-30 04:33

    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
    
    0 讨论(0)
提交回复
热议问题