Tuesday, October 29, 2013

Embedding Pdf files in web pages

There are numerous ways to embed pdf files in a web page. You can use services like Scribd or Youblisher to create embeddable pdf views or flipbooks.

However, the fastest and easiest way to embed a pdf file in my oppinion is to use google to display it.

Use the following code tailored to your needs to display your file:

 <iframe src="http://docs.google.com/gview?url=http://example.com/pdf/mypdf.pdf&embedded=true" style="width:960px; height:600px;" frameborder="0"></iframe>