Skip to content

Releases: GleamTech/PdfJsKit

PdfJsKit v2.4.9

19 Oct 02:18

Choose a tag to compare

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 permission options.permissions.editComments with default value of true.
  • 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
    webviewerloaded event 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

10 Sep 06:00

Choose a tag to compare

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.
image image
  • Improved: Default value for options.language will now be navigator.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 PageUtil class).

PdfJsKit v2.4.5

29 Aug 18:48

Choose a tag to compare

Version 2.4.5 - August 29, 2025

  • Fixed: Override display: inline flex; with display: 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-dark rules 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

27 Aug 09:54

Choose a tag to compare

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 via searchOptions.term.
    For example;
    • red "four wheels" petrol will match red or four wheels or petrol or red four wheels petrol
    • red ""four wheels"" petrol will match red or "four wheels" or petrol or red "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

26 Aug 12:29

Choose a tag to compare

Version 2.4.2 - August 26, 2025

  • Improved: Scrollbar colors are beautified and made consistent for all themes:

    image image image
  • Fixed: Setting a specific theme like "classic-light" or "classic-dark" was no longer overriding user OS preference.

PdfJsKit v2.4.0

25 Aug 21:54

Choose a tag to compare

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

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.