github mozilla/pdf.js v4.2.67

latest releases: v4.4.168, v4.3.136
2 months ago

This release includes a new JPX decoder, based on OpenJPEG, which improves JPX image rendering performance and correctness. Moreover, this release contains improvements for the annotation editor, font conversion and the viewer.

Note that text selection boxes for some PDF files may overlap visually. This is a known issue that we currently track in #17561.

Changes since v4.1.392

  • Bump the stable version in pdfjs.config by @timvandermeij in #17924
  • Convert the history code to use proper private methods by @timvandermeij in #17925
  • Update dependencies and translations to the most recent versions by @timvandermeij in #17927
  • Remove the tag for missing font subset when trying to find a substitution by @calixteman in #17930
  • Fix resetting of cursor-tools when closing the document (PR 17464 follow-up) by @Snuffleupagus in #17933
  • Warn when a non-embedded font has an invalid name by @calixteman in #17934
  • Remove the mkdirp dependency in favor of the built-in Node.js fs.mkdirSync by @timvandermeij in #17935
  • Improve type definitions for the viewer by @ex37 in #17879
  • Fix the "must check that invisible fields are made visible" scripting integration test by @timvandermeij in #17940
  • Remove the rimraf dependency in favor of the built-in Node.js fs.rmSync in the test folder by @timvandermeij in #17938
  • [api-minor] Update the minimum supported Safari version to 16.4 by @Snuffleupagus in #17942
  • Fix the "must check that a field has the correct value when a choice is changed" scripting integration test by @timvandermeij in #17947
  • [api-minor] Add a jpx decoder based on OpenJPEG 2.5.2 by @calixteman in #17946
  • Bump library version to 4.2 by @Snuffleupagus in #17949
  • Build the openjpeg-based decoder in a web environment in order to avoid issues when used in node by @calixteman in #17954
  • Fix JpxImage API issues (PR 17946 follow-up) by @timvandermeij in #17951
  • [JPX] Throw an exception with the error messages returned by openjpeg by @calixteman in #17956
  • [Editor] Provide an element to render in the annotation layer after a freetext has been edited (bug 1890535) by @calixteman in #17914
  • Remove waitForTimeout usage from the helper functions by @timvandermeij in #17966
  • Remove some event listeners with signal in the viewer by @Snuffleupagus in #17964
  • [Editor] Don't show the context menu when resizing by @calixteman in #17973
  • Correctly update the xref table when an annotation is deleted by @calixteman in #17970
  • Update dependencies and translations to the most recent versions by @timvandermeij in #17972
  • Improve jpx decoding by around 20% in enabling simd support when compiling OpenJPEG by @calixteman in #17983
  • [api-minor] Remove the image-related error message prefixes by @Snuffleupagus in #17979
  • Use the pdf.js warn when using jpx decoder by @calixteman in #17985
  • Extend the globally cached image main-thread copying to "complex" images as well (PR 17428 follow-up) by @Snuffleupagus in #17978
  • Update JpxImage.parseImageProperties to support TypedArray data in IMAGE_DECODERS builds by @Snuffleupagus in #17977
  • Add signal-support in the EventBus, and utilize it in the viewer (PR 17964 follow-up) by @Snuffleupagus in #17967
  • Set correctly the change property for the event triggered when a choice list is changed by @calixteman in #17999
  • Remove all waitForTimeout usage from the annotation integration tests by @timvandermeij in #17969
  • Validate explicit destinations on the worker-thread to prevent DataCloneError (issue 17981) by @Snuffleupagus in #17984
  • Allow to insert several annotations under the same parent in the structure tree by @calixteman in #17986
  • Always enable smoothing when rendering downscaled image by @calixteman in #17868
  • Simplify the way to pass the glyph drawing instructions from the worker to the main thread by @calixteman in #18015
  • Validate additional font-dictionary properties by @Snuffleupagus in #18014
  • Add more validation of width-data by @Snuffleupagus in #18017
  • Reduce code-duplication when caching data in CompiledFont.getPathJs by @Snuffleupagus in #18018
  • Re-factor SimpleLinkService to extend PDFLinkService by @Snuffleupagus in #18013
  • [api-minor] Move the page reference/number caching into the API by @Snuffleupagus in #18001

Don't miss a new pdf.js release

NewReleases is sending notifications on new releases.