Skip to content

Releases: GleamTech/PdfJsKit

PdfJsKit v1.6.2

04 Mar 00:55
Compare
Choose a tag to compare

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:

    image

    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:

    image

    This can be useful for debugging purpose.

  • Improved: failed event can now be canceled via e.preventDefault() to suppress showing default error dialog.
    For example, e.detail.message can be examined and a custom message can be shown via pdfViewer._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

11 Feb 10:24
Compare
Choose a tag to compare

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

07 Jan 09:05
Compare
Choose a tag to compare

Version 1.6.0 - January 7, 2025

  • Improved: Updated PDF.js library to 4.10.38 for stability and performance.

PdfJsKit v1.5.1

16 Dec 12:18
Compare
Choose a tag to compare

Version 1.5.1 - December 16, 2024

  • Improved: Updated PDF.js library to 4.9.155 for stability and performance.

PdfJsKit v1.5.0

16 Dec 11:28
Compare
Choose a tag to compare

Version 1.5.0 - December 16, 2024

  • Improved: Updated PDF.js library to 4.9.124 for stability and performance.

PdfJsKit v1.4.0

26 Nov 21:32
Compare
Choose a tag to compare

Version 1.4.0 - November 27, 2024

  • Improved: Updated PDF.js library to 4.8.69 for stability and performance.

PdfJsKit v1.3.0

26 Nov 03:00
Compare
Choose a tag to compare

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

18 Oct 14:08
Compare
Choose a tag to compare

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 from 800 to 960 .
    Default value for options.height is changed from 600 to 720.
    Default value for options.searchOptions.highlightAll is changed from false to true.

PdfJsKit v1.1.0

15 Oct 12:42
Compare
Choose a tag to compare

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

15 Oct 12:37
Compare
Choose a tag to compare

Version 1.0.0 - October 15, 2024

  • Initial release with PDF.js v4.5.136 support.