Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reorganization of files

Moving example pages to gh-pages
  • Loading branch information...
commit 5416f7a5002cb1cdc13b1aaddc4e84da6a792bbb 1 parent ed83cb5
@pipwerks authored
View
151 examples/conditional-js-advanced.html
@@ -1,151 +0,0 @@
-<!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: Conditional JavaScript invoked upon successful embed</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">
-<!--
-
-#pdf {
-}
-
-#pdf.embedded {
- width: 500px;
- height: 300px;
- margin: 2em auto;
- border: 10px solid #6699FF;
-}
-
-#pdf p {
- padding: 1em;
-}
-
-#pdf object {
- display: block;
- border: solid 1px #666;
-}
-
-#statement {
- padding: 1em;
- margin: 1em;
- border: solid 4px #FFF;
- font-size: medium;
- font-weight: bold;
-}
-
-.success {
- background: #00CC33;
- color: #FFFFFF;
-}
-
-.fail {
- background: #FF3366;
- color: #FFFFFF;
-}
-
--->
-</style>
-
-<script type="text/javascript" src="../code/pdfobject.js"></script>
-
-<script type="text/javascript">
-
-
-/*
-
-PDFObject returns a reference to the JavaScript object (pseudo 'class' instance).
-PDFObject.embed() returns a reference to the embedded HTML <object>.
-
-Knowing this, we store the references in two separate variables and perform
-actions with them. For this example, We'll store the PDFObject obj in 'pObj'
-and the HTML object in htmlObj.
-
-*/
-
-var pObj = new PDFObject({
-
- url: "pdf/sample.pdf",
- id: "myPDF",
-
- pdfOpenParams: {
-
- navpanes: 0,
- toolbar: 0,
- statusbar: 0,
- view: "FitV"
-
- }
-
-});
-
-//Note: the PDF has NOT been embedded yet because .embed() has not been invoked.
-
-
-function embed(){
-
- var s = document.getElementById("statement");
- var msg;
-
- document.getElementById("pdf").className = "embedded"; //Style the DIV
-
- var htmlObj = pObj.embed("pdf"); //Returns a reference to the HTML <object> or null if unsuccessful
-
- if(htmlObj){
- msg = "The PDF was successfully embedded!";
- s.className = "success";
- } else {
- msg = "It appears the embed didn't work.";
- s.className = "fail";
- }
-
- s.innerHTML = msg;
-
-}
-
-
-window.onload = function (){
-
- var s = document.getElementById("statement");
- var msg;
-
- if(pObj){
-
- var plugintype = pObj.get("pluginTypeFound");
- msg = "Type of PDF plugin found: " +plugintype;
-
- if(plugintype){
- msg += "<br/><a href='#' onclick='embed(); return false;'>Click here to embed the PDF!</a>";
- } else {
- msg += "<br/>Looks like we won't be able to embed your PDF! Doh!";
- s.className = "fail";
- }
-
- }
-
- s.innerHTML = msg;
-
-
-};
-
-</script>
-</head>
-
-<body>
-<h1>Embedding a PDF using PDFObject:<br />
-Conditional JavaScript invoked upon successful embed<br />
-(Advanced example)</h1>
-
-<p id="statement">This example uses a few lines of JavaScript wrapped in a <em>window.onload</em> statement, with a little CSS added to control the styling of the embedded element.</p>
-
-<div id="pdf"></div>
-
-<p><a href="/index.php">&laquo; Return to PDFObject home</a></p>
-
-</body>
-</html>
View
108 examples/conditional-js.html
@@ -1,108 +0,0 @@
-<!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: Conditional JavaScript invoked upon successful embed</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">
-<!--
-
-#pdf {
- width: 500px;
- height: 300px;
- margin: 2em auto;
- border: 10px solid #6699FF;
-}
-
-#pdf p {
- padding: 1em;
-}
-
-#pdf object {
- display: block;
- border: solid 1px #666;
-}
-
-#statement {
- padding: 1em;
- margin: 1em;
- border: solid 4px #FFF;
- font-size: medium;
- font-weight: bold;
-}
-
-.success {
- background: #00CC33;
- color: #FFFFFF;
-}
-
-.fail {
- background: #FF3366;
- color: #FFFFFF;
-}
-
--->
-</style>
-
-<script type="text/javascript" src="../code/pdfobject.js"></script>
-
-<script type="text/javascript">
-
- window.onload = function (){
-
- var msg;
- var s = document.getElementById("statement");
- var params = {
-
- url: "pdf/sample.pdf",
-
- pdfOpenParams: {
-
- navpanes: 0,
- toolbar: 0,
- statusbar: 0,
- view: "FitV"
-
- }
-
- };
-
- //Embed using element reference
- var el = document.getElementById("pdf");
- var myPDF = new PDFObject(params).embed(el);
-
- //Embed using ID string
- //var myPDF = new PDFObject(params).embed("pdf");
-
- if(myPDF){
- msg = "The PDF was successfully embedded!";
- s.className = "success";
- } else {
- msg = "It appears the embed didn't work.";
- s.className = "fail";
- }
-
- s.innerHTML = msg;
-
- };
-
-</script>
-</head>
-
-<body>
-<h1>Embedding a PDF using PDFObject:<br />
-Conditional JavaScript invoked upon successful embed</h1>
-
-<p id="statement">This example uses a few lines of JavaScript wrapped in a <em>window.onload</em> statement, with a little CSS added to control the styling of the embedded element.</p>
-
-<div id="pdf">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>
View
26 examples/css/examples.css
@@ -1,26 +0,0 @@
-@charset "UTF-8";
-
-body {
- font: small Arial, Helvetica, sans-serif;
- color: #454545;
- background: #F8F8F8;
- margin: 0px;
- padding: 2em;
-}
-
-h1 {
- font-weight: normal;
- font-size: x-large;
-}
-
-a:link, a:visited {
- color: #3333FF;
- text-decoration: none;
- border-bottom: 1px dotted #3333FF;
-}
-
-a:hover, a:visited:hover {
- color: #FF3366;
- text-decoration: none;
- border-bottom: 1px solid #FF3366;
-}
View
29 examples/full-window-searchterms.html
@@ -1,29 +0,0 @@
-<html>
- <head>
- <title>PDFObject example with search terms</title>
- <script type="text/javascript" src="../code/pdfobject.js"></script>
- <script type="text/javascript">
-
- window.onload = function (){
-
- var myPDF = new PDFObject({
-
- url: "pdf/sample.pdf",
- pdfOpenParams: {
- navpanes: 1,
- view: "FitV",
- pagemode: "thumbs",
- search: "lorem ipsum amet"
- }
-
- }).embed();
-
- };
-
- </script>
- </head>
-
- <body>
- <p>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></p>
- </body>
-</html>
View
28 examples/full-window.html
@@ -1,28 +0,0 @@
-<html>
- <head>
- <title>PDFObject example</title>
- <script type="text/javascript" src="../code/pdfobject.js"></script>
- <script type="text/javascript">
-
- window.onload = function (){
-
- var myPDF = new PDFObject({
-
- url: "pdf/sample.pdf",
- pdfOpenParams: {
- navpanes: 1,
- view: "FitV",
- pagemode: "thumbs"
- }
-
- }).embed();
-
- };
-
- </script>
- </head>
-
- <body>
- <p>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></p>
- </body>
-</html>
View
75 examples/generator-example.html
@@ -1,75 +0,0 @@
-<!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: Example created using generator</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">
-<!--
-
-#pdf {
- width: 500px;
- height: 300px;
- margin: 2em auto;
- border: 10px solid #6699FF;
-}
-
-#pdf p {
- padding: 1em;
-}
-
-#pdf object {
- display: block;
- border: solid 1px #666;
-}
-/*
-html {
- overflow: hidden;
- height: 100%;
-}
-
-object {
- display: block;
- height: 100%;
-}
-*/
-
--->
-</style>
-
-<script type="text/javascript" src="../code/pdfobject.js"></script>
-
-<!-- insert in the document <head> -->
-<script type='text/javascript'>
-
-function embedPDF(){
-
-var myPDF = new PDFObject({
-
- url: 'pdf/sample.pdf',
- pdfOpenParams: { view: 'Fit', search: 'lorem ipsum' }
-
- }).embed();
- }
-
- window.onload = embedPDF; //Feel free to replace window.onload if needed.
-
-</script>
-</head>
-
-<body>
-<h1>Embedding a PDF using PDFObject:<br />
-Simple example with PDF Open parameters and basic CSS</h1>
-<p>This example uses a few lines of JavaScript wrapped in a <em>window.onload</em> statement, with a little CSS added to control the styling of the embedded element.</p>
-
-<div id="pdf">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>
View
81 examples/multiple-PDFs.html
@@ -1,81 +0,0 @@
-<!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>
View
BIN  examples/pdf/pdf_open_parameters_acro8.pdf
Binary file not shown
View
BIN  examples/pdf/pdfobject.pdf
Binary file not shown
View
BIN  examples/pdf/sample.pdf
Binary file not shown
View
171 examples/replace-PDF-with-second-PDF.html
@@ -1,171 +0,0 @@
-<!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: Conditional JavaScript invoked upon successful embed</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">
-<!--
-
-#pdf {
-}
-
-#pdf.embedded {
- width: 500px;
- height: 300px;
- margin: 2em auto;
- border: 10px solid #6699FF;
-}
-
-#pdf p {
- padding: 1em;
-}
-
-#pdf object {
- display: block;
- border: solid 1px #666;
-}
-
-#statement {
- padding: 1em;
- margin: 1em;
- border: solid 4px #FFF;
- font-size: medium;
- font-weight: bold;
-}
-
-.success {
- background: #00CC33;
- color: #FFFFFF;
-}
-
-.fail {
- background: #FF3366;
- color: #FFFFFF;
-}
-
--->
-</style>
-
-<script type="text/javascript" src="../code/pdfobject.js"></script>
-
-<script type="text/javascript">
-
-
-/*
-
-PDFObject returns a reference to the JavaScript object (pseudo 'class' instance).
-PDFObject.embed() returns a reference to the embedded HTML <object>.
-
-Knowing this, we store the references in two separate variables and perform
-actions with them. For this example, We'll store the PDFObject obj in 'pObj'
-and the HTML object in htmlObj.
-
-*/
-
-var myobj = null;
-
-var pObj = new PDFObject({
-
- url: "pdf/sample.pdf",
- id: "myPDF",
-
- pdfOpenParams: {
-
- navpanes: 0,
- toolbar: 0,
- statusbar: 0,
- view: "FitV"
-
- }
-
-});
-
-//Note: the PDF has NOT been embedded yet because .embed() has not been invoked.
-
-
-function embed(){
-
- var s = document.getElementById("statement");
- var msg;
-
- document.getElementById("pdf").className = "embedded"; //Style the DIV
-
- var htmlObj = pObj.embed("pdf"); //Returns a reference to the HTML <object> or null if unsuccessful
-
- if(htmlObj){
- msg = "The PDF was successfully embedded!";
- s.className = "success";
- } else {
- msg = "It appears the embed didn't work.";
- s.className = "fail";
- }
-
- s.innerHTML = msg;
-
- return htmlObj;
-
-}
-
-
-function second(){
-
- var s = document.getElementById("statement");
-
- alert("myobj: " +myobj);
-
- if(myobj){
- alert("myobj.data: " +myobj.data);
- myobj.setAttribute("data", "pdf/pdf_open_parameters_acro8.pdf");
- alert("myobj.data: " +myobj.data);
- }
-
-}
-
-
-window.onload = function (){
-
- var s = document.getElementById("statement");
- var msg;
-
- if(pObj){
-
- var plugintype = pObj.get("pluginTypeFound");
- msg = "Type of PDF plugin found: " +plugintype;
-
- if(plugintype){
- myobj = embed();
- msg += "<br/><a href='#' onclick='second(); return false;'>Click here to embed the second PDF!</a>";
- } else {
- msg += "<br/>Looks like we won't be able to embed your PDF! Doh!";
- s.className = "fail";
- }
-
- }
-
- s.innerHTML = msg;
-
-
-};
-
-</script>
-</head>
-
-<body>
-<h1>Embedding a PDF using PDFObject:<br />
-Replacing originally embedded PDF with a new one
-</h1>
-
-<p id="statement"></p>
-
-<div id="pdf"></div>
-
-<p><a href="/index.php">&laquo; Return to PDFObject home</a></p>
-
-</body>
-</html>
View
18 examples/simplest-full-window.html
@@ -1,18 +0,0 @@
-<html>
- <head>
- <title>PDFObject example</title>
- <script type="text/javascript" src="../code/pdfobject.js"></script>
- <script type="text/javascript">
-
- window.onload = function (){
- var myPDF = new PDFObject({ url: "pdf/sample.pdf" }).embed();
- };
-
- </script>
- </head>
-
- <body>
- <p>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></p>
- </body>
-</html>
View
56 examples/simplest-styled.html
@@ -1,56 +0,0 @@
-<!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: Simple example with basic CSS</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">
-<!--
-
-#pdf {
- width: 500px;
- height: 300px;
- margin: 2em auto;
- border: 10px solid #6699FF;
-}
-
-#pdf p {
- padding: 1em;
-}
-
-#pdf object {
- display: block;
- border: solid 1px #666;
-}
-
--->
-</style>
-
-<script type="text/javascript" src="../code/pdfobject.js"></script>
-
-<script type="text/javascript">
-
-window.onload = function (){
-
- var success = new PDFObject({ url: "pdf/sample.pdf" }).embed("pdf");
-
-};
-
-</script>
-</head>
-
-<body>
-<h1>Embedding a PDF using PDFObject: Simple example with basic CSS</h1>
-<p>This example uses one line of JavaScript wrapped in a <em>window.onload</em> statement, with a little CSS added to control the styling of the embedded element.</p>
-
-<div id="pdf">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>
View
39 examples/simplest.html
@@ -1,39 +0,0 @@
-<!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: Simplest example!</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" />
-
-<script type="text/javascript" src="../code/pdfobject.js"></script>
-
-<script type="text/javascript">
-
-window.onload = function (){
-
- var success = new PDFObject({ url: "pdf/sample.pdf" }).embed("pdf");
-
-};
-
-</script>
-
-<style type="text/css">
-#pdf { height: 300px; }
-</style>
-
-</head>
-
-<body>
-<h1>Embedding a PDF using PDFObject: Simplest example!</h1>
-<p>This example uses one line of JavaScript wrapped in a <em>window.onload</em> statement.</p>
-
-<div id="pdf">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>
View
68 examples/styled-no-toolbars.html
@@ -1,68 +0,0 @@
-<!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: Simple example with PDF Open parameters and basic CSS</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">
-<!--
-
-#pdf {
- width: 500px;
- height: 300px;
- margin: 2em auto;
- border: 10px solid #6699FF;
-}
-
-#pdf p {
- padding: 1em;
-}
-
-#pdf object {
- display: block;
- border: solid 1px #666;
-}
-
--->
-</style>
-
-<script type="text/javascript" src="../code/pdfobject.js"></script>
-
-<script type="text/javascript">
-
- window.onload = function (){
-
- var myPDF = new PDFObject({
-
- url: "pdf/sample.pdf",
- pdfOpenParams: {
- navpanes: 0,
- toolbar: 0,
- statusbar: 0,
- view: "FitV"
- }
-
- }).embed("pdf");
-
- };
-
-</script>
-</head>
-
-<body>
-<h1>Embedding a PDF using PDFObject:<br />
-Simple example with PDF Open parameters and basic CSS</h1>
-<h2>&quot;No toolbars&quot; version</h2>
-<p>This example uses a few lines of JavaScript wrapped in a <em>window.onload</em> statement, with a little CSS added to control the styling of the embedded element.</p>
-
-<div id="pdf">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>
View
66 examples/styled.html
@@ -1,66 +0,0 @@
-<!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: Simple example with basic CSS</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">
-<!--
-
-#pdf {
- width: 500px;
- height: 300px;
- margin: 2em auto;
- border: 10px solid #6699FF;
-}
-
-#pdf p {
- padding: 1em;
-}
-
-#pdf object {
- display: block;
- border: solid 1px #666;
-}
-
--->
-</style>
-
-<script type="text/javascript" src="../code/pdfobject.js"></script>
-
-<script type="text/javascript">
-
- window.onload = function (){
-
- var myPDF = new PDFObject({
-
- url: "pdf/sample.pdf",
- pdfOpenParams: {
- navpanes: 1,
- view: "FitV",
- pagemode: "thumbs"
- }
-
- }).embed("pdf");
-
- };
-
-</script>
-</head>
-
-<body>
-<h1>Embedding a PDF using PDFObject:<br />
-Simple example with PDF Open parameters and basic CSS</h1>
-<p>This example uses a few lines of JavaScript wrapped in a <em>window.onload</em> statement, with a little CSS added to control the styling of the embedded element.</p>
-
-<div id="pdf">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>
View
0  code/pdfobject.js → pdfobject.js
File renamed without changes
View
0  code/pdfobject.min.js → pdfobject.min.js
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.