Releases: GleamTech/PdfJsKit
PdfJsKit v1.6.2
Version 1.6.2 - March 3, 2025
-
Added:
debugMode
option, 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:
failed
event can now be canceled viae.preventDefault()
to suppress showing default error dialog.
For example,e.detail.message
can 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.
PdfJsKit v1.5.1
Version 1.5.1 - December 16, 2024
- Improved: Updated PDF.js library to 4.9.155 for stability and performance.
PdfJsKit v1.5.0
Version 1.5.0 - December 16, 2024
- Improved: Updated PDF.js library to 4.9.124 for stability and performance.
PdfJsKit v1.4.0
Version 1.4.0 - November 27, 2024
- Improved: Updated PDF.js library to 4.8.69 for stability and performance.
PdfJsKit v1.3.0
Version 1.3.0 - November 26, 2024
-
Improved: Updated PDF.js library to 4.7.76 for stability and performance.
-
Added:
productInfo
property which gets the product info for this component (e.g. product name and version).
PdfJsKit v1.1.1
Version 1.1.1 - October 18, 2024
-
Added: Complete API Documentation both in HTML and Markdown versions.
-
Changed: Default value for
options.width
is changed from800
to960
.
Default value foroptions.height
is changed from600
to720
.
Default value foroptions.searchOptions.highlightAll
is changed fromfalse
totrue
.
PdfJsKit v1.1.0
Version 1.1.0 - October 15, 2024
-
Improved: Updated PDF.js library to 4.6.82 for stability and performance.
-
Added: Highlight text annotation tool (on vertical toolbar).
-
Fixed: Vertical toolbar had 1px extra width and did not align with top toolbar button.
-
Fixed: Positioning of toolbar menus, so that they are positioned correctly e.g. when there is scrollbar inside vertical toolbar.
-
Improved: Sizing of Document Properties dialog to make it more readable, especially when using large UI sizing.
-
Improved: Find dialog is beautified to make it more readable.
-
Improved: When toolbars or sidebar is hidden with permissions, other UI parts should fill the gaps correctly.
PdfJsKit v1.0.0
Version 1.0.0 - October 15, 2024
- Initial release with PDF.js v4.5.136 support.