v5.1.91
This release contains improvements for the annotation editor, font conversion, performance, SMask rendering and the viewer, as well as bugfixes and improvements after feedback on the initial PDF.js 5.0 release.
Changes since v5.0.375
- Bump the stable version in
pdfjs.configby @timvandermeij in #19663 - Replace a few simple regular expressions in the XFA-code with string parsing by @Snuffleupagus in #19662
- Update dependencies and translations to the most recent versions by @timvandermeij in #19665
- [api-minor] Attempt to support fetching the raw data of the PDF document from the
PDFDocumentLoadingTask-instance (issue 15085) by @Snuffleupagus in #19632 - Bump library version to
5.1by @Snuffleupagus in #19667 - Don't get ICC color space files if required API options are missing by @timvandermeij in #19669
- Fix the "Signature Editor Basic operations must check copy and paste" integration test by @timvandermeij in #19671
- Remove documentation for unused l10n variable (PR 18492 follow-up) by @Snuffleupagus in #19673
- For JPEG images with CMYK-data, ensure that the alpha-component is set correctly when WebAssembly is disabled (issue 19676) by @Snuffleupagus in #19677
- Introduce a
fetchSynchelper function for theIccColorSpaceclasses by @Snuffleupagus in #19675 - Introduce more
asynccode in thesrc/core/document.jsfile by @Snuffleupagus in #19674 - Improve
addSignatureDescription/editSignatureDescriptionhandling (issue 19683) by @Snuffleupagus in #19684 - [Editor] Take into account the parent rotation when switch to edit mode (issue #19424) by @calixteman in #19685
- Fix the MD5 computation in the
src/core/writer.jsfile by @Snuffleupagus in #19693 - Improve the implementation in
src/core/writer.jsa little bit by @Snuffleupagus in #19692 - Replace the
setValuesfunction withArray.prototype.fill()in thesrc/core/bidi.jsfile by @Snuffleupagus in #19703 - [api-minor] Add a basic
AbortSignal.anypolyfill in PDF.jslegacybuilds by @Snuffleupagus in #19681 - Extend
getSupplementalGlyphMapForCalibriwith Pound-sign (issue 19695) by @Snuffleupagus in #19696 - Isolate the scripting integration tests by @timvandermeij in #19705
- [api-minor] Use a Path2D when doing a path operation in the canvas (bug 1946953) by @calixteman in #19689
- Isolate the "move editor with arrows" freetext editor integration tests by @timvandermeij in #19706
- Introduce
Math.sumPreciseusage in the code-base by @Snuffleupagus in #19710 - Update dependencies and translations to the most recent versions by @timvandermeij in #19704
- Fix save/restore while in smask mode by @calixteman in #19708
- Isolate the "create editor with keyboard" freetext editor integration tests by @timvandermeij in #19711
- Take into account the path and the line width when consuming a stroked path by @calixteman in #19715
- Use the
MathClamphelper function even more (PR 19617 follow-up) by @Snuffleupagus in #19714 - Add new bounding-box helpers in
Utilto reduce code duplication by @Snuffleupagus in #19713 - Take into account the group bbox by @calixteman in #19716
- Don't overwrite the global alpha when switching to smask mode (bug 1764587) by @calixteman in #19717
- In the struct tree a kid can be a reference to an MCID entry (issue #19694) by @calixteman in #19702
- Remove
Array.prototype.reduceusage from thesrc/core/xfa/template.jsfile by @Snuffleupagus in #19691 - [api-minor] Enable
enableAutoLinkingby default by @Snuffleupagus in #19701 - Pass the
XRef-instance explicitly to theStructTreeRootclass, and simplify theStructElementNode.prototype.rolegetter by @Snuffleupagus in #19719 - [Editor] Fix the border color of a tab panel in HCM (bug 1956110) by @calixteman in #19722
- [Editor] in the signature UI, disable the description input if there is no signature (bug 1956114) by @calixteman in #19725
- Use
Util.rectBoundingBoxmore in the annotation code (PR 19713 follow-up) by @Snuffleupagus in #19726 - [Editor] Set an aria-description for an added signature (bug 1956513) by @calixteman in #19728
- Update @fluent/dom to 0.10.1 by @calixteman in #19730
- Pre-apply the transform when building the
Path2Dobjects for Type3-fonts by @Snuffleupagus in #19731 - [Editor] Add a border to the undo button in the snackbar in order to make a contrast (bug 1952563) by @calixteman in #19734
- Spell "properly" in viewer integration-test names by @Snuffleupagus in #19740
- Simplify handling of the color-parameter in
TilingPattern(PR 4824 follow-up) by @Snuffleupagus in #19737 - Shorten the
PDFViewerApplication._initializeViewerComponentsmethod by @Snuffleupagus in #19720 - Reduce duplication when specifying the fn-operations in
buildPaintImageXObjectby @Snuffleupagus in #19739 - [api-minor] Attempt to improve support for using the PDF.js builds with Vite by @Snuffleupagus in #19733
- Apply char/word-spacing correctly for missing Type3-glyphs by @Snuffleupagus in #19735