Tim van der Meij
8b4fae0a84
Merge pull request #20482 from Uzair-Ahmed-Shah/fix-issue-20420
...
Fix #20420 : Prevent double decoding of file URL parameter
2025-12-13 14:22:47 +01:00
calixteman
ff4529d127
Merge pull request #20492 from nicolo-ribaudo/simplify-markedcontent-text-layer
...
Simplify positioning of elements inside `markedContent`
2025-12-12 17:29:33 +01:00
calixteman
f824f38e30
Merge pull request #20499 from AtiX/master
...
Improves text rendering performance by skipping unnecessary pattern calculations
2025-12-12 17:28:22 +01:00
Nicolò Ribaudo
7e0c9395fb
Simplify positioning of elements inside markedContent
...
By setting `display: contents` on `.markedContent` containers, they stop
affecting the layout of their children. This means that we can always
position text layer `<span>` elements using percentages relative to the
page dimensions, rather than having two separate code paths.
For some reason this breaks the workaround for text selection flickering
in Chrome/Safari, which can be fixed by setting `user-select: text` on
the `.endOfContent` div (only in Chrome/Safari, as it would break
selection in Firefox).
2025-12-12 11:37:45 +01:00
Arthur Silber
9bc4175bde
Improves text rendering performance by skipping unnecessary pattern calculations
2025-12-12 07:07:31 +01:00
Tim van der Meij
4af193bbfc
Merge pull request #20491 from nicolo-ribaudo/move-text-scaling-logic-to-css
...
Move text layer scaling logic to CSS
2025-12-11 20:53:14 +01:00
Tim van der Meij
d946f05841
Merge pull request #20440 from Gaurang-5/master
...
Fix infinite loop in JBIG2 decoder with >4 referred-to segments
2025-12-09 20:42:51 +01:00
Tim van der Meij
6075f6ee75
Merge pull request #20494 from calixteman/simplify_sidebar_resize
...
Use only one resize observer in the the sidebar
2025-12-09 20:39:09 +01:00
Tim van der Meij
171fede558
Merge pull request #20493 from calixteman/mv_tree
...
Move the css for tree object in its own file
2025-12-09 20:37:32 +01:00
Nicolò Ribaudo
eb2b7c2c86
Move text layer scaling logic to CSS
...
This commit moves all the logic to scale up&down `<span>`s in the text
layer, introduced in #18283 , to CSS.
The motivation for this change is that #18283 is still not enough for
all cases. That PR fixed the problem in Chrome&Firefox desktop, which
allow users to set an actual minimum font size in the browser settings.
However, other browsers (e.g. the Chrome-based WebView on Android) have
more complex logic and they scale up small text rather than simply
applying a minimum.
A workaround for that behavior is probably out of scope for PDF.js
itself as it only affects not officially supported platforms. However,
having access to the actual expected font height (through
`--font-height`) allows embedders of PDF.js to implement a workaround by
themselves.
2025-12-09 13:12:20 +01:00
Calixte Denizet
83fa8e9df1
Use only one resize observer in the the sidebar
...
If the max-width is 50vw, then resizing the viewport will change the sidebar width
and the callbacks need to be called in such a case.
2025-12-08 20:34:00 +01:00
Calixte Denizet
3e59e7535d
Move the css for tree object in its own file
2025-12-08 20:05:43 +01:00
Uzair-Ahmed-Shah
a25448502d
Fix #20420 : Prevent double decoding of file URL parameter
2025-12-08 22:37:52 +05:30
calixteman
f75812b0af
Merge pull request #20346 from ryzokuken/binary-fontpath
...
Encode FontPath data into an ArrayBuffer
2025-12-08 13:59:23 +01:00
calixteman
2bb30fb38a
Merge pull request #20490 from calixteman/dot.vscode
...
Add .vscode to .gitignore
2025-12-08 10:01:44 +01:00
Calixte Denizet
6de24bab92
Add .vscode to .gitignore
2025-12-08 09:58:22 +01:00
calixteman
5b22189c24
Merge pull request #20485 from calixteman/lint_mc_css
...
Add a new linting task in order to detect unused/unknown css variables in the Firefox build
2025-12-08 09:48:18 +01:00
Calixte Denizet
4bf759404c
Add a new linting task in order to detect unused/unknown css variables in the Firefox build
...
The goal is to be able to catch the errors before making a release.
And fix some css issues (especially the missing css code for the newly added menu.css)
2025-12-08 09:44:33 +01:00
Tim van der Meij
de5709a7cd
Merge pull request #20454 from xiaobai2017666/russian-char
...
Extend getGlyphMapForStandardFonts with some Russian entries (issue 20453)
2025-12-07 18:28:41 +01:00
Gaurang Bhatia
ac8d80a8e4
Fix infinite loop in JBIG2 decoder with >4 referred-to segments and add regression test
2025-12-07 06:46:16 +05:30
Ujjwal Sharma
3a85770af1
Encode FontPath data into an ArrayBuffer
...
Serialize FontPath commands into a binary format
and store it in an ArrayBuffer so that it can
eventually be stored in a SharedArrayBuffer.
2025-12-06 03:00:48 +05:30
calixteman
36de2d976d
Merge pull request #20476 from calixteman/thumbnail_scroll
...
Use HTMLElement.scrollIntoView when showing a thumbnail
2025-12-05 09:59:11 +01:00
calixteman
8a42b82ecd
Merge pull request #20474 from calixteman/sidebar_resize_callbacks
...
Add some callbacks when resizing a sidebar
2025-12-05 08:54:24 +01:00
calixteman
30984435fe
Merge pull request #20483 from calixteman/menu
...
Add a menu class in order to be used in the new UI for the merge feature
2025-12-05 08:53:19 +01:00
calixteman
f29e6a92a1
Merge pull request #20472 from calixteman/bug1998046_2
...
Inject the text from the text layer in the MathML tags when they're in the struct tree (bug 1998046)
2025-12-05 08:52:16 +01:00
calixteman
79c72f2c9a
Inject the text from the text layer in the MathML tags when they're in the struct tree (bug 1998046)
...
This way, the screen readers can read the math content properly.
The elements in the text layer will also have aria-hidden="true"
to avoid duplication.
2025-12-04 22:13:26 +01:00
Calixte Denizet
4c6cc0a042
Add a menu class in order to be used in the new UI for the merge feature
2025-12-04 22:12:10 +01:00
calixteman
8435e8f4bb
Merge pull request #20471 from calixteman/bug1998046_1
...
Aria-hide the text content part of a MathML formula (bug 1998046)
2025-12-04 22:09:34 +01:00
Calixte Denizet
c51ceb750b
Add some callbacks when resizing a sidebar
...
And use a ResizeObserver in order to avoid to have to compare the width with min/max which can be in
an other unit than px.
2025-12-04 21:40:46 +01:00
calixteman
615965f3d9
Merge pull request #20470 from timvandermeij/updates
...
Update dependencies and translations to the most recent versions
2025-12-03 16:27:32 +01:00
Calixte Denizet
f9b857463b
Use HTMLElement.scrollIntoView when showing a thumbnail
2025-12-03 15:51:34 +01:00
calixteman
8e2963ccad
Merge pull request #20226 from lab-core/pointer-type-initialization
...
[Editor] Pointer type initialization only when the user changes the mode
2025-12-02 20:55:39 +01:00
Weismann
365cc69cae
Extend getGlyphMapForStandardFonts with some Russian entries (issue 20453)
2025-12-01 10:21:27 +08:00
calixteman
87b3b5212e
Aria-hide the text content part of a MathML formula (bug 1998046)
...
It'll avoid to have the text content and the MathML content read by
screen readers.
2025-11-30 22:21:37 +01:00
Tim van der Meij
93a8312a37
Update translations to the most recent versions
2025-11-29 18:53:22 +01:00
Tim van der Meij
758856e664
Update dependencies to the most recent versions
...
Note that the `prettier` update requires a small bit of reformatting in
the Gulpfile so that linting keeps passing.
2025-11-29 18:52:33 +01:00
Tim van der Meij
4aca13e77a
Merge pull request #20469 from timvandermeij/bump
...
Bump the stable version in `pdfjs.config`
2025-11-29 16:00:32 +01:00
Tim van der Meij
0b051a7cad
Bump the stable version in pdfjs.config
2025-11-29 15:57:15 +01:00
Tim van der Meij
f44e5f0e63
Merge pull request #20462 from calixteman/improve_thumbnails
...
Slightly reduce the memory used by thumbnails
v5.4.449
2025-11-29 15:36:46 +01:00
Calixte Denizet
423379e42f
Slightly reduce the memory used by thumbnails
...
In using a blob instead of a base64 string it's possible to reduce the memory.
And simplify a bit the thumbnails themselves.
2025-11-28 21:52:40 +01:00
Tim van der Meij
a965536485
Merge pull request #20468 from timvandermeij/trusted-publishing
...
Use OIDC trusted publishing in the GitHub Actions release workflow
2025-11-28 21:13:06 +01:00
Tim van der Meij
8eb747663a
Use OIDC trusted publishing in the GitHub Actions release workflow
...
This commit updates the release pipeline to use OIDC trusted publishing
now that we have configured it between GitHub Actions and NPM. This
solution allows us to remove the token variable (because there is no
longer a fixed token) and provenance flag (because provenance
attestations are generated by default with this approach); refer to
https://docs.npmjs.com/trusted-publishers for more information.
2025-11-28 21:01:13 +01:00
calixteman
ec5330f78c
Merge pull request #20465 from calixteman/update_char_to_nfkc
...
Fix the regex string used to find the chars to normalize with NFKC when searching
2025-11-28 16:59:23 +01:00
calixteman
925fc3d8f2
Merge pull request #20467 from calixteman/make_sidebar
...
Create a sidebar object
2025-11-28 16:27:44 +01:00
Calixte Denizet
45578aa8f5
Create a sidebar object
...
For now its use is limited to the comment sidebar but it'll be used for the new one
containing the thumbnails.
And make the sidebar more accessible with the keyboard or a screen reader.
2025-11-28 16:22:26 +01:00
Calixte Denizet
eee20cf138
Fix the regex string used to find the chars to normalize with NFKC when searching
...
ICU has been updated in Firefox (see https://bugzilla.mozilla.org/show_bug.cgi?id=2000225 ).
The char `0xA7F1` is now alphabetic and can be normalized as a "S".
2025-11-28 16:19:43 +01:00
Tim van der Meij
907cceb4ab
Merge pull request #20460 from calixteman/issue20452
...
[Editor] Allow to save an edited comment in using CTRL+Enter shortcut.
2025-11-27 21:37:07 +01:00
Tim van der Meij
40b52fa43a
Merge pull request #20458 from calixteman/fix_firstchild
...
Don't use firstChild/lastChild when getting elements (follow-up of #20447 )
2025-11-27 21:34:56 +01:00
Tim van der Meij
08074cf024
Merge pull request #20450 from Mario34/update-dependencies
...
Include missing `cached-iterable` dev dependency in `package.json`
2025-11-27 21:16:21 +01:00
Tim van der Meij
956aa7efad
Merge pull request #20459 from mozilla/dependabot/github_actions/actions/checkout-6
...
Bump actions/checkout from 5 to 6
2025-11-27 21:07:51 +01:00