How to Display a PDF File in a HTML Web Page

Type the following code to cause the PDF to display in a new window:

<a target=\"_blank\" href=\"filename.pdf\" title=\"\">Text that appears to the user</a>

If you do not wish the PDF to open in another window, then type:

<a href=\"filename.pdf\" title=>Text that appears to the user</a>

For "filename.pdf" substitute the filename and path of your PDF on the Web host, relative to the current HTML page. Include the quotes. For "Text that appears to the user," substitute the text you want to appear highlighted and clickable.



Read more: How to Display a PDF File in a HTML Web Page | eHow.com http://www.ehow.com/how_4451133_display-pdf-file-html-web.html#ixzz1pvrCc49i

原文地址:https://www.cnblogs.com/kingangWang/p/2414054.html