Sunday, April 3, 2011

The simplest way to display PDF file in a web page, HTML object Tag

<object data="http://www.pdftest.test/test.pdf" height="360" type="application/pdf" width="600"></object>



Reference: http://www.w3.org/TR/html401/struct/objects.html
13.1 Introduction to objects, images, and applets

HTML's multimedia features allow authors to include images, applets (programs that are automatically downloaded and run on the user's machine), video clips, and other HTML documents in their pages.

For example, to include a PNG image in a document, authors may write:

<BODY>
<P>Here's a closeup of the Grand Canyon:
<OBJECT data="canyon.png" type="image/png">
This is a <EM>closeup</EM> of the Grand Canyon.
</OBJECT>
</BODY>

No comments:

Post a Comment