Skip to content

Commit

Permalink
Update docs for pdfobject 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pipwerks committed Feb 13, 2025
1 parent a6c58ef commit 73d27a4
Show file tree
Hide file tree
Showing 40 changed files with 141 additions and 70 deletions.
3 changes: 3 additions & 0 deletions docs/api/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ outline: deep

# Changelog

## 2.3.1 (February 2025)
- 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.

## 2.3 (February 2024)
- 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.
- 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`.
Expand Down
19 changes: 19 additions & 0 deletions docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,25 @@ Any string entered here will be inserted into the target element when the browse

<br/>

### fallbackFileNameForBase64
[string]. Default: `"file.pdf"`

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.

```js
var options = {
fallbackFileNameForBase64: "My custom fielname.pdf"
};
PDFObject.embed("myfile.pdf", "#my-container", options);
//If browser doesn't support inline PDFs, outputs:
//<p>This is a <a href='myfile.pdf'>fallback link</a></p>
```

**Demo:** [Embedding a PDF encoded as a Base64 string, with custom filename](/examples/base64-filename.html){target=_blank}

<br/>


### pdfOpenParams
[object]. Default: `null`

Expand Down
4 changes: 2 additions & 2 deletions docs/public/examples/apostrophe-in-filename.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
Expand Down Expand Up @@ -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>
Expand Down
49 changes: 49 additions & 0 deletions docs/public/examples/base64-filename.html
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=InlineNameH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wMDAwMDI1OCAwMDAwMCBuIAowMDAwMDAwNDQxIDAwMDAwIG4gCjAwMDAwMDAwMDkgMDAwMDAgbiAKMDAwMDAwMDA4NyAwMDAwMCBuIAowMDAwMDAwMzQ1IDAwMDAwIG4gCjAwMDAwMDA1NDUgMDAwMDAgbiAKMDAwMDAwMDY1NCAwMDAwMCBuIAp0cmFpbGVyCjw8Ci9TaXplIDgKL1Jvb3QgNyAwIFIKL0luZm8gNiAwIFIKPj4Kc3RhcnR4cmVmCjc1NwolJUVPRgo=";

PDFObject.embed(b64, "#my-pdf", {
fallbackFileNameForBase64: "CustomFilename.pdf"
});
</script>

</body>
</html>
4 changes: 2 additions & 2 deletions docs/public/examples/base64.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
Expand Down Expand Up @@ -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/F5L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 2 deletions docs/public/examples/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
Expand All @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions docs/public/examples/conditional-js-advanced.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
Expand Down Expand Up @@ -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){

Expand Down
4 changes: 2 additions & 2 deletions docs/public/examples/conditional-js.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
Expand Down Expand Up @@ -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: {
Expand Down
4 changes: 2 additions & 2 deletions docs/public/examples/custom-attribute.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
Expand Down Expand Up @@ -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" }
Expand Down
4 changes: 2 additions & 2 deletions docs/public/examples/declining-a-fallback.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
Expand Down Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>PDFObject Example: Forcing PDFObject to use an iframe, filling the viewport</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
-->
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/deprecated/iframe-forced.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>PDFObject Example: Forcing PDFObject to use an iframe</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
-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>PDFObject Example: Embedding a PDF in an iframe, without using inline styles</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
-->
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/deprecated/redirect-302.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>PDFObject Example: Loading a PDF via a redirected URL (302)</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
-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
Expand All @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions docs/public/examples/detection.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
Expand All @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions docs/public/examples/embed-multiple-PDFs.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions docs/public/examples/full-browser-default.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
Expand All @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions docs/public/examples/full-browser-explicit-pdfparams.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
Expand All @@ -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: {
Expand Down
4 changes: 2 additions & 2 deletions docs/public/examples/full-browser-explicit.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
Expand All @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions docs/public/examples/google.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
Expand Down Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions docs/public/examples/omit-inline-styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
Expand All @@ -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>
Expand Down
Loading

0 comments on commit 73d27a4

Please sign in to comment.