v4.7.76
This release contains improvements for accessibility, the annotation editor, annotation rendering, font conversion, form rendering, text selection, tiling pattern rendering and the viewer.
Changes since v4.6.82
- Bump the stable version in
pdfjs.config
by @timvandermeij in #18678 - [Editor] Make the focused stamp annotation more clear from a screen reader point of view (bug 1911994) by @calixteman in #18664
- [Editor] Make highlight annotations editable (bug 1883884) by @calixteman in #18427
- Update dependencies and translations to the most recent versions by @timvandermeij in #18679
- Use
Headers
consistently in the differentIPDFStream
implementations by @Snuffleupagus in #18673 - [Editor] Make the stamp annotations alt text readable by either VO or NVDA (bug 1912001) by @calixteman in #18658
- [Editor] Remove the disclaimer when the user is editing the alt-text in the new alt-text modal (bug 1911764) by @calixteman in #18670
- Improve the
StructTreeLayerBuilder.render
method by @Snuffleupagus in #18689 - In the autoprint integration test, resolve the promise on 'afterprint' event by @calixteman in #18690
- [Editor] Avoid to throw when an highlight annotation is resetted by @calixteman in #18697
- Make tagged images visible for screen readers (bug 1708040) by @calixteman in #18692
- Avoid to have a white line around the canvas by @calixteman in #18698
- Use "full" localization ids in the
ColorPicker
class (PR 18674 follow-up) by @Snuffleupagus in #18705 - Use "full" localization ids in the
AltText
class (PR 18674 follow-up) by @Snuffleupagus in #18706 - Use response-
Headers
in the differentIPDFStream
implementations by @Snuffleupagus in #18682 - Prevent
.visibleMediumView
from overriding already hidden elements (issue 18704, PR 18596 follow-up) by @Snuffleupagus in #18707 - [CRX] Migrate Chrome extension to Manifest Version 3 by @Rob--W in #18681
- [CRX] Detect availability of DNR responseHeaders before use by @Rob--W in #18711
- Update dependencies and translations to the most recent versions by @timvandermeij in #18708
- [JS] Let AFSpecial_KeystrokeEx match a format without 'decoration' (bug 1916714) by @calixteman in #18718
- [Editor] Avoid to have the ML disclaimer when the ML engine isn't ready (bug 1917543) by @calixteman in #18719
- [Editor] Avoid to have a stamp editor resizing itself by @calixteman in #18716
- Remove ununsed static
HighlightEditor._l10nPromise
field by @Snuffleupagus in #18724 - Consume any pending path before drawing an annotation by @calixteman in #18726
- Consider foo-\nBar as a compound word by @calixteman in #18730
- Ensure that textLayers can be rendered in parallel, without interfering with each other by @Snuffleupagus in #18731
- [JS] Correctly format floating numbers when they're close to an integer (bug 1918115) by @calixteman in #18737
- Bump dset from 3.1.3 to 3.1.4 by @dependabot in #18738
- [Editor] Avoid an extra new line when serializing a FreeText annotation (bug 1897909) by @calixteman in #18740
- Fluent: use explicit NUMBER() in plural variants by @flodolo in #18741
- Use the "pageColorsBackground" option as background-color for non-loaded pages (issue 18680) by @Snuffleupagus in #18742
- [CRX] Enable WebAssembly in Chrome extension by @Rob--W in #18748
- [CRX] Fix feature detect of DNR responseHeaders option by @Rob--W in #18728
- [Editor] Take into account the device pixel ratio when drawing an added image by @calixteman in #18749
- Simplify the code that picks the appropriate NetworkStream-implementation by @Snuffleupagus in #18756
- Rename the toolbar buttons in order to free their current names by @calixteman in #18757
- Read a signed integer when using PUSHW in sanitizing a font (bug 1919513) by @calixteman in #18760
- Fix the rendering of the different separators we've in the UI by @calixteman in #18761
- Link to the new issue templates from the README (PR 18308 follow-up) by @Snuffleupagus in #18763
- Ignore non-existing /Shading resources during parsing (issue 18765) by @Snuffleupagus in #18766
- Use
fs/promises
in the Node.js unit-tests (PR 17714 follow-up) by @Snuffleupagus in #18772 - Update dependencies and translations to the most recent versions by @timvandermeij in #18771
- [api-minor] Pass
CanvasFactory
/FilterFactory
, rather than instances, togetDocument
by @Snuffleupagus in #18776 - Bump library version to
4.7
by @Snuffleupagus in #18777 - [Editor] Don't show the ml toggle button when the ml is disabled (bug 1920515) by @calixteman in #18779
- Refactor the toolbar html & css to improve its overall accessibility (bug 1171799, bug 1855695) by @calixteman in #18385
- Update
typescript
to version 5.6.2 by @timvandermeij in #18781 - Remove useless css variable --editor-toolbar-base-offset by @calixteman in #18783
- Remove duplicated --toolbar-height definition in the css by @calixteman in #18784
- Correctly compute the font size when printing a text field with an auto font size (bug 1917734) by @calixteman in #18790
- Increase the size of the toolbar depending on the uidensity (bug 1171799) by @calixteman in #18786
- Add Calixte to the list of authors by @sylvestre in #18791
- Remove the unused
splitToolbarButton
CSS class (PR 18385 follow-up) by @Snuffleupagus in #18795 - Unify separate
#toolbarContainer
-blocks in the CSS (PR 18385 follow-up) by @Snuffleupagus in #18796 - Fix the rendering of tiling pattern when the steps are lower than the tile dimensions (bug 1837738) by @calixteman in #18798
- Slightly re-factor the
transportFactory
initialization ingetDocument
by @Snuffleupagus in #18785 - Remove
trackTransform
arguments fromCachedCanvases.getCanvas
-calls (PR 15281 follow-up) by @Snuffleupagus in #18799 - Add basic support for non-embedded GillSansMT fonts (issue 18801) by @Snuffleupagus in #18802
- [Editor] When deleting an annotation with popup, then delete the popup too by @calixteman in #18800
- [Editor] Avoid to have a selected stamp annotation on top of the secondary toolbar (bug 1911980) by @calixteman in #18793
- Ensure that the CursorTools-buttons are disabled e.g. during editing (PR 15522 follow-up) by @Snuffleupagus in #18812
- [api-minor] Update the minimum supported Google Chrome version to 103 by @Snuffleupagus in #18822
- Re-factor how
PDFLayerViewer
decides if the UI needs to updated on "optionalcontentconfigchanged" events by @Snuffleupagus in #18829 - Make the secondary menu button usable with the keyboard when NVDA is enabled by @calixteman in #18830
- Write the display flags in F entry when saving an annotation (issue 18072) by @calixteman in #18824
- Fix
toolbarViewer
/toolbarContainer
regressions (PR 18385, 18786 follow-up) by @Snuffleupagus in #18831 - [Editor] Add the possibility to save an updated stamp annotation (bug 1921291) by @calixteman in #18805
- [GV] Increase the height (48px) of the toolbar in order to fit the a11y recommendations (bug 1838602) by @calixteman in #18837
- [Editor] Make the editor deserialization async by @calixteman in #18843
- Remove the
PDFViewer.annotationEditorMode
setter event listeners withAbortSignal.any()
by @Snuffleupagus in #18842 - [Editor] Make stamp annotations editable (bug 1921291) by @calixteman in #18834
- Fluent: remove NUMBER() function from variant selector by @flodolo in #18846
- [Editor] Avoid an exception when undoing the deletion of a pre-existing annotation by @calixteman in #18851
- Fix missing annotation parent in using the one from the Fields entry by @calixteman in #18845
- Change how we handle l10n-args for dates in the DocumentProperties dialog (bug 1922618) by @Snuffleupagus in #18852
- Add more authors by @sylvestre in #18854
- Keep the empty lines in the text fields by @calixteman in #18853
- Update dependencies and translations to the most recent versions by @timvandermeij in #18855
- Use Calibri and Lucida Console, when it's possible, in place of sans-serif and monospaced (bug 1922063) by @calixteman in #18844