v4.6.82
This release contains improvements for the annotation editor, font rendering, form rendering, performance, text selection and the viewer.
Changes since v4.5.136
- Bump the stable version in
pdfjs.config
by @timvandermeij in #18500 - Shorten the errors mentioning API parameters in
BaseCMapReaderFactory
andBaseStandardFontDataFactory
by @Snuffleupagus in #18502 - Initialize all user-options upfront in AppOptions by @Snuffleupagus in #18501
- Disable link annotations during text selection by @nicolo-ribaudo in #18481
- Ignore non-dictionary nodes when parsing StructTree data (issue 18503) by @Snuffleupagus in #18504
- Stop testing in Node.js 21 since it's reached end-of-life by @Snuffleupagus in #18505
- Update dependencies to the most recent versions by @timvandermeij in #18506
- Remove
PDFWorkerUtil
and move its contents intoPDFWorker
instead by @Snuffleupagus in #18507 - Remove the
globals
dependency by @timvandermeij in #18509 - Improve how the findbar's toggle button is referenced in the viewer code by @timvandermeij in #18510
- [Editor] Implement the new alt text flow (bug 1909604) by @calixteman in #18492
- [Editor] Add a checkerboard behind the image preview in the new alt-text dialog in order to see its potential transparency by @calixteman in #18516
- [Editor] Allow Float32Array for quadpoints in annotations (bug 1907958) by @calixteman in #18526
- Give all HTML button elements a type by @timvandermeij in #18517
- Introduce a CSS variable for the toolbar height (bug 1171799) by @timvandermeij in #18518
- Further emphasize the importance of
Attach (recommended) or Link to PDF file
in the bug report template by @Snuffleupagus in #18535 - Move all event listeners into
Toolbar.prototype.#bindListeners
by @Snuffleupagus in #18523 - [Editor] Add a new dialog for alt-text settings (bug 1909604) by @calixteman in #18537
- [Editor] Use the color defined for the message bar foreground by @calixteman in #18539
- [Editor] Fix l10n issues by @calixteman in #18538
- [Editor] Don't create the image settings dialog if new alt-text is disabled by @calixteman in #18540
- [Editor] Avoid to have the create alt-text button without a click listener by @calixteman in #18543
- Fix the color of the buttons in a dialog in HCM by @calixteman in #18547
- Link to the list of supported browsers in the bug report template by @Snuffleupagus in #18542
- Inline single-line event handlers in the
web/app.js
file by @Snuffleupagus in #18527 - [Editor] Load the model when the user switch to the stamp editing mode by @calixteman in #18546
- Improve the larger event listeners in the
web/app.js
file by @Snuffleupagus in #18544 - [Editor] Guess alt text even when showing the dialog is disabled by @calixteman in #18541
- Stop sending the unused
options
parameter to various download-methods in the viewer by @Snuffleupagus in #18551 - Empty fields are 0 when using AFSimple_Calculate by @calixteman in #18552
- Update the Babel plugin to remove empty static blocks by @nicolo-ribaudo in #18562
- Update dependencies to the most recent versions by @timvandermeij in #18554
- Use the
waitForEvent
helper function in the text layer integration tests by @timvandermeij in #18555 - Define a few editor event handler functions inline by @Snuffleupagus in #18560
- [Editor] Update the disclaimer string in the new alt-text dialog (bug 1911738) by @calixteman in #18570
- Remove obsolete
otherPages
variable from the scripting integration tests by @timvandermeij in #18567 - Don't stop calculating field values when a Calculate callback throws by @calixteman in #18566
- [Editor] Add the uiManager to the window object when testing by @calixteman in #18574
- [Editor] Move the AI icon on the top of its parent div by @calixteman in #18575
- [Editor] Dispatch changes in prefs enableAltTextModelDownload and enableGuessAltText to the viewer (bug 1912024) by @calixteman in #18573
- Revert "[Editor] Dispatch changes in prefs enableAltTextModelDownload and enableGuessAltText to the viewer (bug 1912024)" by @calixteman in #18578
- Dispatch changes in prefs enableAltTextModelDownload and enableGuessAltText to the viewer (bug 1912024) by @calixteman in #18579
- [Editor] Pass a buffer instead of a typed array when passing image data to the model by @calixteman in #18580
- Enable the
unicorn/{prefer-includes,throw-new-error}
linting rules by @timvandermeij in #18571 - Remove the
eslint-plugin-mozilla
dependency by @timvandermeij in #18583 - Group and scope the findbar rules using CSS nesting by @timvandermeij in #18568
- [Editor] Change the background color of the image preview in the new alt text dialog by @calixteman in #18584
- [Editor] Remove event listeners with
AbortSignal.any()
by @Snuffleupagus in #18586 - Check that
AbortSignal.any()
is supported inPDFViewer
too (PR 18586 follow-up) by @Snuffleupagus in #18587 - Revert "[Editor] Pass a buffer instead of a typed array when passing image data to the model" by @calixteman in #18588
- [Editor] Add a first test to test the new alt text flow by @calixteman in #18581
- [Firefox] Remove the "loadaiengineprogress" listener with
AbortSignal.any()
by @Snuffleupagus in #18592 - Remove the sidebar resizing event listeners with an
AbortController
by @Snuffleupagus in #18593 - [Editor] Add the telemetry for the new alt text (bug 1912500) by @calixteman in #18589
- Group and scope the secondary toolbar button container/icon rules using CSS nesting by @timvandermeij in #18595
- Remove the
secondaryToolbarButton
CSS class by @timvandermeij in #18596 - Group and scope the secondary toolbar rules using CSS nesting by @timvandermeij in #18597
- Limit base-class initialization checks to development and TESTING modes by @Snuffleupagus in #18598
- Remove the
enableHighlightEditor
preference by @Snuffleupagus in #18594 - [api-minor] Allow specifying custom match logic in PDFFindController by @nicolo-ribaudo in #18549
- Bump library version to
4.6
by @Snuffleupagus in #18604 - Improve the viewer CSS after nesting the findbar and secondary toolbar rules by @timvandermeij in #18601
- Handle the "switchannotationeditorparams" event in the editor-code (issue 18196) by @Snuffleupagus in #18605
- Link to official releases and the demo viewer in the bug report template by @Snuffleupagus in #18610
- Fix the telemetry for the new alt-text flow by @calixteman in #18611
- Enable disabled integration tests for Firefox by @calixteman in #18613
- Shorten the
PDFViewerApplication._parseHashParams
method by @Snuffleupagus in #18612 - Update dependencies and translations to the most recent versions by @timvandermeij in #18615
- Set the event handlers in the integration tests before any event is triggered by @calixteman in #18617
- [Editor] Move setting
window.uiManager
back to the test code by @timvandermeij in #18623 - Fix the "must check that a value is correctly updated on a field and its siblings" scripting integration test by @timvandermeij in #18624
- Use standard glyph mapping for non-embedded and non-composite Calibri fonts (issue 18208) by @Snuffleupagus in #18628
- Send fetch requests for all page dict lookups in parallel by @richard-smith-preservica in #18627
- Support an odd number of digits in hexadecimal strings (issue 18645) by @Snuffleupagus in #18646
- Don't show the print dialog when printing in some integration tests by @calixteman in #18635
- Introduce a helper method for fetching l10n-data in
PDFDocumentProperties
by @Snuffleupagus in #18636 - Introduce a
L10n
-method to translate an element once, and use that inPDFLayerViewer
by @Snuffleupagus in #18643 - Use
HTMLCanvasElement.toBlob()
unconditionally inPDFPrintService
by @Snuffleupagus in #18644 - Update dependencies and translations to the most recent versions by @timvandermeij in #18648
- Utilize Fluent to format numbers and dates in
PDFDocumentProperties
/AnnotationLayer
by @Snuffleupagus in #18638 - [Editor] Add a missing parameter in the telemetry for the new alt text flow (bug 1914480) by @calixteman in #18650
- [Editor] Utilize Fluent "better" when localizing the resizer DOM-elements by @Snuffleupagus in #18649
- [Editor] Define the "pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer" string once by @Snuffleupagus in #18654
- [Editor] Fix few telemetry issues with the new alt text flow (bug 1915434) by @calixteman in #18661
- Upgrade Puppeteer to version 23.1.1 by @timvandermeij in #18590
- [CRX] Remove obsolete manifest features by @Rob--W in #18651
- Simplify the
PDFDocumentProperties.#updateUI
method by @Snuffleupagus in #18655 - Use the URL global instead of the deprecated url.parse by @nicolo-ribaudo in #18657
- Use "full" localization ids in the
PDFDocumentProperties
class by @Snuffleupagus in #18663 - [Editor] Update the loading icon when wait for ML to take into account prefered-reduced-motion setting by @calixteman in #18666
- Update l10n files by @Snuffleupagus in #18671
- Use "full" localization ids throughout the code-base by @Snuffleupagus in #18674
- Add a helper function for http/https requests in
src/display/node_stream.js
by @Snuffleupagus in #18665 - Shorten the code that inits
AnnotationEditorLayerBuilder
in theweb/pdf_page_view.js
file by @Snuffleupagus in #18672 - Add an option (i.e. --noFirefox) to only use Chrome when running tests by @calixteman in #18675