zoukankan      html  css  js  c++  java
  • angular 页面中引入静态 PDF 文件

    在web开发时我们有时会需要在线预览PDF内容,在线嵌入pdf文件

    常用的几种PDF预览代码片段如下:

    方法一:

    <object type="application/pdf" data="file:///D:/atm/prtPDF/2016-07-28622262104000373211200009087.pdf"
               id="review" style="800px;  height:750px; margin-top:45px;  margin-left:500px" >
    </object>

    方法二:

    <embed src="file:///D:/atm/prtPDF/2016-07-28622262104000373211200009087.pdf"
             id="review" style="800px;  height:750px; margin-top:45px;margin-left:500px" >
    </embed>

    方法三:

    <iframe src="../../../../../assets/1.pdf" style="100%;height: 100%">

    </
    iframe>
  • 相关阅读:
    测试理论
    字符串
    类的无参方法
    类和对象
    数组
    循环结构
    选择结构
    java——面对对象
    android通知的基本用法
    Git的基本使用
  • 原文地址:https://www.cnblogs.com/wjw1014/p/11251026.html
Copyright © 2011-2022 走看看