This release contains improvements for the annotation editor, including a UI for deleting annotations and experimental support for highlight annotations, as well as bugfixes and improvements after feedback on the initial PDF.js 4.0 release.
Changes since v4.0.189
- Bump the stable version in
pdfjs.config
by @timvandermeij in #17226 - Don't try to collect a nonexistent field because of an invalid ref by @calixteman in #17233
- Ensure that
fieldObjects
and#collectFieldObjects
handles References correctly by @Snuffleupagus in #17242 - Don't avoid to execute the Blur callback when blurring a text field (bug 1863910) by @calixteman in #17247
- Remove the "Open file"-button from the main toolbar by @Snuffleupagus in #17244
- [Editor] Add a toolbar to selected editors with a button to delete it (bug 1863763) by @calixteman in #17243
- Fix the maxp table version in font to make it visible on Windows by @calixteman in #17253
- Tweak the background-color of the
editorParamsToolbar
s by @Snuffleupagus in #17256 - Update dependencies and translations to the most recent versions by @timvandermeij in #17260
- Set a type for the
Blob
used increateCDNWrapper
(issue 17259) by @Snuffleupagus in #17265 - Rename *.d.ts to *.d.mts by @tamuratak in #17252
- Ensure that the viewer waits for the library to complete loading (issue 17228) by @Snuffleupagus in #17255
- [Editor] Avoid to click on the delete button in the freetext integration tests by @calixteman in #17264
- Move linting to a separate GitHub Actions workflow by @Snuffleupagus in #17267
- Move
gulp typestest
to a separate GitHub Actions workflow by @Snuffleupagus in #17266 - Clean-up the CI workflow a bit by @Snuffleupagus in #17268
- [GENERIC viewer] Fallback to the short-format of the language code (issue 17269) by @Snuffleupagus in #17270
- Fix typo in the
--hcm-highlight-filter
CSS variable name (issue 17254) by @Snuffleupagus in #17272 - Get the field name from its parent when it doesn't have one when collecting fields (bug 1864136) by @calixteman in #17271
- Introduce a GitHub Actions workflow for running the font tests by @timvandermeij in #17263
- Re-factor the
L10n
-implementations to use lowercase language-codes internally by @Snuffleupagus in #17273 - Re-factor how the
GenericL10n
class fetches localization-data by @Snuffleupagus in #17277 - [Editor] Add a tooltip to the delete button by @calixteman in #17281
- Restore the option to set light/dark mode for chromium and generic builds by @calixteman in #17293
- [Editor] Make the alt-text button large enough to display correctly whatever string by @calixteman in #17300
- Throw a
JpegError
when a JPEG image has no frame data (issue 17302) by @Snuffleupagus in #17303 - [Editor] Add a way to extract the outlines of a union of rectangles by @calixteman in #17291
- Re-factor the loading-icons used in the viewer toolbars by @Snuffleupagus in #17287
- [Editor] Add support for saving/printing a newly added Highlight annotation (bug 1865708) by @calixteman in #17304
- Move the editor-buttons in the main toolbar by @Snuffleupagus in #17294
- Make sure that only one radio button is checked in its group (bug 1864136) by @calixteman in #17318
- [Editor] Only focus the canvas for mouse events when drawing in the canvas by @calixteman in #17330
- Use the
fetchData
helper function in more cases by @Snuffleupagus in #17328 - Fix examples/webpack/README.md. by @tamuratak in #17320
- Remove language codes from text strings. by @calixteman in #17331
- Update dependencies and translations to the most recent versions by @timvandermeij in #17334