Skip to content

Commit e6e3e9d

Browse files
committed
Final tweaks for 2.3
1 parent c25bff5 commit e6e3e9d

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The MIT License (MIT)
2-
Copyright © 2023 Philip Hutchison
2+
Copyright © 2024 Philip Hutchison
33
https://pipwerks.mit-license.org/
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "pdfobject",
3-
"description": "An open-source standards-friendly JavaScript utility for embedding PDF files into HTML documents",
4-
"version": "2.3",
3+
"description": "A lightweight JavaScript utility for dynamically embedding PDFs in HTML documents",
4+
"version": "2.3.0",
55
"main": "pdfobject.js",
66
"moduleType": [
77
"globals",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "pdfobject",
3-
"version": "2.3",
4-
"description": "An open-source standards-friendly JavaScript utility for embedding PDF files into HTML documents",
3+
"version": "2.3.0",
4+
"description": "A lightweight JavaScript utility for dynamically embedding PDFs in HTML documents",
55
"main": "pdfobject.js",
66
"scripts": {
77
"build": "uglifyjs pdfobject.js -o pdfobject.min.js --compress --comments",

pdfobject.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* PDFObject v2.3
2+
* PDFObject v2.3.0
33
* https://github.com/pipwerks/PDFObject
44
* @license
55
* Copyright (c) 2008-2024 Philip Hutchison
@@ -30,7 +30,7 @@
3030

3131
if(typeof window === "undefined" || window.navigator === undefined || window.navigator.userAgent === undefined){ return false; }
3232

33-
let pdfobjectversion = "2.3";
33+
let pdfobjectversion = "2.3.0";
3434
let win = window;
3535
let nav = win.navigator;
3636
let ua = nav.userAgent;

readme.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
PDFObject is a lightweight JavaScript utility for dynamically embedding PDFs in HTML documents.
1+
# PDFObject
2+
3+
A lightweight JavaScript utility for dynamically embedding PDFs in HTML documents.
24

35
Examples and documentation can be found at https://pdfobject.com.
46

5-
Copyright (c) 2008-2023 Philip Hutchison
7+
A PDFObject component for Vue.js 3 can be found at https://github.com/pipwerks/pdfobject-vue/
8+
9+
Copyright (c) 2008-2024 Philip Hutchison
10+
611
MIT-style license: http://pipwerks.mit-license.org/
712

813
-----
@@ -11,7 +16,7 @@ MIT-style license: http://pipwerks.mit-license.org/
1116

1217
## Changelog
1318

14-
## 2.3 (February 2024)
19+
### 2.3 (February 2024)
1520
- 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.
1621
- 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`.
1722
- Incorporated support for `navigator.pdfViewerEnabled`, per #290. As of Spring 2023, `navigator.pdfViewerEnabled` is supported in all major browsers. This naturally led to redefining PDFObject's PDF support detection logic.

0 commit comments

Comments
 (0)