Calixte Denizet
1c15ba7789
Use the canvas context from mozPrintCallback when printing a pdf from the Firefox viewer
...
The context is specific to the callback and cannot be created from the canvas itself.
2025-07-11 12:55:39 +02:00
calixteman
2e0f1ec515
Merge pull request #20076 from calixteman/revert_20047
...
Revert "Make horizontal padding relative to device width"
2025-07-09 18:09:26 +02:00
Calixte Denizet
e36f58ee4d
Revert "Make horizontal padding relative to device width"
...
This reverts commit c138887c1f7613bce44b99d22b63e2d744b0fb40.
2025-07-09 17:38:49 +02:00
calixteman
2dadac8877
Merge pull request #20071 from ryzokuken/bump-version-5.4
...
Bump library version to `5.4`
2025-07-09 14:57:13 +02:00
Ujjwal Sharma
1d702d4d6d
Bump library version to 5.4
2025-07-08 23:27:41 +02:00
calixteman
1b427a3af5
Merge pull request #20016 from ryzokuken/move-getcontext
...
[api-minor] Move getContext call to InternalRenderTask
2025-07-08 22:20:19 +02:00
calixteman
0e2b59e3d5
Merge pull request #20064 from calixteman/dict_api
...
Add few methods to the Dict class in order to simplify the code when writing an annotation
2025-07-08 22:16:57 +02:00
calixteman
481b74a1c2
Merge pull request #20063 from calixteman/issue20062
...
Fix the default appearance of a Polygon annotation when a fill color is provided
2025-07-08 22:10:52 +02:00
Calixte Denizet
63b37b4371
Add few methods to the Dict class in order to simplify the code when writing an annotation
2025-07-08 21:23:29 +02:00
Calixte Denizet
ecc7096a80
Fix the default appearance of a Polygon annotation when a fill color is provided
...
It fixes #20062 .
2025-07-08 20:51:58 +02:00
Tim van der Meij
b999d5ce58
Merge pull request #20060 from noritaka1166/fix-typos
...
Fix typos across the codebase
2025-07-08 18:28:52 +02:00
calixteman
729f2bb148
Merge pull request #20058 from calixteman/use_creationdate_popup
...
Use the creation date in the popup when there is no modification date
2025-07-07 10:55:28 +02:00
Calixte Denizet
bb52a440ce
Use the creation date in the popup when there is no modification date
...
Remove the h1 element in popup title because it caused a warning in Firefox and use a span instead.
2025-07-07 10:51:35 +02:00
Noritaka Kobayashi
fa568e826d
Fix typos across the codebase
2025-07-07 09:59:36 +09:00
Tim van der Meij
b3794c7148
Merge pull request #20061 from timvandermeij/bump
...
Bump the stable version in `pdfjs.config`
2025-07-06 20:45:30 +02:00
Tim van der Meij
be1f5fe009
Bump the stable version in pdfjs.config
2025-07-06 20:42:12 +02:00
Tim van der Meij
cbeef3233f
Merge pull request #20056 from calixteman/one_click
...
[Editor] Allow to change the editor mode when selecting the corresponding editor (bug 1975538)
v5.3.93
2025-07-06 19:35:31 +02:00
Ujjwal Sharma
b1b728d47f
[api-minor] Move getContext call to InternalRenderTask
...
This is a precursor to moving the call into a
worker thread to let us use `OffscreenCanvas`. The
current position wouldn't work since we make
transformations to the canvas object after the
getContext call, which isn't allowed for
OffscreenCanvas. Also it isn't allowed to clone or
`transferControlToOffscreen` the canvas after the
`getContext` call.
2025-07-04 00:53:51 +02:00
Calixte Denizet
6d2c6cfc9f
[Editor] Allow to change the editor mode when selecting the corresponding editor (bug 1975538)
...
For example, selecting an ink editor just after having created a freetext will switch to ink mode.
2025-07-03 23:27:34 +02:00
calixteman
2d0ba7db08
Merge pull request #20043 from yyliu12/popup-rotation-fix
...
Make Popup annotations always have noRotate flag set as true
2025-07-03 17:27:40 +02:00
calixteman
ad31385792
Merge pull request #20055 from calixteman/bug1975264
...
[Editor] When an annotation is added, announce it if the user is using a screen reader (bug 1975264)
2025-07-03 17:23:56 +02:00
calixteman
54c0d56ccf
Merge pull request #20054 from calixteman/bug1974863
...
Don't focus the viewer at startup (bug 1974863)
2025-07-03 17:01:19 +02:00
Calixte Denizet
c22a425b04
[Editor] When an annotation is added, announce it if the user is using a screen reader (bug 1975264)
2025-07-03 16:53:01 +02:00
calixteman
fd87e668e0
Merge pull request #20047 from Aditi-1400/fix-horizontal-scroll
...
Make horizontal padding relative to device width
2025-07-03 16:52:15 +02:00
Yuyang Liu
d8ecfad8bd
Make Popup annotations always have noRotate flag set as true
...
Necessary because when there is no Popup annotation created along
with a Text annotation, the Popup annotation created by pdf.js
does not receive the noRotate flag
2025-07-03 05:52:31 +09:00
Calixte Denizet
aaae516894
Don't focus the viewer at startup (bug 1974863)
...
It's useless and it causes screen readers to not always read the document title.
2025-07-02 17:34:23 +02:00
calixteman
426ee03488
Merge pull request #20041 from calixteman/bug1974436
...
Remove the shadow from the links (bug 1974436)
2025-07-01 12:59:17 +02:00
Tim van der Meij
8f2a4561b2
Merge pull request #20039 from calixteman/bug1974257
...
[Editor] In the signature modal, disable the save checkbox when the storage is full (bug 1974257)
2025-06-30 21:46:38 +02:00
Calixte Denizet
9acd16a0c7
[Editor] In the signature modal, disable the save checkbox when the storage is full (bug 1974257)
2025-06-30 21:42:28 +02:00
Calixte Denizet
fc9ba0cda3
Remove the shadow from the links (bug 1974436)
...
The shadow was taken into account when computing the bounding box of the section
containing the link and it was making the clip path wrong.
Since the shadow is almost invisible because of the opacity, the yellow color and the clip
we can remove it without causing any visual regressions (and as a side effect it'll avoid
to use resources to compute it when displayed).
2025-06-30 21:39:22 +02:00
Tim van der Meij
f4043b03e2
Merge pull request #20038 from calixteman/bug1974112
...
Don't remove a dash at the end of a line when guessing urls (bug 1974112)
2025-06-30 20:43:17 +02:00
Aditi
c138887c1f
Make horizontal padding relative to device width
...
The fixed -400px horizontal offset used by
scrollIntoView led to horizontal scroll only moving
part-way right on narrow screens. The highlights near
the right-edge remained party or completely off
screen.
This centres the highlighted match on any viewport width while
clamping the left margin to 20-400px. On very narrow screens
the scrollbar now moves all the way to the right instead of
stopping midway.
2025-06-30 19:08:02 +05:30
Calixte Denizet
bb6b42177c
Don't remove a dash at the end of a line when guessing urls (bug 1974112)
2025-06-26 18:55:59 +02:00
calixteman
85b67f19bc
Merge pull request #20031 from calixteman/telemetry_signature_certificate
...
Add some telemetry in order to know what are the certificates used in pdfs (bug 1973573)
2025-06-24 22:36:14 +02:00
Calixte Denizet
194e2ede4d
Add some telemetry in order to know what are the certificates used in pdfs (bug 1973573)
2025-06-24 22:23:29 +02:00
calixteman
1ebc896b6f
Merge pull request #20019 from calixteman/bug1885505
...
Get the text under highlight/squiggly/underline/strikethrough annotations (bug 1885505)
2025-06-22 23:39:40 +02:00
Calixte Denizet
3bdc5d54fe
Get the text under highlight/squiggly/underline/strikethrough annotations (bug 1885505)
...
and add an invisible element containing the text in the annotation layer to make
it readable by a screen reader.
2025-06-22 21:47:29 +02:00
Tim van der Meij
7d3b2a6d3f
Merge pull request #20028 from timvandermeij/updates
...
Update dependencies and translations to the most recent versions
2025-06-22 18:38:23 +02:00
Tim van der Meij
08c0a6d6b1
Update translations to the most recent versions
2025-06-22 15:40:43 +02:00
Tim van der Meij
571a04bd23
Fix low-severity vulnerability in the brace-expansion dependency
...
This patch is automatically generated with `npm audit fix` and fixes
CVE-2025-5889.
2025-06-22 15:40:43 +02:00
Tim van der Meij
bd511747c8
Upgrade @types/node to version 24.0.3
...
This commit makes the type definitions compatible with Node 24 which was
released in May 2025.
2025-06-22 15:25:35 +02:00
Tim van der Meij
7f619c7605
Update dependencies to the most recent versions
2025-06-22 15:24:53 +02:00
Tim van der Meij
8fe9db0fb5
Merge pull request #20022 from calixteman/color_picker_a11y
...
[Editor] Fix the accessibility of the dropdown in the color picker
2025-06-22 14:23:20 +02:00
Tim van der Meij
ac399e77e8
Merge pull request #20023 from calixteman/edit_added_annotation
...
[Editor] When editing mode is disabled, allow to double click on a added annotation to edit it
2025-06-21 16:23:56 +02:00
Tim van der Meij
032f80e46a
Merge pull request #20027 from calixteman/issue20024
...
Allow to have an URL as file parameter when loading the viewer
2025-06-21 16:17:45 +02:00
Calixte Denizet
eafc040734
Allow to have an URL as file parameter when loading the viewer
2025-06-21 14:57:24 +02:00
calixteman
c7796c7f8d
Merge pull request #19993 from calixteman/editor_toolbar_simplification
...
Slightly simplify the way to create the editor toolbar
2025-06-20 21:59:01 +02:00
calixteman
e78575e593
Merge pull request #19986 from calixteman/dont_show_empty_popup
...
Only show popups when they've some contents to display
2025-06-20 13:48:30 +02:00
calixteman
84d1703897
Merge pull request #19992 from calixteman/hashtag_filename
...
Correctly handle files with a hash sign in their names (bug 1894166)
2025-06-20 12:52:31 +02:00
Calixte Denizet
b97cee2ab5
Correctly handle files with a hash sign in their names (bug 1894166)
...
It fixes #19990 .
2025-06-20 09:21:41 +02:00