Skip to content

Tags: GleamTech/PdfJsKit

Tags

v2.4.15

Toggle v2.4.15's commit message
Version 2.4.15

## Version 2.4.15 - December 23, 2025
- **Improved:** Destroying of iframe and unregistering screenSizeChange and colorSchemeChange events.

v2.4.14

Toggle v2.4.14's commit message
Version 2.4.14

## 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.

v2.4.12

Toggle v2.4.12's commit message
Version 2.4.12

## 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.

v2.4.11

Toggle v2.4.11's commit message
Version 2.4.11

## 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`.

v2.4.9

Toggle v2.4.9's commit message
Version 2.4.9

## 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.

v2.4.8

Toggle v2.4.8's commit message
Version 2.4.8

    ## Version 2.4.8
    - **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.
    - **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).

v2.4.5

Toggle v2.4.5's commit message
Version 2.4.5

    ## Version 2.4.5
    - **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).

v2.4.3

Toggle v2.4.3's commit message
Version 2.4.3

## 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.

v2.4.2

Toggle v2.4.2's commit message
Version 2.4.2

## Version 2.4.2 - August 26, 2025
    - **Improved:** Scrollbar colors are beautified and made consistent for all themes.
    - **Fixed:** Setting a specific theme like "classic-light" or "classic-dark" was no longer overriding user OS preference.

v2.4.0

Toggle v2.4.0's commit message
Version 2.4.0

## Version 2.4.0 - August 25, 2025
    - Improved: Updated PDF.js library to 5.4.54 for stability and performance.