如何在没有灰色任务栏的情况下在HTML上显示PDF文件?

时间:2015-07-13 08:22:39

标签: javascript html css html5 pdf

我正在尝试在全屏幕上创建一个pdf文件库,是否可以在没有此灰色条的情况下显示它们?

enter image description here

2 个答案:

答案 0 :(得分:3)

startElement 'Result'
characters '
'
characters '    '
startElement 'Node'
characters '
'
characters '        '
startElement 'browseNodeId'
characters '306533011'
endElement 'browseNodeId'
characters '
'
characters '        '
startElement 'browseNodeAttributes'
characters '
'
characters '            '
startElement 'attribute'
characters 'temperature-controllers'
endElement 'attribute'
characters '
'
characters '        '
endElement 'browseNodeAttributes'
characters '
'
characters '        '
startElement 'browseNodeName'
characters 'Temperature Controllers'
endElement 'browseNodeName'
characters '
'
characters '        '
startElement 'browseNodeStoreContextName'
characters 'Temperature Controllers'
endElement 'browseNodeStoreContextName'
characters '
'
characters '        '
Traceback (most recent call last):
  File "/home/gtac/sax/parser.py", line 26, in <module>
    main("nodes.xml")
  File "/home/gtac/sax/parser.py", line 23, in main
    xml.sax.parse(source, ABContentHandler())
  File "/usr/lib/python2.7/xml/sax/__init__.py", line 33, in parse
    parser.parse(source)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 214, in feed
    self._err_handler.fatalError(exc)
  File "/usr/lib/python2.7/xml/sax/handler.py", line 38, in fatalError
    raise exception
xml.sax._exceptions.SAXParseException: nodes.xml:11:38: not well-formed (invalid token)
startElement 'browsePathById'
characters '16310091,16310161,256409011,5006566011,306533011'
endElement 'browsePathById'
characters '
'
characters '        '
startElement 'browsePathByName'
characters 'Industrial '

Process finished with exit code 1

您只需在<embed src="http://URL_TO_PDF.com/pdf.pdf#toolbar=0&navpanes=0&scrollbar=0" width="425" height="425"> 属性中添加一些参数。

以下是可以使用的完整list of parameters

答案 1 :(得分:1)

抱歉。此工具栏是内置的谷歌浏览器,因此您无法为其他访问者禁用它。

Here is additional info about it.

我应该对此发表评论,但由于我缺乏声誉,我发布了答案。