This release contains improvements for annotations, the annotation editor, font conversion, text selection and the viewer.
Changes since v5.4.149
Bump the stable version in pdfjs.config by @timvandermeij in https://github.com/mozilla/pdf.js/pull/20215
Update dependencies and translations to the most recent versions by @timvandermeij in https://github.com/mozilla/pdf.js/pull/20216
Add a function changeLightness in order to change the lightness of a RGB color by @calixteman in https://github.com/mozilla/pdf.js/pull/20204
[Editor] Hide the comment sidebar on document change by @timvandermeij in https://github.com/mozilla/pdf.js/pull/20220
[Editor] Add editors with a comment in the sidebar by @calixteman in https://github.com/mozilla/pdf.js/pull/20217
[Editor] Make scrollable the area containing the comments in the sidebar by @calixteman in https://github.com/mozilla/pdf.js/pull/20222
[Editor] Use the color of the annotation for the background of the comment button by @calixteman in https://github.com/mozilla/pdf.js/pull/20221
[Editor] Don't save the image when updating a stamp annotation by @calixteman in https://github.com/mozilla/pdf.js/pull/20233
Add a new function renderRichText to be used in the annotation layer by @calixteman in https://github.com/mozilla/pdf.js/pull/20231
Fix the rendering of XFA rich text in popup annotations by @timvandermeij in https://github.com/mozilla/pdf.js/pull/20238
Bump actions/setup-python from 5 to 6 by @dependabot[bot] in https://github.com/mozilla/pdf.js/pull/20242
Bump actions/setup-node from 4 to 5 by @dependabot[bot] in https://github.com/mozilla/pdf.js/pull/20243
Improve the integration test code by @timvandermeij in https://github.com/mozilla/pdf.js/pull/20172
[Editor] Fix saving a deleted popup by @calixteman in https://github.com/mozilla/pdf.js/pull/20244
[Editor] Add the dates and rich text if any to the editors in order to use them when displaying the popup by @calixteman in https://github.com/mozilla/pdf.js/pull/20245
Unskip the must check that date entered by the user is consistent scripting integration test for Firefox by @timvandermeij in https://github.com/mozilla/pdf.js/pull/20239
[Editor] Make sure the comment button is at the right place when adding it in the toolbar by @calixteman in https://github.com/mozilla/pdf.js/pull/20248
[Editor] When clicking on a comment in the sidebar, wait for the annotation editor layer to be rendered by @calixteman in https://github.com/mozilla/pdf.js/pull/20247
Reduce background canvas resolution by @nicolo-ribaudo in https://github.com/mozilla/pdf.js/pull/20255
Add an option in scrollIntoView and goToXY in order to be able to center vertically or horizontally the point XY in the viewer container by @calixteman in https://github.com/mozilla/pdf.js/pull/20253
[Editor] Don't throw when switching to editing mode before an annotation editor layer is rendered by @calixteman in https://github.com/mozilla/pdf.js/pull/20259
[Editor] Cleanup the pages not being fully rendered before switching to editing mode by @calixteman in https://github.com/mozilla/pdf.js/pull/20258
Make sure that a good constrast ratio is respected when darkening/lightening a color by @calixteman in https://github.com/mozilla/pdf.js/pull/20240
Store ops bboxes in a linear Uint8Array by @nicolo-ribaudo in https://github.com/mozilla/pdf.js/pull/20208
Fix JSDoc description in src/display/api.js by @nicolo-ribaudo in https://github.com/mozilla/pdf.js/pull/20267
Only record bboxes when needed by @nicolo-ribaudo in https://github.com/mozilla/pdf.js/pull/20256
Use a dichotomy to find a color with a good contrast ratio by @calixteman in https://github.com/mozilla/pdf.js/pull/20269
Replace manual returns with pending in the integration tests by @timvandermeij in https://github.com/mozilla/pdf.js/pull/20271
Consider a ttf font with both Symbolic and Nonsymbolic flags set with a Differences array in the encoding dict as non-symbolic by @calixteman in https://github.com/mozilla/pdf.js/pull/20270
Update dependencies and translations to the most recent versions by @timvandermeij in https://github.com/mozilla/pdf.js/pull/20272
[Editor] Add a new popup for comments (bug 1987425) by @calixteman in https://github.com/mozilla/pdf.js/pull/20249
[Annotation] Use the new popup in reading mode (bug 1987426) by @calixteman in https://github.com/mozilla/pdf.js/pull/20250
[Editor] Fix the position of the comment popup and its dialog by @calixteman in https://github.com/mozilla/pdf.js/pull/20278
[Annotation] Save the comment changes made in reading mode (bug 1987427) by @calixteman in https://github.com/mozilla/pdf.js/pull/20274
Avoid unused css variables by @calixteman in https://github.com/mozilla/pdf.js/pull/20279
Use console.warn/console.info where appropriate by @sigmaSd in https://github.com/mozilla/pdf.js/pull/20252
[Editor] Fix the focus outline for the comment dialog buttons by @calixteman in https://github.com/mozilla/pdf.js/pull/20281
[Editor] Make sure to not add extra editors when showing again a destroyed page by @calixteman in https://github.com/mozilla/pdf.js/pull/20282
Update OpenJPEG to 2.5.4 by @calixteman in https://github.com/mozilla/pdf.js/pull/20286
Serialize font data into an ArrayBuffer by @ryzokuken in https://github.com/mozilla/pdf.js/pull/20197
[Editor] Make sure the comment dialog is visible on the screen (bug 1989304) by @calixteman in https://github.com/mozilla/pdf.js/pull/20283
[Editor] Remove useless computations when setting the dimensions of an editor by @calixteman in https://github.com/mozilla/pdf.js/pull/20285
[Editor] When in HCM, don't apply light/dark color in the comment buttons (bug 1977269) by @calixteman in https://github.com/mozilla/pdf.js/pull/20291
[Editor] Update the color and the position of the comment button in reading mode they've been modified by @calixteman in https://github.com/mozilla/pdf.js/pull/20295
[Editor] Don't add scrollbars when it's useless in the comment sidebar (bug 1990099) by @calixteman in https://github.com/mozilla/pdf.js/pull/20297
[Editor] Avoid to use similar colors for background and foreground colors in HCM (bug 1990082) by @calixteman in https://github.com/mozilla/pdf.js/pull/20298
[Editor] Use some percent coordinates for the comment dialog (bug 1990104) by @calixteman in https://github.com/mozilla/pdf.js/pull/20299
[Editor] Fix the button labels in the comment dialog (bug 1990499) by @calixteman in https://github.com/mozilla/pdf.js/pull/20300
[Editor] Make the comment sidebar resizable (bug 1990544) by @calixteman in https://github.com/mozilla/pdf.js/pull/20303
[Editor] Add a title to the comment buttons (bug 1990813) by @calixteman in https://github.com/mozilla/pdf.js/pull/20305
[Editor] Move the focus to the comment button once editing is done (bug 1990820) by @calixteman in https://github.com/mozilla/pdf.js/pull/20304
[Editor] Make sure the selected editor is correctly focused after switching editing mode (bug 1990872) by @calixteman in https://github.com/mozilla/pdf.js/pull/20307
[Editor] Fix the URL for the 'Learn more' link in the comment sidebar (bug 1990454) by @calixteman in https://github.com/mozilla/pdf.js/pull/20308
[Editor] Show the comments in the sidebar in the chronological order,newest to oldest (bug 1990762) by @calixteman in https://github.com/mozilla/pdf.js/pull/20310
Update dependencies by @calixteman in https://github.com/mozilla/pdf.js/pull/20309
[Editor] Give the focus to the comment button after editing in reading mode by @calixteman in https://github.com/mozilla/pdf.js/pull/20311
[Annotation] In reading mode with new commment stuff enabled, use the comment popup for annotations without a popup but with some contents (bug 1991029) by @calixteman in https://github.com/mozilla/pdf.js/pull/20312
[Editor] Add some telemetry for the commenting feature (bug 1991172) by @calixteman in https://github.com/mozilla/pdf.js/pull/20313
[Editor] Remove useless sidebar css by @calixteman in https://github.com/mozilla/pdf.js/pull/20314
[Editor] Add a fake annotation (in the annotation layer) associated with an editor in order to be able to show the comment button (bug 1989420) by @calixteman in https://github.com/mozilla/pdf.js/pull/20321
[Editor] Avoid an error when getting the editors telemetry data by @calixteman in https://github.com/mozilla/pdf.js/pull/20318
[Annotation] Fix some timezone issues when getting a date from the date picker (bug 1991584) by @calixteman in https://github.com/mozilla/pdf.js/pull/20320
[Editor] Add the possibility to unselect a comment from the sidebar by @calixteman in https://github.com/mozilla/pdf.js/pull/20322
Increase the rendering quality of the detail view (bug 1991482) by @calixteman in https://github.com/mozilla/pdf.js/pull/20323
Improve serif fallback font name matching by @james-atticus in https://github.com/mozilla/pdf.js/pull/20224
Fix the creation of the annotation layer in the ref tests by @calixteman in https://github.com/mozilla/pdf.js/pull/20329
[Editor] Make sure the comment dialog always have relative coordinates between 0% and 100% by @calixteman in https://github.com/mozilla/pdf.js/pull/20328
[Editor] Slightly move the resizer in the sidebar comment in order to make it easier to use (bug 1992385) by @calixteman in https://github.com/mozilla/pdf.js/pull/20332
Only apply word spacing when there is a 0x20 in the text chunk by @calixteman in https://github.com/mozilla/pdf.js/pull/20334
Bump tar-fs from 3.1.0 to 3.1.1 by @dependabot[bot] in https://github.com/mozilla/pdf.js/pull/20301
Fix incremental saving with hybrid references by @calixteman in https://github.com/mozilla/pdf.js/pull/20333