This release contains improvements for accessibility, the annotation editor, font conversion, performance, SMasks and the viewer.
Changes since v4.9.155
- Bump the stable version in
pdfjs.config
by @timvandermeij in #19178 - When zooming replace the css-zoomed canvas by the new one only when rendering is finished by @calixteman in #19164
- Ensure that a missing/invalid "Content-Range" header is handled in
PDFNetworkStream
(issue 19075) by @Snuffleupagus in #19114 - Do not stringify errors when logging them by @nicolo-ribaudo in #19148
- Get the first codepoint instead of the first char when using the toUnicode map by @calixteman in #19184
- Support toggling the
PDFFindBar
options with theEnter
key (issue 19175) by @Snuffleupagus in #19185 - Update dependencies and translations to the most recent versions by @timvandermeij in #19190
- Print more warnings about potential problems in Node.js environments by @Snuffleupagus in #19191
- Fix intermittent issues in the
issue14307.pdf
integration tests by @timvandermeij in #19192 - Add a ref test for setting disableFontFace to true by @calixteman in #19197
- Take the
userUnit
into account in thePageViewport
class (issue 19176) by @Snuffleupagus in #19196 - Improve perfs of the font renderer by @calixteman in #19189
- Remove the raw path-strings after creating the actual
Path2D
glyph-objects by @Snuffleupagus in #19200 - Update OpenJPEG to 2.5.3 by @calixteman in #19203
- [Editor] Don't commit the current drawing while zooming by @calixteman in #19202
- Make sure the canvas is always the first child of its wrapper by @calixteman in #19204
- [Editor] When resizing a stamp annotation, the opposite corner must stay fixed by @calixteman in #19201
- Simplify logic to insert canvas as first element by @nicolo-ribaudo in #19206
- Fix intermittent failures when moving a freetext annotation in integration tests by @calixteman in #19198
- Update Puppeteer to version 23.10.2 by @calixteman in #19208
- Update Puppeteer to version 23.10.3 by @calixteman in #19210
- [Editor] Improve drawing on a touch screen. by @calixteman in #19209
- [Editor] Avoid to focus an existing editor when enabling the layer by @calixteman in #19215
- Move the pinch stuff in its own file in order to use for editors by @calixteman in #19216
- [Editor] Add the ability to resize an editor in using a pinch gesture by @calixteman in #19219
- Don't remove trailing regular spaces from the "raw" response headers (issue 19205) by @Snuffleupagus in #19214
- [api-minor] Remove deprecated
getDocument
options (PR 18776 follow-up) by @Snuffleupagus in #19224 - Bump library version to
4.10
by @Snuffleupagus in #19225 - Disable touch-zooming, in the viewer, if
AbortSignal.any
is unsupported (PR 19216 follow-up) by @Snuffleupagus in #19226 - Add basic support for non-embedded HelveticaLTStd-Bold fonts (issue 19234) by @Snuffleupagus in #19236
- Take the absolute value of the font size when the annotation contents is in xhtml (bug 1938087) by @calixteman in #19238
- Disable the
handle reading ranges with missing/invalid "Content-Range" header
unit-test in Google Chrome (PR 19114 follow-up) by @Snuffleupagus in #19237 - Fix left offset when scrolling to search result by @nicolo-ribaudo in #19232
- Update dependencies and translations to the most recent versions by @timvandermeij in #19243
- Add missing
startWorkerTask
calls in the "SaveDocument" handler by @Snuffleupagus in #19246 - Improve the test folder structure by @timvandermeij in #19254
- Remove mention of Bower from the README (PR 15390 follow-up) by @Snuffleupagus in #19258
- Shorten some
if
-statements in thesrc/core/
folder by @Snuffleupagus in #19260 - Remove the unused
glyphNameMap
parameter fromType2Compiled
by @Snuffleupagus in #19263 - Assert that the
fontMatrix
is always valid incompileGlyph
by @Snuffleupagus in #19262 - Reduce duplication when handling "DocException" and "PasswordRequest" messages by @Snuffleupagus in #19259
- For images that include SMask/Mask entries, ignore an SMask defined in the current graphics state (bug 986450) by @Snuffleupagus in #19269
- Update l10n files by @Snuffleupagus in #19271
- Remove the
requestRange
/requestFull
methods from theNetworkManager
class by @Snuffleupagus in #19273