Created
February 4, 2010 14:50
-
-
Save mazuhl/294694 to your computer and use it in GitHub Desktop.
Embedding a PDF into a webpage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- using <object> (doesn't work in IE) --> | |
<object height="450" width="600" type="application/pdf" data="/attachment/hello.pdf"> | |
<h2>This content requires a PDF plugin</h2> | |
<p>View the PDF file here: <a href="/attachment/hello.pdf">hello.pdf</a></p> | |
</object> | |
<!-- using an iframe (does work in IE) pass options in the query string --> | |
<iframe height="900" width="99%" src="/attachment/hello.pdf#toolbar=0&scrollbar=0&navpanes=0"> </iframe> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment