Skip to content

Commit 73d27a4

Browse files
committed
Update docs for pdfobject 2.3.1
1 parent a6c58ef commit 73d27a4

40 files changed

+141
-70
lines changed

docs/api/changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ outline: deep
44

55
# Changelog
66

7+
## 2.3.1 (February 2025)
8+
- Added `fallbackFileNameForBase64` option. If the browser doesn't support PDF embeds, and the PDF is a base64 file, this option will enable the developer to specify the filename for the downloaded PDF. Previously, the filename was hardcoded to 'file.pdf'. Thanks to Joshua Newall (@imjosh) for the contribution.
9+
710
## 2.3 (February 2024)
811
- Removed `<embed>` in favor of `<iframe>`. PDFObject had previously defaulted to an `<embed>` element, but over time it has become apparent the superior solution is `<iframe>`. It's universally supported, and does not suffer from `<embed>`'s odd quirks and spotty support. This should make PDFObject more consistent and robust across platforms.
912
- As a result of removing `<embed>` and redefining the detection logic, some PDFObject options have become obsolete. They are safe to keep in your code (will not throw errors), but are no longer used by PDFObject. The deprecated options are: `assumptionMode`, `forceIframe`, and `supportRedirect`.

docs/api/index.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,25 @@ Any string entered here will be inserted into the target element when the browse
121121

122122
<br/>
123123

124+
### fallbackFileNameForBase64
125+
[string]. Default: `"file.pdf"`
126+
127+
If you're trying to embed a base64 PDF but the browser doesn't support inline PDFs, the user will see a download link for the PDF. This option enable syou to set a custom filename for that downloaded base64 PDF.
128+
129+
```js
130+
var options = {
131+
fallbackFileNameForBase64: "My custom fielname.pdf"
132+
};
133+
PDFObject.embed("myfile.pdf", "#my-container", options);
134+
//If browser doesn't support inline PDFs, outputs:
135+
//<p>This is a <a href='myfile.pdf'>fallback link</a></p>
136+
```
137+
138+
**Demo:** [Embedding a PDF encoded as a Base64 string, with custom filename](/examples/base64-filename.html){target=_blank}
139+
140+
<br/>
141+
142+
124143
### pdfOpenParams
125144
[object]. Default: `null`
126145

docs/public/examples/apostrophe-in-filename.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<!--
99
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
10-
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/
10+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
1111
Documentation: http://pdfobject.com
1212
Source code: https://github.com/pipwerks/PDFObject
1313
-->
@@ -35,7 +35,7 @@ <h1>PDFObject Example: Specifying a URL containing an apostrophe</h1>
3535

3636
<div id="my-pdf"></div>
3737

38-
<script src="https://unpkg.com/pdfobject@2.3.0/pdfobject.min.js"></script>
38+
<script src="https://unpkg.com/pdfobject@2.3.1/pdfobject.min.js"></script>
3939
<script>
4040
PDFObject.embed("/pdf/this one's fun.pdf", "#my-pdf");
4141
</script>
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<title>PDFObject Example: Embedding a PDF encoded as a Base64 string, with custom filename</title>
7+
<!--
8+
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
9+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
10+
Documentation: http://pdfobject.com
11+
Source code: https://github.com/pipwerks/PDFObject
12+
-->
13+
14+
<!-- site analytics for pdfobject.com, do not copy into your code -->
15+
<script defer data-domain="pdfobject.com" src="https://plausible.io/js/script.js"></script>
16+
17+
<style>
18+
/* basic page styling */
19+
body { font: 15px/120% sans-serif; color: #555; background: #fff; padding: 2rem; margin: 0; }
20+
21+
/* Give the PDF container some basic styling */
22+
.pdfobject-container {
23+
max-width: 1000px;
24+
width: 100%;
25+
height: 600px;
26+
border: 1px solid rgba(0,0,0,.2);
27+
margin: 0;
28+
}
29+
</style>
30+
31+
</head>
32+
33+
<body>
34+
<h1>PDFObject Example: Embedding a PDF encoded as a Base64 string, with custom filename</h1>
35+
<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>
36+
37+
<div id="my-pdf"></div>
38+
39+
<script src="https://unpkg.com/pdfobject@2.3.1/pdfobject.min.js"></script>
40+
<script>
41+
let b64 = "data:application/pdf;filename=InlineNameHere.pdf;base64,JVBERi0xLjMKMyAwIG9iago8PC9UeXBlIC9QYWdlCi9QYXJlbnQgMSAwIFIKL1Jlc291cmNlcyAyIDAgUgovQ29udGVudHMgNCAwIFI+PgplbmRvYmoKNCAwIG9iago8PC9GaWx0ZXIgL0ZsYXRlRGVjb2RlIC9MZW5ndGggMTAxPj4Kc3RyZWFtCnicFcytDoAgGEbhzlW8UQsCU5mVqcFk+G6AKf4F2YDJ7TvS2Z5wFBYmeKeRmSE0s4RUXAjQgYkKyaHlWkMPXQntqOi6I9ZxRrYRm38/F5LbkTwsjI2ubxFTuN+T16CnbH7L/xqsCmVuZHN0cmVhbQplbmRvYmoKMSAwIG9iago8PC9UeXBlIC9QYWdlcwovS2lkcyBbMyAwIFIgXQovQ291bnQgMQovTWVkaWFCb3ggWzAgMCA1OTUuMjggODQxLjg5XQo+PgplbmRvYmoKNSAwIG9iago8PC9UeXBlIC9Gb250Ci9CYXNlRm9udCAvSGVsdmV0aWNhCi9TdWJ0eXBlIC9UeXBlMQovRW5jb2RpbmcgL1dpbkFuc2lFbmNvZGluZwo+PgplbmRvYmoKMiAwIG9iago8PAovUHJvY1NldCBbL1BERiAvVGV4dCAvSW1hZ2VCIC9JbWFnZUMgL0ltYWdlSV0KL0ZvbnQgPDwKL0YxIDUgMCBSCj4+Ci9YT2JqZWN0IDw8Cj4+Cj4+CmVuZG9iago2IDAgb2JqCjw8Ci9Qcm9kdWNlciAoUHlGUERGIDEuNy4yIGh0dHA6Ly9weWZwZGYuZ29vZ2xlY29kZS5jb20vKQovQ3JlYXRpb25EYXRlIChEOjIwMjQwMjA4MDIyMTIzKQo+PgplbmRvYmoKNyAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMSAwIFIKL09wZW5BY3Rpb24gWzMgMCBSIC9GaXRIIG51bGxdCi9QYWdlTGF5b3V0IC9PbmVDb2x1bW4KPj4KZW5kb2JqCnhyZWYKMCA4CjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAwMDI1OCAwMDAwMCBuIAowMDAwMDAwNDQxIDAwMDAwIG4gCjAwMDAwMDAwMDkgMDAwMDAgbiAKMDAwMDAwMDA4NyAwMDAwMCBuIAowMDAwMDAwMzQ1IDAwMDAwIG4gCjAwMDAwMDA1NDUgMDAwMDAgbiAKMDAwMDAwMDY1NCAwMDAwMCBuIAp0cmFpbGVyCjw8Ci9TaXplIDgKL1Jvb3QgNyAwIFIKL0luZm8gNiAwIFIKPj4Kc3RhcnR4cmVmCjc1NwolJUVPRgo=";
42+
43+
PDFObject.embed(b64, "#my-pdf", {
44+
fallbackFileNameForBase64: "CustomFilename.pdf"
45+
});
46+
</script>
47+
48+
</body>
49+
</html>

docs/public/examples/base64.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>PDFObject Example: Embedding a PDF encoded as a Base64 string</title>
77
<!--
88
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
9-
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/
9+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
1010
Documentation: http://pdfobject.com
1111
Source code: https://github.com/pipwerks/PDFObject
1212
-->
@@ -35,7 +35,7 @@ <h1>PDFObject Example: Embedding a PDF encoded as a Base64 string</h1>
3535

3636
<div id="my-pdf"></div>
3737

38-
<script src="https://unpkg.com/pdfobject@2.3.0/pdfobject.min.js"></script>
38+
<script src="https://unpkg.com/pdfobject@2.3.1/pdfobject.min.js"></script>
3939
<script>
4040
let b64 = "data:application/pdf;base64,JVBERi0xLjMKMyAwIG9iago8PC9UeXBlIC9QYWdlCi9QYXJlbnQgMSAwIFIKL1Jlc291cmNlcyAyIDAgUgovQ29udGVudHMgNCAwIFI+PgplbmRvYmoKNCAwIG9iago8PC9GaWx0ZXIgL0ZsYXRlRGVjb2RlIC9MZW5ndGggMTAxPj4Kc3RyZWFtCnicFcytDoAgGEbhzlW8UQsCU5mVqcFk+G6AKf4F2YDJ7TvS2Z5wFBYmeKeRmSE0s4RUXAjQgYkKyaHlWkMPXQntqOi6I9ZxRrYRm38/F5LbkTwsjI2ubxFTuN+T16CnbH7L/xqsCmVuZHN0cmVhbQplbmRvYmoKMSAwIG9iago8PC9UeXBlIC9QYWdlcwovS2lkcyBbMyAwIFIgXQovQ291bnQgMQovTWVkaWFCb3ggWzAgMCA1OTUuMjggODQxLjg5XQo+PgplbmRvYmoKNSAwIG9iago8PC9UeXBlIC9Gb250Ci9CYXNlRm9udCAvSGVsdmV0aWNhCi9TdWJ0eXBlIC9UeXBlMQovRW5jb2RpbmcgL1dpbkFuc2lFbmNvZGluZwo+PgplbmRvYmoKMiAwIG9iago8PAovUHJvY1NldCBbL1BERiAvVGV4dCAvSW1hZ2VCIC9JbWFnZUMgL0ltYWdlSV0KL0ZvbnQgPDwKL0YxIDUgMCBSCj4+Ci9YT2JqZWN0IDw8Cj4+Cj4+CmVuZG9iago2IDAgb2JqCjw8Ci9Qcm9kdWNlciAoUHlGUERGIDEuNy4yIGh0dHA6Ly9weWZwZGYuZ29vZ2xlY29kZS5jb20vKQovQ3JlYXRpb25EYXRlIChEOjIwMjQwMjA4MDIyMTIzKQo+PgplbmRvYmoKNyAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMSAwIFIKL09wZW5BY3Rpb24gWzMgMCBSIC9GaXRIIG51bGxdCi9QYWdlTGF5b3V0IC9PbmVDb2x1bW4KPj4KZW5kb2JqCnhyZWYKMCA4CjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAwMDI1OCAwMDAwMCBuIAowMDAwMDAwNDQxIDAwMDAwIG4gCjAwMDAwMDAwMDkgMDAwMDAgbiAKMDAwMDAwMDA4NyAwMDAwMCBuIAowMDAwMDAwMzQ1IDAwMDAwIG4gCjAwMDAwMDA1NDUgMDAwMDAgbiAKMDAwMDAwMDY1NCAwMDAwMCBuIAp0cmFpbGVyCjw8Ci9TaXplIDgKL1Jvb3QgNyAwIFIKL0luZm8gNiAwIFIKPj4Kc3RhcnR4cmVmCjc1NwolJUVPRgo=";
4141

docs/public/examples/basic.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>PDFObject Example: Basic embed</title>
77
<!--
88
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
9-
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/
9+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
1010
Documentation: http://pdfobject.com
1111
Source code: https://github.com/pipwerks/PDFObject
1212
-->
@@ -28,7 +28,7 @@ <h1>PDFObject Example: Basic embed</h1>
2828

2929
<div id="my-pdf"></div>
3030

31-
<script src="https://unpkg.com/pdfobject@2.3.0/pdfobject.min.js"></script>
31+
<script src="https://unpkg.com/pdfobject@2.3.1/pdfobject.min.js"></script>
3232
<script>PDFObject.embed("/pdf/sample.pdf", "#my-pdf");</script>
3333

3434
</body>

docs/public/examples/conditional-js-advanced.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>PDFObject Example: Invoking conditional JavaScript upon successful embed (onclick)</title>
77
<!--
88
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
9-
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/
9+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
1010
Documentation: http://pdfobject.com
1111
Source code: https://github.com/pipwerks/PDFObject
1212
-->
@@ -42,7 +42,7 @@ <h1>PDFObject Example: Invoking conditional JavaScript upon successful embed (on
4242
<div id="results"></div>
4343
<div id="pdf"></div>
4444

45-
<script src="https://unpkg.com/pdfobject@2.3.0/pdfobject.min.js"></script>
45+
<script src="https://unpkg.com/pdfobject@2.3.1/pdfobject.min.js"></script>
4646
<script>
4747
document.querySelector(".embed-link").addEventListener("click", function (e){
4848

docs/public/examples/conditional-js.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>PDFObject Example: Invoking conditional JavaScript upon successful embed</title>
77
<!--
88
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
9-
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/
9+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
1010
Documentation: http://pdfobject.com
1111
Source code: https://github.com/pipwerks/PDFObject
1212
-->
@@ -41,7 +41,7 @@ <h1>PDFObject Example: Invoking conditional JavaScript upon successful embed</h1
4141

4242
<div id="pdf"></div>
4343

44-
<script src="https://unpkg.com/pdfobject@2.3.0/pdfobject.min.js"></script>
44+
<script src="https://unpkg.com/pdfobject@2.3.1/pdfobject.min.js"></script>
4545
<script>
4646
let myPDF = PDFObject.embed("/pdf/sample-3pp.pdf", "#pdf", {
4747
pdfOpenParams: {

docs/public/examples/custom-attribute.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>PDFObject Example: Specifying custom attribute</title>
77
<!--
88
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
9-
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/
9+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
1010
Documentation: http://pdfobject.com
1111
Source code: https://github.com/pipwerks/PDFObject
1212
-->
@@ -38,7 +38,7 @@ <h2>Reserved token</h2>
3838
<p>Trying to use reserved token for the attribute key. The embed should work, and the custom attribute should be ignored.</p>
3939
<div id="pdf-reservedtoken"></div>
4040

41-
<script src="https://unpkg.com/pdfobject@2.3.0/pdfobject.min.js"></script>
41+
<script src="https://unpkg.com/pdfobject@2.3.1/pdfobject.min.js"></script>
4242
<script>
4343
PDFObject.embed("/pdf/sample-3pp.pdf", "#pdf", {
4444
customAttribute: { key: "foo", value: "bar" }

docs/public/examples/declining-a-fallback.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>PDFObject Example: Declining to provide a fallback</title>
77
<!--
88
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
9-
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/
9+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
1010
Documentation: http://pdfobject.com
1111
Source code: https://github.com/pipwerks/PDFObject
1212
-->
@@ -36,7 +36,7 @@ <h1>PDFObject Example: Declining to provide a fallback</h1>
3636

3737
<p>If your browser doesn't support inline PDFs, you will see nothing except this message and the page title.</p>
3838

39-
<script src="https://unpkg.com/pdfobject@2.3.0/pdfobject.min.js"></script>
39+
<script src="https://unpkg.com/pdfobject@2.3.1/pdfobject.min.js"></script>
4040
<script>
4141
PDFObject.embed("/pdf/sample-3pp.pdf", "#my-pdf", { fallbackLink: false });
4242
</script>

docs/public/examples/deprecated/full-browser-forced-iframe.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>PDFObject Example: Forcing PDFObject to use an iframe, filling the viewport</title>
77
<!--
88
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
9-
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/
9+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
1010
Documentation: http://pdfobject.com
1111
Source code: https://github.com/pipwerks/PDFObject
1212
-->

docs/public/examples/deprecated/iframe-forced.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>PDFObject Example: Forcing PDFObject to use an iframe</title>
77
<!--
88
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
9-
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/
9+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
1010
Documentation: http://pdfobject.com
1111
Source code: https://github.com/pipwerks/PDFObject
1212
-->

docs/public/examples/deprecated/omit-inline-styles-forced-iframe.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>PDFObject Example: Embedding a PDF in an iframe, without using inline styles</title>
77
<!--
88
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
9-
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/
9+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
1010
Documentation: http://pdfobject.com
1111
Source code: https://github.com/pipwerks/PDFObject
1212
-->

docs/public/examples/deprecated/redirect-302.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>PDFObject Example: Loading a PDF via a redirected URL (302)</title>
77
<!--
88
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
9-
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/
9+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
1010
Documentation: http://pdfobject.com
1111
Source code: https://github.com/pipwerks/PDFObject
1212
-->

docs/public/examples/detection-navigator-pdfViewerEnabled.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>PDFObject Example: Detection using navigator.pdfViewerEnabled</title>
77
<!--
88
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
9-
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/
9+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
1010
Documentation: http://pdfobject.com
1111
Source code: https://github.com/pipwerks/PDFObject
1212
-->
@@ -30,7 +30,7 @@ <h1>PDFObject Example: Detection using navigator.pdfViewerEnabled</h1>
3030

3131
<div id="results"></div>
3232

33-
<script src="https://unpkg.com/pdfobject@2.3.0/pdfobject.min.js"></script>
33+
<script src="https://unpkg.com/pdfobject@2.3.1/pdfobject.min.js"></script>
3434
<script>
3535
let status = (navigator.pdfViewerEnabled) ? "supports" : "does not support";
3636
let el = document.querySelector("#results");

docs/public/examples/detection.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>PDFObject Example: Detection of PDF support</title>
77
<!--
88
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
9-
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/
9+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
1010
Documentation: http://pdfobject.com
1111
Source code: https://github.com/pipwerks/PDFObject
1212
-->
@@ -29,7 +29,7 @@ <h1>PDFObject Example: Detection of PDF support</h1>
2929

3030
<div id="results"></div>
3131

32-
<script src="https://unpkg.com/pdfobject@2.3.0/pdfobject.min.js"></script>
32+
<script src="https://unpkg.com/pdfobject@2.3.1/pdfobject.min.js"></script>
3333
<script>
3434
let status = (PDFObject.supportsPDFs) ? "supports" : "does not support";
3535
let el = document.querySelector("#results");

docs/public/examples/embed-multiple-PDFs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>PDFObject Example: Embed two PDFs on one HTML page</title>
77
<!--
88
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
9-
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/
9+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
1010
Documentation: http://pdfobject.com
1111
Source code: https://github.com/pipwerks/PDFObject
1212
-->
@@ -37,7 +37,7 @@ <h1>PDFObject Example: Embed two PDFs on one HTML page</h1>
3737
<div id="pdf1"></div>
3838
<div id="pdf2"></div>
3939

40-
<script src="https://unpkg.com/pdfobject@2.3.0/pdfobject.min.js"></script>
40+
<script src="https://unpkg.com/pdfobject@2.3.1/pdfobject.min.js"></script>
4141
<script>
4242
PDFObject.embed("/pdf/sample-3pp.pdf", "#pdf1", {
4343
page: 2,

docs/public/examples/full-browser-default.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>PDFObject Example: Full-browser embed (no selector specified)</title>
77
<!--
88
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
9-
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/
9+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
1010
Documentation: http://pdfobject.com
1111
Source code: https://github.com/pipwerks/PDFObject
1212
-->
@@ -16,7 +16,7 @@
1616
</head>
1717

1818
<body>
19-
<script src="https://unpkg.com/pdfobject@2.3.0/pdfobject.min.js"></script>
19+
<script src="https://unpkg.com/pdfobject@2.3.1/pdfobject.min.js"></script>
2020
<script>
2121
PDFObject.embed("/pdf/sample-3pp.pdf");
2222
</script>

docs/public/examples/full-browser-explicit-pdfparams.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>PDFObject Example: Full-browser embed (explicit selector) with PDF Open Params specified</title>
77
<!--
88
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
9-
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/
9+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
1010
Documentation: http://pdfobject.com
1111
Source code: https://github.com/pipwerks/PDFObject
1212
-->
@@ -16,7 +16,7 @@
1616
</head>
1717

1818
<body>
19-
<script src="https://unpkg.com/pdfobject@2.3.0/pdfobject.min.js"></script>
19+
<script src="https://unpkg.com/pdfobject@2.3.1/pdfobject.min.js"></script>
2020
<script>
2121
PDFObject.embed("/pdf/sample-3pp.pdf", document.body, {
2222
pdfOpenParams: {

docs/public/examples/full-browser-explicit.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>PDFObject Example: Full-browser embed (explicit selector)</title>
77
<!--
88
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
9-
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/
9+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
1010
Documentation: http://pdfobject.com
1111
Source code: https://github.com/pipwerks/PDFObject
1212
-->
@@ -16,7 +16,7 @@
1616
</head>
1717

1818
<body>
19-
<script src="https://unpkg.com/pdfobject@2.3.0/pdfobject.min.js"></script>
19+
<script src="https://unpkg.com/pdfobject@2.3.1/pdfobject.min.js"></script>
2020
<script>
2121
PDFObject.embed("/pdf/sample-3pp.pdf", document.body);
2222
</script>

docs/public/examples/google.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>PDFObject Example: Using Google Docs Viewer as a fallback</title>
77
<!--
88
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
9-
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/
9+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
1010
Documentation: http://pdfobject.com
1111
Source code: https://github.com/pipwerks/PDFObject
1212
-->
@@ -57,7 +57,7 @@ <h1>PDFObject Example: Using Google Docs Viewer as a fallback</h1>
5757
</ul>
5858
<div id="pdf"></div>
5959

60-
<script src="https://unpkg.com/pdfobject@2.3.0/pdfobject.min.js"></script>
60+
<script src="https://unpkg.com/pdfobject@2.3.1/pdfobject.min.js"></script>
6161
<script>
6262

6363
let url = "https://pdfobject.com/pdf/sample.pdf";

docs/public/examples/omit-inline-styles.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<title>PDFObject Example: Embedding a PDF, with omitInlineStyles option set to true</title>
77
<!--
88
This example created for PDFObject.com by Philip Hutchison (www.pipwerks.com)
9-
Copyright 2016-2024, MIT-style license http://pipwerks.mit-license.org/
9+
Copyright 2016-2025, MIT-style license http://pipwerks.mit-license.org/
1010
Documentation: http://pdfobject.com
1111
Source code: https://github.com/pipwerks/PDFObject
1212
-->
@@ -30,7 +30,7 @@ <h1>PDFObject Example: Embedding a PDF, with omitInlineStyles option set to true
3030

3131
<div id="pdf"></div>
3232

33-
<script src="https://unpkg.com/pdfobject@2.3.0/pdfobject.min.js"></script>
33+
<script src="https://unpkg.com/pdfobject@2.3.1/pdfobject.min.js"></script>
3434
<script>
3535
PDFObject.embed("https://pdfobject.com/pdf/sample-3pp.pdf", "#pdf", { omitInlineStyles: true, id: "myID" });
3636
</script>

0 commit comments

Comments
 (0)