当前位置:网站首页>Open display PDF file in web page

Open display PDF file in web page

2022-07-07 23:57:00 Liu Chu, Ge Nian

1、 Click on PDF The file link

Click on PDF The file link opens on a new page pdf file ( take PDF Files are placed in and HTML File in the same directory ):

<a href="Test.pdf" target="_blank">PDF<a>

If you will PDF Change the document to Docx file , Then click to download the page , Don't like PDF Show the content on a new page like a file ‘;
If you will PDF Change file to picture file , Then click to display the picture on the new page ;
If you will PDF Change the file to a folder , Then open the whole directory , And you can access its content , similar FTP service

2、 Through your browser :360、Firefox、Chrome

<embed width="800" height="600" src="test.pdf"></embed>

3、 Through your browser :360、IE Failed browser :Firefox、Chrome

<object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="800" height="600" border="0"> 
	<param name="SRC" value="test_pdf.pdf"> 
</object> 

Here's the whole point :

<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、 Through your browser :360、Firefox、IE、Chrome

<iframe src="test_pdf.pdf" width="800" height="600"></iframe> 
原网站

版权声明
本文为[Liu Chu, Ge Nian]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207072148476322.html