Skip to content
This repository
tree: ed83cb5bd8
Fetching contributors…

Cannot retrieve contributors at this time

file 81 lines (53 sloc) 1.89 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Embedding a PDF using PDFObject: Embed two PDFs on one HTML page</title>

<!-- This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com) -->

<!-- CSS for basic page styling, not related to example -->
<link href="css/examples.css" rel="stylesheet" type="text/css" />

<style type="text/css">
<!--

#pdf1, #pdf2 {
width: 500px;
height: 300px;
margin: 2em auto;
border: 10px solid #6699FF;
}

#pdf1 p, #pdf2 p {
   padding: 1em;
}

#pdf1 object, #pdf2 object {
   display: block;
   border: solid 1px #666;
}

-->
</style>


<script type="text/javascript" src="../code/pdfobject.js"></script>

<script type="text/javascript">

var pdfOpen_params = {

navpanes: 1,
view: "FitH",
pagemode: "thumbs"

};

var pdfAttributes = {

url: "pdf/sample.pdf",
pdfOpenParams: pdfOpen_params

};

window.onload = function (){

var pdf = new PDFObject(pdfAttributes);
pdf.embed("pdf1");

var pdf2 = new PDFObject({ url: "pdf/sample.pdf" });
pdf2.embed("pdf2");


};

</script>

</head>

<body>
<h1>Embedding multiple PDFs using PDFObject</h1>
<p>Multiple PDFs can be embedded inside a single HTML document. Note that this is not a recommended practice and may result in buggy behavior from Adobe Reader.</p>
<p>&nbsp;</p>

<div id="pdf1">It appears you don't have Adobe Reader or PDF support in this web browser. <a href="pdf/sample.pdf">Click here to download the PDF</a></div>

<div id="pdf2">It appears you don't have Adobe Reader or PDF support in this web browser. <a href="pdf/sample.pdf">Click here to download the PDF</a></div>

<p><a href="/index.php">&laquo; Return to PDFObject home</a></p>

</body>
</html>
Something went wrong with that request. Please try again.