Skip to content

PdfJsKit v2.4.12

Choose a tag to compare

@GleamTech GleamTech released this 18 Dec 18:04
· 2 commits to main since this release

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.