Skip to content

Releases: GleamTech/PdfJsKit

PdfJsKit v2.2.3

06 May 21:20

Choose a tag to compare

Version 2.2.3 - May 6, 2025

  • Added: editAnnotations permission for ability to edit annotations of the document.
    So now, viewing and editing annotation permissions are separated, this is mainly done because
    viewAnnotations permission 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 disable editAnnotations without effecting display of the signatures and existing annotations.

    editAnnotations will enable/disable tools like Add Signature, Highlight, Draw, Add Image (buttons on the vertical toolbar).
    If no viewAnnotations permission but editAnnotations permission, then you can add new annotations but not view and edit existing ones.
    editAnnotations default value is true.

PdfJsKit v2.2.2

05 May 23:55

Choose a tag to compare

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 when toolbarAtBottom option is set, in that case progress bar should be above toolbar.
  • Improved: When toolbarAtBottom option is set, prevent collapsing of viewer container (toolbar shifts up) when document is loading or closed.
  • Fixed: When permissions.open is set to false, drag & drop of PDF files to the viewer should also be disabled.

PdfJsKit v2.2.0

29 Apr 13:29

Choose a tag to compare

Version 2.2.0 - April 29, 2025

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

PdfJsKit v2.1.5

25 Apr 19:54

Choose a tag to compare

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

14 Apr 23:44

Choose a tag to compare

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

04 Apr 11:18

Choose a tag to compare

Version 2.1.0 - April 4, 2025

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

PdfJsKit v2.0.0

16 Mar 23:14

Choose a tag to compare

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:

    image

    image

    image

    image

  • Improved: Rendering of large pages in the viewer. Improved JPEG 2000 decoding support in PDFs.

PdfJsKit v1.6.2

04 Mar 00:55

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

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

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.