Releases: GleamTech/PdfJsKit
Releases · GleamTech/PdfJsKit
PdfJsKit v2.4.15
PdfJsKit v2.4.14
Version 2.4.14 - December 22, 2025
- Fixed: Attempt to fix bfcache (back-forward cache) issues on iOS Safari (and others) and apps using WebView.
Reload iframe (recreate iframe) to prevent possible issues when restoring from bfcache. - Fixed: Loading bar position was not accurate on mobile mode (was shown in the middle of the toolbar)
or whentoolbarAtBottomoption was used.
PdfJsKit v2.4.12
Version 2.4.12 - December 17, 2025
- Fixed: Error when viewer is put into a cross-domain iframe:
Uncaught (in promise) SecurityError: Failed to read a named property 'matchMedia' from 'Window'
Also preventmissing document errorwhendocumentUrlis a relative url and viewer is inside a cross-domain iframe.
Also avoidBlocked autofocusing on a <button> element in a cross-origin subframe.browser warning
by not usingautofocusattribute. - Added: New permission
options.permissions.runScriptswith default value oftrue.
For security purpose, you can now disable execution of active content (JavaScript) by PDF files.
PdfJsKit v2.4.11
Version 2.4.11 - December 16, 2025
- Improved: Updated PDF.js library to 5.4.449 for stability and performance.
- Fixed: Comments sidebar and signature menus should use the same font-family and
font-size should be relative to the UI e.g. when usingui-sizing-lg.
PdfJsKit v2.4.9
Version 2.4.9 - October 18, 2025
- Improved: Updated PDF.js library to 5.4.296 for stability and performance.
- Added: Ability to add, edit, view comments in the document.
New permissionoptions.permissions.editCommentswith default value oftrue. - Improved: Ensure toolbar menus are clamped to the viewer window
and repositioned when viewer window is scrolled, resized or menu is resized. - Improved: Ensure top toolbar menus are always over vertical toolbar menus.
- Fixed: When creating multiple instances of viewer in the same page
webviewerloadedevent was being registered multiple times thus causing errors.
The viewer id was being unnecessarily incremented even if it did not exist in the document.
Track viewer id internally as user may re-assign the window global variable.
PdfJsKit v2.4.8
Version 2.4.8 - September 10, 2025
- Improved: Updated PDF.js library to 5.4.149 for stability and performance.
- Improved: Created toggle-able sub-menus for scrollMode and spreadMode buttons
to reduce crowdedness of the vertical toolbar.
- Improved: Default value for
options.languagewill now benavigator.language || "en-US".
So if this option is not set, it will try to use the browser's current language. - Improved: Stability of some page events (new
PageUtilclass).
PdfJsKit v2.4.5
Version 2.4.5 - August 29, 2025
- Fixed: Override
display: inline flex;withdisplay: inline-flex;for.toolbarHorizontalGroup
because in older browsers like before Chrome 115 (2023), multi-keyword values (without dash) are not supported.
The unsupported property causes toolbar groups to display vertically (so very enlarged toolbar height). - Fixed: Newer versions of viewer.css has
@supports not (color: light-dark(tan, tan))rules
which sets default values for some CSS rules when light-dark is not supported
but these values override our theme values in older browsers (before Chrome 123 and iOS Safari 17.5)
so remove these@supports not (color: light-darkrules from the style-sheet dynamically.
Before the fix, theme colors e.g. button icons colors were displayed black in slate theme. - Improved: Zoom buttons and selection are unnecessary on phones (user can pinch to zoom),
especially for mobile mode (large UI sizing) so hide them to fix toolbar overflowing.
Fixed Find dialog size on phones, the dialog contents should wrap.
Updated demo pages to use full viewport on non-desktop browser sizes (i.e. phone and tablet sizes).
PdfJsKit v2.4.3
Version 2.4.3 - August 27, 2025
- Improved: When using
searchOptions.matchAnyWord, now the quotation marks can be used to specify phrases
inside a query that is set viasearchOptions.term.
For example;red "four wheels" petrolwill matchredorfour wheelsorpetrolorred four wheels petrolred ""four wheels"" petrolwill matchredor"four wheels"orpetrolorred "four wheels" petrol
Note that two consecutive quotation marks""can be used to escape, i.e. to search for a quotation mark literally as".
The same feature can also be used in the Viewer's Find dialog.
PdfJsKit v2.4.2
PdfJsKit v2.4.0
Version 2.4.0 - August 25, 2025
- Improved: Updated PDF.js library to 5.4.54 for stability and performance.
- Fixed: Avoid
The `container` must be absolutely positioned.error in revisited pages on iOS Safari.


