Releases: GleamTech/PdfJsKit
Releases · GleamTech/PdfJsKit
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. 
PdfJsKit v2.2.3
Version 2.2.3 - May 6, 2025
- 
Added:
editAnnotationspermission for ability to edit annotations of the document.
So now, viewing and editing annotation permissions are separated, this is mainly done because
viewAnnotationspermission can also effect displaying of the signatures in the document so most of the time you will want to keep it enabled.
However now you can disableeditAnnotationswithout effecting display of the signatures and existing annotations.editAnnotationswill enable/disable tools like Add Signature, Highlight, Draw, Add Image (buttons on the vertical toolbar).
If noviewAnnotationspermission buteditAnnotationspermission, then you can add new annotations but not view and edit existing ones.
editAnnotationsdefault value istrue. 
PdfJsKit v2.2.2
Version 2.2.2 - May 6, 2025
- Improved: Viewer's progress bar below toolbar for download progress was not showing since v1.3.0 (should be shown whenever a new document is loaded).
Also fixed progress bar position whentoolbarAtBottomoption is set, in that case progress bar should be above toolbar. - Improved: When 
toolbarAtBottomoption is set, prevent collapsing of viewer container (toolbar shifts up) when document is loading or closed. - Fixed: When 
permissions.openis set to false, drag & drop of PDF files to the viewer should also be disabled. 
PdfJsKit v2.2.0
Version 2.2.0 - April 29, 2025
- Improved: Updated PDF.js library to 5.2.133 for stability and performance.
 
PdfJsKit v2.1.5
Version 2.1.5 - April 25, 2025
- Fixed: Keyboard shortcuts were not respecting the denied permissions. Especially CTRL + P for print and CTRL + S for save.
 - Fixed: Pages outline color when focused.
 - Improved: Added and used ObjectUtil.override method which is more suitable than ObjectUtil.apply,
for overriding a class instance/object; it can apply property getters, property setters, functions etc. 


