Embed PDF File

Embed Adobe PDF files internally or externally on a webpage.

CSS/JS files (add code to <HEAD> section):

NO JS/CSS files required.
          

Embed PDF

View code:


<!-- DC PDF Embed Start -->
<iframe src="http://docs.google.com/viewer?url=http://pimg.co/sc-samples/sample.pdf&embedded=true" style="width:600px; height:500px;" frameborder="0">
	Your browser should support iFrame to view this PDF document</iframe>
<!-- DC PDF Embed End -->

Parameters:
---------------------
url - path to PDF file
embedded (true/false) - embed into page
width - width of pdf frame
height - height of pdf frame

PDF - Open External

View PDF File  (opens new window)

View code:


<!-- DC PDF Embed Start -->
<a href="http://docs.google.com/viewer?url=http://pimg.co/sc-samples/sample.pdf" target="_blank">View PDF File</a>
<!-- DC PDF Embed End -->

Parameters:
---------------------
url - path to PDF file



© TemplateAccess