Skip to content

chore(deps): Bump PDF.js from 4.0.189 to 4.10.38 - #1474

Draft
danxuliu wants to merge 25 commits into
masterfrom
bump-pdf.js-from-4.0.189-to-4.10.38
Draft

chore(deps): Bump PDF.js from 4.0.189 to 4.10.38#1474
danxuliu wants to merge 25 commits into
masterfrom
bump-pdf.js-from-4.0.189-to-4.10.38

Conversation

@danxuliu

Copy link
Copy Markdown
Member

Fixes #1265
Fixes #1116
Fixes #874
Fixes #636
Fixes #635

This is a step by step bump to better check the differences and be able to spot regressions and/or behaviour changes "easily".

Note that the annotation editor has been greatly improved, but unfortunately due to an upstream bug in some cases the Save button may not work reliably (it may not be enabled when needed, or it may be enabled without need).

danxuliu added 10 commits May 20, 2026 17:27
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
The "viewer.php" acts as the "viewer.html" file included in the PDF.js
package. This commit updates "viewer.php" with the changes to
"viewer.html" from PDF.js 4.0.189 to 4.0.269 while respecting the
customized parts of "viewer.php".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
The "viewer.php" acts as the "viewer.html" file included in the PDF.js
package. This commit updates "viewer.php" with the changes to
"viewer.html" from PDF.js 4.0.269 to 4.0.379 while respecting the
customized parts of "viewer.php".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
The "viewer.php" acts as the "viewer.html" file included in the PDF.js
package. This commit updates "viewer.php" with the changes to
"viewer.html" from PDF.js 4.0.379 to 4.1.392 while respecting the
customized parts of "viewer.php".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
The "viewer.php" acts as the "viewer.html" file included in the PDF.js
package. This commit updates "viewer.php" with the changes to
"viewer.html" from PDF.js 4.2.67 to 4.3.136 while respecting the
customized parts of "viewer.php".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
danxuliu added 14 commits August 4, 2026 11:04
Since PDF.js 4.4.168 a loading cursor is shown while the file is being
saved. This is done by awaiting on the "save" function, so "handleSave"
now needs to return its promise.

This also blocks interacting with the viewer UI until saving the file
finishes.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
The "viewer.php" acts as the "viewer.html" file included in the PDF.js
package. This commit updates "viewer.php" with the changes to
"viewer.html" from PDF.js 4.4.168 to 4.5.136 while respecting the
customized parts of "viewer.php".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Since PDF.js 4.5.136 the property "locale" was replaced with
"localeProperties", which takes an object with a "lang" parameter.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
The "viewer.php" acts as the "viewer.html" file included in the PDF.js
package. This commit updates "viewer.php" with the changes to
"viewer.html" from PDF.js 4.5.136 to 4.6.82 while respecting the
customized parts of "viewer.php".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
The "viewer.php" acts as the "viewer.html" file included in the PDF.js
package. This commit updates "viewer.php" with the changes to
"viewer.html" from PDF.js 4.6.82 to 4.7.76 while respecting the
customized parts of "viewer.php".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
The "viewer.php" acts as the "viewer.html" file included in the PDF.js
package. This commit updates "viewer.php" with the changes to
"viewer.html" from PDF.js 4.8.69 to 4.9.124 while respecting the
customized parts of "viewer.php".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
The "viewer.php" acts as the "viewer.html" file included in the PDF.js
package. This commit updates "viewer.php" with the changes to
"viewer.html" from PDF.js 4.9.124 to 4.9.155 while respecting the
customized parts of "viewer.php".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu
danxuliu force-pushed the bump-pdf.js-from-4.0.189-to-4.10.38 branch from c360d16 to 7b7ef99 Compare August 4, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant