current position:Home>Learn to open and display PDF files in HTML web pages

Learn to open and display PDF files in HTML web pages

2022-04-29 16:05:29Lingering memory of Yufei

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

<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"> 

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--> 

4、 Through your browser :360、Firefox、IE、Chrome

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

copyright notice
author[Lingering memory of Yufei],Please bring the original link to reprint, thank you.

Random recommended