Releases: GleamTech/PdfJsKit
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.
PdfJsKit v2.1.2
Version 2.1.2 - April 14, 2025
- Fixed: Some UI problems on Safari iOS and Safari macOS. Some icons on the vertical toolbar were not visible.
Sub-menus on vertical toolbar disappeared immediately after popping up. Some items in top-right menu like "Save", "Print"
were shrinked when the viewer width was smaller than 750px (the size when they are moved to the menu).
Vertical toolbar's scrollbar did not have separate space and was overlayed.
PdfJsKit v2.1.0
Version 2.1.0 - April 4, 2025
- Improved: Updated PDF.js library to 5.1.91 for stability and performance.
PdfJsKit v2.0.0
Version 2.0.0 - March 16, 2025
-
Improved: Updated PDF.js library to 5.0.375 for stability and performance.
-
Added: Signature annotation tool in the viewer which allows you to add an handwritten signature or text signature or image signature to a document.
The signatures are remembered and saved in the browser, however they can be deleted in "add signature" menu where they are listed: -
Improved: Rendering of large pages in the viewer. Improved JPEG 2000 decoding support in PDFs.
PdfJsKit v1.6.2
Version 1.6.2 - March 3, 2025
-
Added:
debugModeoption, a value indicating whether to show details in text box in the addition to the main message on error dialog.
So from now on, by default, error details should not be shown on PdfViewer's error dialog, for example no details should be shown on local PDF opening errors:If you explicitly set this option to
true, it will show details in text box in the addition to the main message on error dialog. This was the default behavior before v1.6.2:This can be useful for debugging purpose.
-
Improved:
failedevent can now be canceled viae.preventDefault()to suppress showing default error dialog.
For example,e.detail.messagecan be examined and a custom message can be shown viapdfViewer._showError()method.var pdfViewer = new PdfViewer({ events: { failed: pdfViewerFailed } }); function pdfViewerFailed(e) { var pdfViewer = e.target; if (e.detail.message == "some specific message") { //Canceling this event, to suppress showing error dialog with default error message. e.preventDefault(); //Show your custom message with error dialog pdfViewer._showError("customMessage"); //Or write to browser console console.log("customMessage"); } }
PdfJsKit v1.6.1
Version 1.6.1 - February 11, 2025
- Improved: Restricted file chooser (Open action in top-right menu) to only "application/pdf" mime type (*.pdf files) to prevent unnecessary error
when user tries to open random file types. "Invalid or corrupted PDF file. Invalid PDF structure." message
may confuse the user who may not know the viewer can only open and render PDF files on the client-side.
PdfJsKit v1.6.0
Version 1.6.0 - January 7, 2025
- Improved: Updated PDF.js library to 4.10.38 for stability and performance.





