当前位置:网站首页>在网页中打开展示pdf文件
在网页中打开展示pdf文件
2022-07-07 21:54:00 【流楚丶格念】
文章目录
1、点击PDF文件链接
点击PDF文件链接在新的页面打开pdf文件(将PDF文件放在和HTML文件同等目录下):
<a href="Test.pdf" target="_blank">PDF<a>
如果将PDF文件改为Docx文件,那么点击之后就是下载页面,不会像PDF文件那样在新页面展示内容‘;
如果将PDF文件改为图片文件,那么点击之后就是在新页面展示图片;
如果将PDF文件改为一个文件夹,那么打开就是整个目录,且可以访问其内容,类似FTP服务
2、通过的浏览器:360、Firefox、Chrome
<embed width="800" height="600" src="test.pdf"></embed>
3、通过的浏览器:360、IE 未通过的浏览器:Firefox、Chrome
<object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="800" height="600" border="0">
<param name="SRC" value="test_pdf.pdf">
</object>
下面这个完整点:
<object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="100%" height="100%" border="0"><!--IE-->
<param name="_Version" value="65539">
<param name="_ExtentX" value="20108">
<param name="_ExtentY" value="10866">
<param name="_StockProps" value="0">
<param name="SRC" value="testing_pdf.pdf">
<embed src="testing_pdf.pdf" width="100%" height="800" href="testing_pdf.pdf"></embed><!--FF-->
</object>
4、通过的浏览器:360、Firefox、IE、Chrome
<iframe src="test_pdf.pdf" width="800" height="600"></iframe>
边栏推荐
- PostGIS learning
- About the difference between ch32 library function and STM32 library function
- The result of innovation in professional courses such as robotics (Automation)
- An example analysis of MP4 file format parsing
- 2022.7.7-----leetcode. six hundred and forty-eight
- 【leetcode】day1
- 35岁那年,我做了一个面临失业的决定
- 平衡二叉樹【AVL樹】——插入、删除
- 保证接口数据安全的10种方案
- Basic learning of SQL Server -- creating databases and tables with code
猜你喜欢
Navicat connects Oracle
平衡二叉樹【AVL樹】——插入、删除
BSS 7230 flame retardant performance test of aviation interior materials
C - linear table
Ping error: unknown name or service
蓝桥ROS中使用fishros一键安装
P1067 [noip2009 popularity group] polynomial output (difficult, pit)
Ora-01741 and ora-01704
Introduction to programming hardware
SQL connection problem after downloading (2)
随机推荐
Possible SQL for Oracle table lookup information
Install sqlserver2019
Data Lake (XV): spark and iceberg integrate write operations
P1055 [noip2008 popularization group] ISBN number
Dependency injection 2 advantage lifecycle
[experiment sharing] log in to Cisco devices through the console port
Chisel tutorial - 02 Chisel environment configuration and implementation and testing of the first chisel module
[summary] some panels and videos seen
Enumeration, simulation, and sorting
P1308 [noip2011 popularity group] count the number of words
Oracle statistics by time
One click free translation of more than 300 pages of PDF documents
Is it safe for tongdaxin to buy funds?
AWS AWS help error
Chisel tutorial - 01 Introduction to Scala
Wechat applet development beginner 1
二叉排序树【BST】——创建、查找、删除、输出
Learn about scratch
Idea automatically generates serialVersionUID
MP4文件格式解析之结合实例分析