21514 Commits

Author SHA1 Message Date
calixteman
98c1955bd4
Use the PDFium JBig2 decoder compiled into wasm
The decoder is ~4x faster than the JS decoder on large images.
2026-01-03 22:05:14 +01:00
calixteman
eccbcbe5eb
Merge pull request #20515 from calixteman/issue20513_2
Get glyph contours when stroking using a pattern
2025-12-29 11:32:28 +01:00
calixteman
424c7989aa
Get glyph contours when stroking using a pattern
Fix issue #20513 (second part).
2025-12-28 22:55:59 +01:00
Tim van der Meij
430b8a9e90
Merge pull request #20540 from timvandermeij/bump
Bump the stable version in `pdfjs.config`
2025-12-28 20:08:27 +01:00
Tim van der Meij
f385fd9783
Bump the stable version in pdfjs.config 2025-12-28 20:05:00 +01:00
Tim van der Meij
50cc4adac0
Merge pull request #20535 from calixteman/issue18062
Use CIDToGIDMap when the font is a type 2 with an OpenType font
v5.4.530
2025-12-28 18:22:37 +01:00
calixteman
5518c8a544
Use CIDToGIDMap when the font is a type 2 with an OpenType font
It fixes #18062.
2025-12-28 14:51:06 +01:00
Tim van der Meij
1990fa7cd0
Merge pull request #20538 from calixteman/issue13425
Fix the loca table length when there is enough space for it
2025-12-28 13:52:32 +01:00
Tim van der Meij
67b92b3421
Merge pull request #20537 from calixteman/remove_undestack
Remove undefStack stuff in the cff parser
2025-12-28 13:47:18 +01:00
Tim van der Meij
884cd20156
Merge pull request #20531 from calixteman/issue20523
Avoid to have a mail link with string having the format ddd@d.dddd
2025-12-28 13:43:39 +01:00
Tim van der Meij
2d7c056ab1
Merge pull request #20522 from calixteman/claude
Add CLAUDE.md generated with claude code
2025-12-28 13:41:03 +01:00
calixteman
22932f7b68
Fix the loca table length when there is enough space for it
It fixes #13425.
2025-12-28 11:21:40 +01:00
calixteman
1dffcf7f25
Remove undefStack stuff in the cff parser
I think it should have been removed with #2527 so it should be useless now.
Because of that stuff, some commands with a wrong number of arguments
weren't stripped out (see the pdf in #13850).
2025-12-27 16:59:29 +01:00
calixteman
eaf49c1057
Avoid to have a mail link with string having the format ddd@d.dddd
It fixes #20523.
2025-12-24 19:42:18 +01:00
calixteman
165a12cfac
Add CLAUDE.md generated with claude code 2025-12-23 16:13:51 +01:00
Tim van der Meij
33e857995c
Merge pull request #20519 from timvandermeij/ink-simplify
Introduce a helper function to draw a line in the ink editor integration tests
2025-12-23 15:46:59 +01:00
Tim van der Meij
dd6459c3d2
Merge pull request #20525 from calixteman/simplify_gradient
Avoid pattern creation with some basic gradients
2025-12-23 15:44:54 +01:00
calixteman
f66575ac72
Merge pull request #20527 from calixteman/rm_talos
Remove some files from talos tests because they aren't available on webarchive
2025-12-23 15:35:17 +01:00
calixteman
fbce8bf829
Remove some files from talos tests because they aren't available on webarchive 2025-12-23 15:27:30 +01:00
Tim van der Meij
8af3060887
Merge pull request #20526 from calixteman/issue20489
Fix the encoding for some missing chinese fonts
2025-12-23 15:10:35 +01:00
Tim van der Meij
7f1f5ecf09
Merge pull request #20521 from calixteman/issue20520
Dont' throw when adding page labels in thumbnails
2025-12-23 14:49:57 +01:00
Tim van der Meij
cc0dadaabc
Merge pull request #20524 from calixteman/simplify_regex_escaping
Simplify regex escaping
2025-12-23 14:46:46 +01:00
calixteman
91033c2199
Fix the encoding for some missing chinese fonts
It fixes #20489.
2025-12-23 14:05:27 +01:00
calixteman
4ff582acbe
Avoid pattern creation with some basic gradients
Some gradients are represented as patterns in PDF.js, because they
mustn't be affected by the current transform. But in most of the cases,
the gradient is attached to the origin and the current transform is very
basic (dilatation + orthogonal + translation). In those cases, we can
avoid creating the pattern because the gradient is transformed into
another gradient when the inverse transform is applied.
2025-12-23 10:36:05 +01:00
calixteman
9f4db380aa
Merge pull request #20514 from calixteman/issue20513
Avoid exception when trying to render some glyphs contours
2025-12-23 10:15:21 +01:00
calixteman
01531dac06
Simplify regex escaping 2025-12-23 10:00:36 +01:00
calixteman
fc4985819f
Avoid exception when trying to render some glyphs contours
It fixes #20513.
2025-12-22 23:45:34 +01:00
Calixte Denizet
6d95eaad28
Dont' throw when adding page labels in thumbnails
It fixes #20520.
2025-12-22 23:15:20 +01:00
Tim van der Meij
71140e7d0f
Introduce a helper function to draw a line in the ink editor integration tests
This commit extracts the logic to draw a line from one coordinate to
another to both remove code duplication (8% of the total number of lines
in the file are removed) and clarify the intent of the individual tests.
2025-12-22 19:41:39 +01:00
Tim van der Meij
509fcc84e2
Merge pull request #20518 from calixteman/issue20516
Escape punctuation signs in search query
2025-12-22 19:02:45 +01:00
Tim van der Meij
bdf5005203
Merge pull request #20501 from timvandermeij/updates
Update dependencies and translations to the most recent versions
2025-12-22 18:13:43 +01:00
calixteman
923a778d26
Escape punctuation signs in search query
It fixes #20516.

The chars `*{}()[]\` are punctuation signs in regex, so they need to be escaped
when searching for them literally.
2025-12-22 17:41:53 +01:00
Tim van der Meij
65ae8f62da
Update translations to the most recent versions 2025-12-22 16:26:37 +01:00
Tim van der Meij
40a8fdbca9
Upgrade @types/node to version 25.0.1
This is a major version bump, but the patch at
https://github.com/DefinitelyTyped/DefinitelyTyped/pull/73924
doesn't indicate any breaking changes that should impact us as it mainly
includes support for Node.js 25.
2025-12-22 16:26:37 +01:00
Tim van der Meij
c5db38dd86
Update dependencies to the most recent versions 2025-12-22 16:26:37 +01:00
Tim van der Meij
f7f963ef97
Merge pull request #20517 from calixteman/fix_unit_test_import_map
Fix unit tests in adding a comma in the JSON for imports
2025-12-22 16:25:09 +01:00
Calixte Denizet
8bcbf22ad4
Fix unit tests in adding a comma in the JSON for imports 2025-12-22 16:01:30 +01:00
Tim van der Meij
db6b0cd728
Merge pull request #20502 from timvandermeij/node-25
Run the CI tests in Node.js version 25 too
2025-12-22 15:07:12 +01:00
Tim van der Meij
b92f742a26
Run the CI tests in Node.js version 25 too
Node.js version 25 is the current (non-LTS) release, see
https://github.com/nodejs/release#release-schedule, so we should run the
tests with that version too to help catch any possible issues sooner.
2025-12-21 18:19:29 +01:00
Tim van der Meij
010e52e15d
Merge pull request #20507 from mozilla/dependabot/github_actions/actions/upload-artifact-6
Bump actions/upload-artifact from 5 to 6
2025-12-20 14:18:53 +01:00
calixteman
cdf34b65a4
Merge pull request #20495 from calixteman/new_sidebar
Change the sidebar for a views manager
2025-12-15 18:45:49 +01:00
calixteman
2367196a00
Change the sidebar for a views manager
Update the styles and HTML to reflect the new views manager concept.
For now, nothing about split/merge functionality is implemented or visible.
The new styles for the outline, attachments, and layers will be added later.

The thumbnail view is now accessible with the keyboard.
2025-12-15 17:43:52 +01:00
calixteman
6517dede85
Merge pull request #20508 from calixteman/tree_follow_up
Fix some css in the tree view
2025-12-15 17:15:51 +01:00
Calixte Denizet
f42a120aac
Fix some css in the tree view
It's a follow-up of #20493.
And simplify a bit the js to have only one click listener in the tree instead of
having one on each toggler.
2025-12-15 16:19:10 +01:00
dependabot[bot]
0b60e9c213
Bump actions/upload-artifact from 5 to 6
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 12:05:28 +00:00
Tim van der Meij
6c746260a9
Merge pull request #20500 from calixteman/fix_menu_rtl
Fix the position of the checkmark when the menu is displayed in RTL
2025-12-13 14:26:33 +01:00
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
Calixte Denizet
9de04ef3de
Fix the position of the checkmark when the menu is displayed in RTL 2025-12-12 17:33:20 +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