【问题标题】:Default zoom for embedded PDF in EdgeEdge 中嵌入 PDF 的默认缩放
【发布时间】:2020-04-05 23:44:06
【问题描述】:

我想放大嵌入的 PDF。 PDF 以这种方式嵌入:

<embed width="500" height="800" src="/path/to/file.pdf" type="application/pdf"></embed>

我希望 PDF 在初始化时进行缩放(例如 120%)。我知道如果在 Internet Explorer 中使用 Adob​​e 插件,这是可能的。但是在 Edge 中,使用的是默认的 Edge 插件,我找不到任何选项来实现这一点。

有没有人知道它是否以及如何实现?

【问题讨论】:

    标签: html pdf embed microsoft-edge


    【解决方案1】:

    看起来无法为 MS Edge (EDGE HTML) 浏览器缩放嵌入的 PDF。

    如果您可以使用MS Edge (Chromium) 浏览器,那么您可以通过将缩放参数添加到文件名来缩放 PDF。

     <embed width="500" height="800" src="http://www.africau.edu/images/default/sample.pdf?#zoom=120" type="application/pdf"></embed>
    

    例子:

     <!DOCTYPE html>
        <html>
          <head>
            <title>Title of the document</title>
          </head>
          <body>
           <iframe width="500" height="800" src="http://www.africau.edu/images/default/sample.pdf?#zoom=120"></iframe>
           <object width="500" height="800" data="http://www.africau.edu/images/default/sample.pdf?#zoom=120" type="application/pdf"></object>
           <embed width="500" height="800" src="http://www.africau.edu/images/default/sample.pdf?#zoom=120" type="application/pdf"></embed>
          </body>
        </html>
    

    MS Edge (Chromium) 浏览器中的输出:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-12-31
      • 2016-02-20
      • 2016-04-21
      • 1970-01-01
      • 2014-04-14
      • 2017-01-13
      相关资源
      最近更新 更多