From 73d27a4cbb5122bbfdcc546d234e45d31f8b3860 Mon Sep 17 00:00:00 2001 From: Philip Hutchison Date: Wed, 12 Feb 2025 22:53:57 -0800 Subject: [PATCH] Update docs for pdfobject 2.3.1 --- docs/api/changelog.md | 3 ++ docs/api/index.md | 19 +++++++ .../examples/apostrophe-in-filename.html | 4 +- docs/public/examples/base64-filename.html | 49 +++++++++++++++++++ docs/public/examples/base64.html | 4 +- docs/public/examples/basic.html | 4 +- .../examples/conditional-js-advanced.html | 4 +- docs/public/examples/conditional-js.html | 4 +- docs/public/examples/custom-attribute.html | 4 +- .../public/examples/declining-a-fallback.html | 4 +- .../full-browser-forced-iframe.html | 2 +- .../examples/deprecated/iframe-forced.html | 2 +- .../omit-inline-styles-forced-iframe.html | 2 +- .../examples/deprecated/redirect-302.html | 2 +- .../detection-navigator-pdfViewerEnabled.html | 4 +- docs/public/examples/detection.html | 4 +- docs/public/examples/embed-multiple-PDFs.html | 4 +- .../public/examples/full-browser-default.html | 4 +- .../full-browser-explicit-pdfparams.html | 4 +- .../examples/full-browser-explicit.html | 4 +- docs/public/examples/google.html | 4 +- docs/public/examples/omit-inline-styles.html | 4 +- docs/public/examples/onload-callback.html | 4 +- .../passing-element-jquery-styled.html | 4 +- .../examples/passing-element-jquery.html | 4 +- .../examples/passing-element-styled.html | 4 +- docs/public/examples/passing-element.html | 4 +- .../examples/passing-selector-styled.html | 4 +- docs/public/examples/passing-selector.html | 4 +- docs/public/examples/pdf-open-params.html | 4 +- .../pdfjs-forced-with-querystring.html | 4 +- docs/public/examples/pdfjs-forced.html | 4 +- docs/public/examples/pdfjs.html | 4 +- .../examples/querystring-URL-with-params.html | 4 +- docs/public/examples/querystring-URL.html | 4 +- .../examples/replace-PDF-with-second-PDF.html | 4 +- docs/public/examples/setting-title.html | 4 +- .../specifying-custom-fallback-link.html | 4 +- .../specifying-page-number-thumbnails.html | 4 +- .../examples/specifying-page-number.html | 4 +- 40 files changed, 141 insertions(+), 70 deletions(-) create mode 100644 docs/public/examples/base64-filename.html diff --git a/docs/api/changelog.md b/docs/api/changelog.md index e94a2d0..9be8d66 100644 --- a/docs/api/changelog.md +++ b/docs/api/changelog.md @@ -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 `` in favor of `