-
Notifications
You must be signed in to change notification settings - Fork 982
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated examples to load pdfobject.js from unpkg CDN
- Loading branch information
Showing
33 changed files
with
32 additions
and
432 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ <h1>PDFObject Example: Specifying a URL containing an apostrophe</h1> | |
|
||
<div id="my-pdf"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
PDFObject.embed("/pdf/this one's fun.pdf", "#my-pdf"); | ||
</script> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ <h1>PDFObject Example: Embedding a PDF encoded as a Base64 string</h1> | |
|
||
<div id="my-pdf"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
let b64 = "data:application/pdf;base64,JVBERi0xLjMKMyAwIG9iago8PC9UeXBlIC9QYWdlCi9QYXJlbnQgMSAwIFIKL1Jlc291cmNlcyAyIDAgUgovQ29udGVudHMgNCAwIFI+PgplbmRvYmoKNCAwIG9iago8PC9GaWx0ZXIgL0ZsYXRlRGVjb2RlIC9MZW5ndGggMTAxPj4Kc3RyZWFtCnicFcytDoAgGEbhzlW8UQsCU5mVqcFk+G6AKf4F2YDJ7TvS2Z5wFBYmeKeRmSE0s4RUXAjQgYkKyaHlWkMPXQntqOi6I9ZxRrYRm38/F5LbkTwsjI2ubxFTuN+T16CnbH7L/xqsCmVuZHN0cmVhbQplbmRvYmoKMSAwIG9iago8PC9UeXBlIC9QYWdlcwovS2lkcyBbMyAwIFIgXQovQ291bnQgMQovTWVkaWFCb3ggWzAgMCA1OTUuMjggODQxLjg5XQo+PgplbmRvYmoKNSAwIG9iago8PC9UeXBlIC9Gb250Ci9CYXNlRm9udCAvSGVsdmV0aWNhCi9TdWJ0eXBlIC9UeXBlMQovRW5jb2RpbmcgL1dpbkFuc2lFbmNvZGluZwo+PgplbmRvYmoKMiAwIG9iago8PAovUHJvY1NldCBbL1BERiAvVGV4dCAvSW1hZ2VCIC9JbWFnZUMgL0ltYWdlSV0KL0ZvbnQgPDwKL0YxIDUgMCBSCj4+Ci9YT2JqZWN0IDw8Cj4+Cj4+CmVuZG9iago2IDAgb2JqCjw8Ci9Qcm9kdWNlciAoUHlGUERGIDEuNy4yIGh0dHA6Ly9weWZwZGYuZ29vZ2xlY29kZS5jb20vKQovQ3JlYXRpb25EYXRlIChEOjIwMjQwMjA4MDIyMTIzKQo+PgplbmRvYmoKNyAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMSAwIFIKL09wZW5BY3Rpb24gWzMgMCBSIC9GaXRIIG51bGxdCi9QYWdlTGF5b3V0IC9PbmVDb2x1bW4KPj4KZW5kb2JqCnhyZWYKMCA4CjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAwMDI1OCAwMDAwMCBuIAowMDAwMDAwNDQxIDAwMDAwIG4gCjAwMDAwMDAwMDkgMDAwMDAgbiAKMDAwMDAwMDA4NyAwMDAwMCBuIAowMDAwMDAwMzQ1IDAwMDAwIG4gCjAwMDAwMDA1NDUgMDAwMDAgbiAKMDAwMDAwMDY1NCAwMDAwMCBuIAp0cmFpbGVyCjw8Ci9TaXplIDgKL1Jvb3QgNyAwIFIKL0luZm8gNiAwIFIKPj4Kc3RhcnR4cmVmCjc1NwolJUVPRgo="; | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ <h1>PDFObject Example: Basic embed</h1> | |
|
||
<div id="my-pdf"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script>PDFObject.embed("/pdf/sample.pdf", "#my-pdf");</script> | ||
|
||
</body> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ <h1>PDFObject Example: Invoking conditional JavaScript upon successful embed (on | |
<div id="results"></div> | ||
<div id="pdf"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
document.querySelector(".embed-link").addEventListener("click", function (e){ | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ <h1>PDFObject Example: Invoking conditional JavaScript upon successful embed</h1 | |
|
||
<div id="pdf"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
let myPDF = PDFObject.embed("/pdf/sample-3pp.pdf", "#pdf", { | ||
pdfOpenParams: { | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ <h2>Reserved token</h2> | |
<p>Trying to use reserved token for the attribute key. The embed should work, and the custom attribute should be ignored.</p> | ||
<div id="pdf-reservedtoken"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
PDFObject.embed("/pdf/sample-3pp.pdf", "#pdf", { | ||
customAttribute: { key: "foo", value: "bar" } | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ <h1>PDFObject Example: Declining to provide a fallback</h1> | |
|
||
<p>If your browser doesn't support inline PDFs, you will see nothing except this message and the page title.</p> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
PDFObject.embed("/pdf/sample-3pp.pdf", "#my-pdf", { fallbackLink: false }); | ||
</script> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ <h1>PDFObject Example: Detection using navigator.pdfViewerEnabled</h1> | |
|
||
<div id="results"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
let status = (navigator.pdfViewerEnabled) ? "supports" : "does not support"; | ||
let el = document.querySelector("#results"); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ <h1>PDFObject Example: Detection of PDF support</h1> | |
|
||
<div id="results"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
let status = (PDFObject.supportsPDFs) ? "supports" : "does not support"; | ||
let el = document.querySelector("#results"); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ <h1>PDFObject Example: Embed two PDFs on one HTML page</h1> | |
<div id="pdf1"></div> | ||
<div id="pdf2"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
PDFObject.embed("/pdf/sample-3pp.pdf", "#pdf1", { | ||
page: 2, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
</head> | ||
|
||
<body> | ||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
PDFObject.embed("/pdf/sample-3pp.pdf"); | ||
</script> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
</head> | ||
|
||
<body> | ||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
PDFObject.embed("/pdf/sample-3pp.pdf", document.body, { | ||
pdfOpenParams: { | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
</head> | ||
|
||
<body> | ||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
PDFObject.embed("/pdf/sample-3pp.pdf", document.body); | ||
</script> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ <h1>PDFObject Example: Using Google Docs Viewer as a fallback</h1> | |
</ul> | ||
<div id="pdf"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
|
||
let url = "https://pdfobject.com/pdf/sample.pdf"; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ <h1>PDFObject Example: Embedding a PDF, with omitInlineStyles option set to true | |
|
||
<div id="pdf"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
PDFObject.embed("https://pdfobject.com/pdf/sample-3pp.pdf", "#pdf", { omitInlineStyles: true, id: "myID" }); | ||
</script> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ <h1>PDFObject Example: Simple embed, passing jQuery element, with CSS styles app | |
<div id="my-pdf"></div> | ||
|
||
<script src="https://code.jquery.com/jquery-3.7.1.slim.min.js" integrity="sha256-kmHvs0B+OpCW5GVHUNjv9rOmY0IvSIRcf7zGUDTDQM8=" crossorigin="anonymous"></script> | ||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
let $container = $("#my-pdf"); | ||
PDFObject.embed("/pdf/sample-3pp.pdf", $container); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ <h1>PDFObject Example: Simple embed, passing jQuery element</h1> | |
<div id="my-pdf"></div> | ||
|
||
<script src="https://code.jquery.com/jquery-3.7.1.slim.min.js" integrity="sha256-kmHvs0B+OpCW5GVHUNjv9rOmY0IvSIRcf7zGUDTDQM8=" crossorigin="anonymous"></script> | ||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
let $container = $("#my-pdf"); | ||
PDFObject.embed("/pdf/sample-3pp.pdf", $container); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ <h1>PDFObject Example: Simple embed passing vanilla HTML element, with CSS style | |
|
||
<div id="my-pdf"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
let container = document.querySelector("#my-pdf"); | ||
PDFObject.embed("/pdf/sample-3pp.pdf", container); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ <h1>PDFObject Example: Simple embed, passing vanilla HTML element</h1> | |
|
||
<div id="my-pdf"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
let container = document.querySelector("#my-pdf"); | ||
PDFObject.embed("/pdf/sample-3pp.pdf", container); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ <h1>PDFObject Example: Simple embed using CSS selector, with CSS styling applied | |
|
||
<div id="my-pdf"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
PDFObject.embed("/pdf/sample-3pp.pdf", "#my-pdf"); | ||
</script> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ <h1>PDFObject Example: Simple embed using CSS selector</h1> | |
|
||
<div id="my-pdf"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
PDFObject.embed("/pdf/sample-3pp.pdf", "#my-pdf"); | ||
</script> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -227,7 +227,7 @@ <h1>PDFObject Example: PDF Open Parameters</h1> | |
</div> | ||
</div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
|
||
let last_embedded = ""; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ <h1>PDFObject Example: PDF.js (forced) with querystring</h1> | |
|
||
<div id="pdf"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
let myPDF = PDFObject.embed("/pdf/file.php?item=sample-3pp", "#pdf", { | ||
page: 2, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ <h1>PDFObject Example: Using PDF.js to display the PDF</h1> | |
<div id="results"></div> | ||
<div id="pdf"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
let myPDF = PDFObject.embed("/pdf/sample-3pp.pdf", "#pdf", { | ||
page: 2, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ <h1>PDFObject Example: PDF.js fallback</h1> | |
<div id="results"></div> | ||
<div id="pdf"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
let myPDF = PDFObject.embed("/pdf/sample-3pp.pdf", "#pdf", { | ||
pdfOpenParams: { | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ <h1>PDFObject Example: Specifying PDF URL containing querystring, with PDF Open | |
|
||
<div id="my-pdf"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
PDFObject.embed("https://pwrk.us/sample-pdf/?file=pdf", "#my-pdf", { | ||
page: 2, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ <h1>PDFObject Example: Specifying PDF URL containing querystring</h1> | |
|
||
<div id="my-pdf"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
PDFObject.embed("https://pwrk.us/sample-pdf/?file=pdf", "#my-pdf"); | ||
</script> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ <h1>PDFObject Example: Replace one PDF with another</h1> | |
<div id="results"></div> | ||
<div id="pdf"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
let clickHandler = function (e){ | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ <h1>PDFObject Example: Setting the iframe's title attribute</h1> | |
|
||
<div id="my-pdf"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
PDFObject.embed("/pdf/sample-3pp.pdf", "#my-pdf", { | ||
title: "Sample PDF embed for demonstrating PDFObject" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ | |
<h1>PDFObject Example: Specifying custom fallback link</h1> | ||
<p>To see the fallback message, view this page on a mobile device or any other system that does not support inline PDFs.</p> | ||
<div id="my-pdf"></div> | ||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
let customFallback = "This is a custom fallback link that displays when the PDF can't be embedded. The PDF's URL can be embedded anywhere in this string using the shortcode [url]. <a href='[url]'>You can make a link</a> or display it as text like this: [url]."; | ||
PDFObject.embed("/pdf/sample-3pp.pdf", "#my-pdf", { fallbackLink: customFallback }); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ <h1>PDFObject Example: Specifying page number while also displaying thumbnails</ | |
|
||
<div id="my-container"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
var options = { | ||
page: "2", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ <h1>PDFObject Example: Specifying page number</h1> | |
|
||
<div id="my-container"></div> | ||
|
||
<script src="/pdfobject.js"></script> | ||
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script> | ||
<script> | ||
var options = { | ||
page: "2" | ||
|
Oops, something went wrong.