Skip to content

Releases: GleamTech/PdfJsKit

PdfJsKit v2.4.15

23 Dec 23:36

Choose a tag to compare

Version 2.4.15 - December 23, 2025

  • Improved: Destroying of iframe and unregistering screenSizeChange and colorSchemeChange events.

PdfJsKit v2.4.14

23 Dec 00:26

Choose a tag to compare

Version 2.4.14 - December 22, 2025

  • Fixed: Attempt to fix bfcache (back-forward cache) issues on iOS Safari (and others) and apps using WebView.
    Reload iframe (recreate iframe) to prevent possible issues when restoring from bfcache.
  • Fixed: Loading bar position was not accurate on mobile mode (was shown in the middle of the toolbar)
    or when toolbarAtBottom option was used.

PdfJsKit v2.4.12

18 Dec 18:04

Choose a tag to compare

Version 2.4.12 - December 17, 2025

  • Fixed: Error when viewer is put into a cross-domain iframe:
    Uncaught (in promise) SecurityError: Failed to read a named property 'matchMedia' from 'Window'
    Also prevent missing document error when documentUrl is a relative url and viewer is inside a cross-domain iframe.
    Also avoid Blocked autofocusing on a <button> element in a cross-origin subframe. browser warning
    by not using autofocus attribute.
  • Added: New permission options.permissions.runScripts with default value of true.
    For security purpose, you can now disable execution of active content (JavaScript) by PDF files.

PdfJsKit v2.4.11

16 Dec 13:08

Choose a tag to compare

Version 2.4.11 - December 16, 2025

  • Improved: Updated PDF.js library to 5.4.449 for stability and performance.
  • Fixed: Comments sidebar and signature menus should use the same font-family and
    font-size should be relative to the UI e.g. when using ui-sizing-lg.

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.