v3.6.172
timvandermeij
released this
07 May 11:18
·
2912 commits
to master
since this release
This release features improvements in the areas of performance, text selection/searching, image/pattern rendering, accessibility and documentation/types.
Changes since v3.5.141
- Bump versions in
pdfjs.config
by @timvandermeij in #16244 - Reduce duplication when dispatching the "switchannotationeditorparams" event by @Snuffleupagus in #16248
- [api-minor] Remove SVG-rendering from the viewer (PR 15173 follow-up) by @Snuffleupagus in #16226
- [Firefox] Add CSS at-page size when printing from FirefoxPrintService (bug 1820651) by @fchasen in #16241
- Tweak the
--scale-factor
CSS-variable warning threshold (issue 16254) by @Snuffleupagus in #16256 - [GeckoView] Add a basic toolbar with a download button for GV (bug 1823164) by @calixteman in #16260
- Tweak the
loadingBar
CSS to better support RTL locales by @Snuffleupagus in #16261 - Tweak the
pageNumber
CSS to better support RTL locales by @Snuffleupagus in #16262 - Force-install when using
gulp dist-install
(issue 15435) by @Snuffleupagus in #16246 - [api-minor] Update the minimum supported Google Chrome version by @Snuffleupagus in #16249
- [Firefox] Use
float: inline-start/inline-end
directly in MOZCENTRAL builds (PR 15968 follow-up) by @Snuffleupagus in #16265 - Thin whitespaces must have their own span by @calixteman in #16225
- Attempt to also cache images at the "page"-level (issue 16263) by @Snuffleupagus in #16268
- Fix search of numbers inside fractions by @calixteman in #16275
- Skip transfers, in
LoopbackPort.postMessage
, for PDF.jslegacy
-builds (issue 16255) by @Snuffleupagus in #16279 - [GeckoView] Show the download button by default and add a pref to disable it (bug 1827963) by @calixteman in #16284
- Avoid when it's possible to use Array.concat when compiling a CFF font by @calixteman in #16292
- Limit the
Path2D
-checks in the worker-thread to Node.js (PR 16238 follow-up, issue 16289) by @Snuffleupagus in #16291 - Remove
CFFCompiler.compileGlobalSubrIndex
, and simplifyCFFCompiler.compileTypedArray
by @Snuffleupagus in #16294 - Reduce some duplication when toggling buttons in the viewer toolbars by @Snuffleupagus in #16281
- Slightly modernize print-related code by @Snuffleupagus in #16288
- Add the possibility to copy all the pdf text whatever the rendered pages are (bug 1788035) by @calixteman in #16286
- Remove null chars, i.e.
\u0000
, when getting all text (PR 16286 follow-up) by @Snuffleupagus in #16297 - Create the "hiddenCopyElement" in the
PDFViewer
constructor (PR 16286 follow-up) by @Snuffleupagus in #16298 - Update packages and translations by @Snuffleupagus in #16296
- Update TypeScript to version
5
by @Snuffleupagus in #16299 - [api-minor] Add support, in
PDFFindController
, for mixing phrase/word searches (issue 7442) by @Snuffleupagus in #16247 - Use CustomEvent when dispatching the "webviewerloaded" event by @Pascal-D in #16295
- [Editor] Take into account the initial rotation (issue #16278) by @calixteman in #16301
- [api-minor] Don't normalize the text used in the text layer. by @calixteman in #16200
- [GeckoView] Don't change style for the download button when focused/hovered by @calixteman in #16308
- Compatible with ResizeObserver borderBoxSize in legacy safari by @linxianxi in #16311
- Correctly clip the text in the text layer (fixes #16316) by @calixteman in #16318
- Disable the "copy all text" feature when
enablePermissions
is set (PR 16286 follow-up) by @Snuffleupagus in #16320 - Enforce double-colon notation for CSS pseudo-elements by @Snuffleupagus in #16317
- Introduce some
:is
usage in the xfaLayer CSS by @Snuffleupagus in #16310 - Introduce some
:is
usage in the textLayer CSS by @Snuffleupagus in #16313 - Introduce some
:is
usage in the PDFViewer CSS by @Snuffleupagus in #16314 - Introduce some
:is
usage in the annotationLayer CSS by @Snuffleupagus in #16315 - Introduce some
:is
usage in the viewer CSS by @Snuffleupagus in #16323 - Introduce some
:is
usage in the debugger CSS by @Snuffleupagus in #16324 - Update
eslint-plugin-mozilla
to avoid having to force-install packages (issue 15429) by @Snuffleupagus in #16327 - Remove the
PRODUCTION
build-target by @Snuffleupagus in #16305 - Don't include Chrome-specific CSS rules in MOZCENTRAL builds by @Snuffleupagus in #16326
- Remove unnecessary closures in the CMap code by @Snuffleupagus in #16331
- Remove the remaining unnecessary closures in the
src/core/primitives.js
file by @Snuffleupagus in #16332 - Remove the
PDF20
closure, in thesrc/core/crypto.js
file by @Snuffleupagus in #16334 - Don't force-install packages in the CI job anymore by @timvandermeij in #16335
- Update translations and packages by @timvandermeij in #16338
- Don't use the deprecated
CustomEvent.initCustomEvent
method anymore by @timvandermeij in #16336 - [GeckoView] Change the toolbar for a static one on the top of the viewer (bug 1829366) by @calixteman in #16340
- Allow text-selection, but not copying, when
enablePermissions
is set (PR 16320 follow-up) by @Snuffleupagus in #16333 - Prevent incomplete copy-all behaviour while text-extraction is running (PR 16286 follow-up) by @Snuffleupagus in #16347
- Remove the unused
getXhr
-option in theNetworkManager
constructor by @Snuffleupagus in #16357 - Avoid some repeated
stringToBytes
-calls in thesrc/core/crypto.js
file by @Snuffleupagus in #16354 - [api-minor] Stop including the "lib"-build in the
pdfjs-dist
repository by @Snuffleupagus in #16350 - Update the styling of the findbar
findMsg
-element (issue 16355) by @Snuffleupagus in #16356 - Declare the
linkService
andl10n
properties as optional in thePDFViewerOptions
documentation by @timvandermeij in #16361 - Fix two intermittents issues in integration tests by @calixteman in #16344
- Chmod ugo-x gv-toolbarButton-download.svg by @calixteman in #16365
- Introduce a GitHub Actions workflow for publishing the website by @timvandermeij in #16364
- Update type documentations for #16307, #16359 by @SebCorbin in #16362
- Include the entire
git
history in the work-flows (issue 16366) by @Snuffleupagus in #16371 - Limit the
publish_website.yml
work-flow to only themaster
branch (issue 16369) by @Snuffleupagus in #16370 - Apply HCM filters on annotations which have their own canvas (bug 1830850) by @calixteman in #16380
- [api-minor] Remove SystemJS usage, in development mode, from the worker by @Snuffleupagus in #12563
- Remove the unused
isStandardFont
font-property (PR 15880 follow-up) by @Snuffleupagus in #16381 - Inline the
addPageIndex
method inGlobalImageCache.shouldCache
by @Snuffleupagus in #16368 - Re-factor the
PDFViewer.pageViewsReady
getter slightly by @Snuffleupagus in #16375 - Simplify the thumbnail styling in the viewer by @Snuffleupagus in #16374
- Simplify the
PDFSidebar.#forceRendering
method by @Snuffleupagus in #16379 - Better approximate gradient color stops by @bungeman in #16106
- [Annotations] Draw readonly annotations on their own canvas and show the HTML elements when there is a JS interaction (issue #16384) by @calixteman in #16387
- [GeckoView] Add a button to download and open the file in an external app (bug 1829367) by @calixteman in #16391
- Enable the
unicorn/no-invalid-remove-event-listener
ESLint plugin rule by @Snuffleupagus in #16394 - Improve handling of JPEG images with non-standard /Decode-entries (issue 16395) by @Snuffleupagus in #16396