-
Notifications
You must be signed in to change notification settings - Fork 987
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
141 additions
and
70 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
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
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
<!-- | ||
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com) | ||
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/ | ||
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/ | ||
Documentation: http://pdfobject.com | ||
Source code: https://github.com/pipwerks/PDFObject | ||
--> | ||
|
@@ -35,7 +35,7 @@ <h1>PDFObject Example: Specifying a URL containing an apostrophe</h1> | |
|
||
<div id="my-pdf"></div> | ||
|
||
<script src="https://unpkg.com/[email protected].0/pdfobject.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/pdfobject.min.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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<title>PDFObject Example: Embedding a PDF encoded as a Base64 string, with custom filename</title> | ||
<!-- | ||
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com) | ||
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/ | ||
Documentation: http://pdfobject.com | ||
Source code: https://github.com/pipwerks/PDFObject | ||
--> | ||
|
||
<!-- site analytics for pdfobject.com, do not copy into your code --> | ||
<script defer data-domain="pdfobject.com" src="https://plausible.io/js/script.js"></script> | ||
|
||
<style> | ||
/* basic page styling */ | ||
body { font: 15px/120% sans-serif; color: #555; background: #fff; padding: 2rem; margin: 0; } | ||
|
||
/* Give the PDF container some basic styling */ | ||
.pdfobject-container { | ||
max-width: 1000px; | ||
width: 100%; | ||
height: 600px; | ||
border: 1px solid rgba(0,0,0,.2); | ||
margin: 0; | ||
} | ||
</style> | ||
|
||
</head> | ||
|
||
<body> | ||
<h1>PDFObject Example: Embedding a PDF encoded as a Base64 string, with custom filename</h1> | ||
<p>If the PDF can't be embedded, PDFObject will display a "Download PDF" link. This example illustrates how you can customize the filename of the downloaded Base64 PDF.</p> | ||
|
||
<div id="my-pdf"></div> | ||
|
||
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script> | ||
<script> | ||
let b64 = "data:application/pdf;filename=InlineNameHere.pdf;base64,JVBERi0xLjMKMyAwIG9iago8PC9UeXBlIC9QYWdlCi9QYXJlbnQgMSAwIFIKL1Jlc291cmNlcyAyIDAgUgovQ29udGVudHMgNCAwIFI+PgplbmRvYmoKNCAwIG9iago8PC9GaWx0ZXIgL0ZsYXRlRGVjb2RlIC9MZW5ndGggMTAxPj4Kc3RyZWFtCnicFcytDoAgGEbhzlW8UQsCU5mVqcFk+G6AKf4F2YDJ7TvS2Z5wFBYmeKeRmSE0s4RUXAjQgYkKyaHlWkMPXQntqOi6I9ZxRrYRm38/F5LbkTwsjI2ubxFTuN+T16CnbH7L/xqsCmVuZHN0cmVhbQplbmRvYmoKMSAwIG9iago8PC9UeXBlIC9QYWdlcwovS2lkcyBbMyAwIFIgXQovQ291bnQgMQovTWVkaWFCb3ggWzAgMCA1OTUuMjggODQxLjg5XQo+PgplbmRvYmoKNSAwIG9iago8PC9UeXBlIC9Gb250Ci9CYXNlRm9udCAvSGVsdmV0aWNhCi9TdWJ0eXBlIC9UeXBlMQovRW5jb2RpbmcgL1dpbkFuc2lFbmNvZGluZwo+PgplbmRvYmoKMiAwIG9iago8PAovUHJvY1NldCBbL1BERiAvVGV4dCAvSW1hZ2VCIC9JbWFnZUMgL0ltYWdlSV0KL0ZvbnQgPDwKL0YxIDUgMCBSCj4+Ci9YT2JqZWN0IDw8Cj4+Cj4+CmVuZG9iago2IDAgb2JqCjw8Ci9Qcm9kdWNlciAoUHlGUERGIDEuNy4yIGh0dHA6Ly9weWZwZGYuZ29vZ2xlY29kZS5jb20vKQovQ3JlYXRpb25EYXRlIChEOjIwMjQwMjA4MDIyMTIzKQo+PgplbmRvYmoKNyAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMSAwIFIKL09wZW5BY3Rpb24gWzMgMCBSIC9GaXRIIG51bGxdCi9QYWdlTGF5b3V0IC9PbmVDb2x1bW4KPj4KZW5kb2JqCnhyZWYKMCA4CjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAwMDI1OCAwMDAwMCBuIAowMDAwMDAwNDQxIDAwMDAwIG4gCjAwMDAwMDAwMDkgMDAwMDAgbiAKMDAwMDAwMDA4NyAwMDAwMCBuIAowMDAwMDAwMzQ1IDAwMDAwIG4gCjAwMDAwMDA1NDUgMDAwMDAgbiAKMDAwMDAwMDY1NCAwMDAwMCBuIAp0cmFpbGVyCjw8Ci9TaXplIDgKL1Jvb3QgNyAwIFIKL0luZm8gNiAwIFIKPj4Kc3RhcnR4cmVmCjc1NwolJUVPRgo="; | ||
|
||
PDFObject.embed(b64, "#my-pdf", { | ||
fallbackFileNameForBase64: "CustomFilename.pdf" | ||
}); | ||
</script> | ||
|
||
</body> | ||
</html> |
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<title>PDFObject Example: Embedding a PDF encoded as a Base64 string</title> | ||
<!-- | ||
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com) | ||
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/ | ||
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/ | ||
Documentation: http://pdfobject.com | ||
Source code: https://github.com/pipwerks/PDFObject | ||
--> | ||
|
@@ -35,7 +35,7 @@ <h1>PDFObject Example: Embedding a PDF encoded as a Base64 string</h1> | |
|
||
<div id="my-pdf"></div> | ||
|
||
<script src="https://unpkg.com/[email protected].0/pdfobject.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/pdfobject.min.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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<title>PDFObject Example: Basic embed</title> | ||
<!-- | ||
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com) | ||
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/ | ||
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/ | ||
Documentation: http://pdfobject.com | ||
Source code: https://github.com/pipwerks/PDFObject | ||
--> | ||
|
@@ -28,7 +28,7 @@ <h1>PDFObject Example: Basic embed</h1> | |
|
||
<div id="my-pdf"></div> | ||
|
||
<script src="https://unpkg.com/[email protected].0/pdfobject.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/pdfobject.min.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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<title>PDFObject Example: Invoking conditional JavaScript upon successful embed (onclick)</title> | ||
<!-- | ||
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com) | ||
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/ | ||
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/ | ||
Documentation: http://pdfobject.com | ||
Source code: https://github.com/pipwerks/PDFObject | ||
--> | ||
|
@@ -42,7 +42,7 @@ <h1>PDFObject Example: Invoking conditional JavaScript upon successful embed (on | |
<div id="results"></div> | ||
<div id="pdf"></div> | ||
|
||
<script src="https://unpkg.com/[email protected].0/pdfobject.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/pdfobject.min.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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<title>PDFObject Example: Invoking conditional JavaScript upon successful embed</title> | ||
<!-- | ||
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com) | ||
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/ | ||
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/ | ||
Documentation: http://pdfobject.com | ||
Source code: https://github.com/pipwerks/PDFObject | ||
--> | ||
|
@@ -41,7 +41,7 @@ <h1>PDFObject Example: Invoking conditional JavaScript upon successful embed</h1 | |
|
||
<div id="pdf"></div> | ||
|
||
<script src="https://unpkg.com/[email protected].0/pdfobject.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/pdfobject.min.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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<title>PDFObject Example: Specifying custom attribute</title> | ||
<!-- | ||
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com) | ||
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/ | ||
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/ | ||
Documentation: http://pdfobject.com | ||
Source code: https://github.com/pipwerks/PDFObject | ||
--> | ||
|
@@ -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="https://unpkg.com/[email protected].0/pdfobject.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/pdfobject.min.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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<title>PDFObject Example: Declining to provide a fallback</title> | ||
<!-- | ||
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com) | ||
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/ | ||
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/ | ||
Documentation: http://pdfobject.com | ||
Source code: https://github.com/pipwerks/PDFObject | ||
--> | ||
|
@@ -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="https://unpkg.com/[email protected].0/pdfobject.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/pdfobject.min.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
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
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
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
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<title>PDFObject Example: Detection using navigator.pdfViewerEnabled</title> | ||
<!-- | ||
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com) | ||
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/ | ||
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/ | ||
Documentation: http://pdfobject.com | ||
Source code: https://github.com/pipwerks/PDFObject | ||
--> | ||
|
@@ -30,7 +30,7 @@ <h1>PDFObject Example: Detection using navigator.pdfViewerEnabled</h1> | |
|
||
<div id="results"></div> | ||
|
||
<script src="https://unpkg.com/[email protected].0/pdfobject.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/pdfobject.min.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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<title>PDFObject Example: Detection of PDF support</title> | ||
<!-- | ||
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com) | ||
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/ | ||
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/ | ||
Documentation: http://pdfobject.com | ||
Source code: https://github.com/pipwerks/PDFObject | ||
--> | ||
|
@@ -29,7 +29,7 @@ <h1>PDFObject Example: Detection of PDF support</h1> | |
|
||
<div id="results"></div> | ||
|
||
<script src="https://unpkg.com/[email protected].0/pdfobject.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/pdfobject.min.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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<title>PDFObject Example: Embed two PDFs on one HTML page</title> | ||
<!-- | ||
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com) | ||
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/ | ||
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/ | ||
Documentation: http://pdfobject.com | ||
Source code: https://github.com/pipwerks/PDFObject | ||
--> | ||
|
@@ -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="https://unpkg.com/[email protected].0/pdfobject.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/pdfobject.min.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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<title>PDFObject Example: Full-browser embed (no selector specified)</title> | ||
<!-- | ||
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com) | ||
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/ | ||
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/ | ||
Documentation: http://pdfobject.com | ||
Source code: https://github.com/pipwerks/PDFObject | ||
--> | ||
|
@@ -16,7 +16,7 @@ | |
</head> | ||
|
||
<body> | ||
<script src="https://unpkg.com/[email protected].0/pdfobject.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/pdfobject.min.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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<title>PDFObject Example: Full-browser embed (explicit selector) with PDF Open Params specified</title> | ||
<!-- | ||
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com) | ||
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/ | ||
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/ | ||
Documentation: http://pdfobject.com | ||
Source code: https://github.com/pipwerks/PDFObject | ||
--> | ||
|
@@ -16,7 +16,7 @@ | |
</head> | ||
|
||
<body> | ||
<script src="https://unpkg.com/[email protected].0/pdfobject.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/pdfobject.min.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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<title>PDFObject Example: Full-browser embed (explicit selector)</title> | ||
<!-- | ||
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com) | ||
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/ | ||
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/ | ||
Documentation: http://pdfobject.com | ||
Source code: https://github.com/pipwerks/PDFObject | ||
--> | ||
|
@@ -16,7 +16,7 @@ | |
</head> | ||
|
||
<body> | ||
<script src="https://unpkg.com/[email protected].0/pdfobject.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/pdfobject.min.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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<title>PDFObject Example: Using Google Docs Viewer as a fallback</title> | ||
<!-- | ||
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com) | ||
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/ | ||
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/ | ||
Documentation: http://pdfobject.com | ||
Source code: https://github.com/pipwerks/PDFObject | ||
--> | ||
|
@@ -57,7 +57,7 @@ <h1>PDFObject Example: Using Google Docs Viewer as a fallback</h1> | |
</ul> | ||
<div id="pdf"></div> | ||
|
||
<script src="https://unpkg.com/[email protected].0/pdfobject.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/pdfobject.min.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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<title>PDFObject Example: Embedding a PDF, with omitInlineStyles option set to true</title> | ||
<!-- | ||
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com) | ||
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/ | ||
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/ | ||
Documentation: http://pdfobject.com | ||
Source code: https://github.com/pipwerks/PDFObject | ||
--> | ||
|
@@ -30,7 +30,7 @@ <h1>PDFObject Example: Embedding a PDF, with omitInlineStyles option set to true | |
|
||
<div id="pdf"></div> | ||
|
||
<script src="https://unpkg.com/[email protected].0/pdfobject.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/pdfobject.min.js"></script> | ||
<script> | ||
PDFObject.embed("https://pdfobject.com/pdf/sample-3pp.pdf", "#pdf", { omitInlineStyles: true, id: "myID" }); | ||
</script> | ||
|
Oops, something went wrong.