Weismann
e171e11c03
Merge 297ddbed021ce6a8a1fb86148b466fbef967bd1d into f44e5f0e63237a7cfb3b591b0b011d2abe27b036
2025-11-29 15:39:34 +01:00
calixteman
ec71e4ed65
Merge pull request #20455 from calixteman/bug1998843
...
[XFA] Set default max value in occur tag to -1 (bug 1998843)
2025-11-22 20:59:04 +01:00
calixteman
d4b6464675
Merge pull request #20456 from calixteman/issue20225
...
When searching for a group of punctuation signs, only add extraspaces around the group
2025-11-22 15:25:25 +01:00
calixteman
b41959bde8
Merge pull request #20413 from sachiniyer/siyer/fix-annotation-editor-deletion
...
fix: deleteAnnotationElement takes a full editor object
2025-11-21 22:28:06 +01:00
Sachin Iyer
464dae11ac
fix: deleteAnnotationElement takes a full editor object
2025-11-21 11:32:29 -08:00
Calixte Denizet
039b9e4df3
When searching for a group of punctuation signs, only add extraspaces around the group
...
It fixes #20225 .
And only add the extra spaces where it's required depending on their position in the query string.
2025-11-21 18:59:37 +01:00
Calixte Denizet
516aea5562
[XFA] Set default max value in occur tag to -1 (bug 1998843)
2025-11-21 17:53:38 +01:00
Weismann
297ddbed02
fix:add ru char
2025-11-21 16:55:32 +08:00
calixteman
ddf3a989ca
Merge pull request #20427 from Aditi-1400/issue-20426
...
Add setter for some FontFaceObject properties
2025-11-20 20:49:30 +01:00
Aditi
7743d11594
Add setter for some FontFaceObject properties
2025-11-20 22:47:57 +05:30
Calixte Denizet
e13a618df3
Merge the structure trees coming from different pdfs (bug 1997379)
2025-11-17 19:56:36 +01:00
Calixte Denizet
37f4712f7e
Update the named page destinations when some pdf are combined (bug 1997379)
...
and remove link annotations pointing on a deleted page.
2025-11-07 18:22:19 +01:00
Calixte Denizet
ad97c5b816
Update the page labels tree when a pdf is extracted (bug 1997379)
2025-11-07 15:59:57 +01:00
Calixte Denizet
bc87f4e8d6
Add the possibility to create a pdf from different ones (bug 1997379)
...
For now it's just possible to create a single pdf in selecting some pages in different pdf sources.
The merge is for now pretty basic (it's why it's still a WIP) none of these data are merged for now:
- the struct trees
- the page labels
- the outlines
- named destinations
For there are 2 new ref tests where some new pdfs are created: one with some extracted pages and an other
one (encrypted) which is just rewritten.
The ref images are generated from the original pdfs in selecting the page we want and the new images are
taken from the generated pdfs.
2025-11-07 14:57:48 +01:00
Calixte Denizet
6db23139be
Don't set the MathML namespace for attributes in MathML tags (bug 1997343)
...
And by default a XML file is UTF-8 encoded so correctly decode the embedded file.
2025-10-30 18:37:19 +01:00
Edoardo Cavazza
d04832a82f
Add test case for empty cells
2025-10-29 17:31:49 +01:00
Calixte Denizet
e5a62c8d06
Make MathML elements visible in the struct tree (bug 1937438)
...
It'll help to make math equations "visible" for screen readers.
MS Office has a specific way to add some MathML code to struc tree leaf
and this patch handles it.
2025-10-23 16:29:01 +02:00
Calixte Denizet
5c28346abc
[Editor] Make sure all editors are focusable with the keyboard (bug 1992868)
2025-10-07 21:15:26 +02:00
Calixte Denizet
19ff148163
Fix incremental saving with hybrid references
...
This patch removes some previous fixes which are now likely fixed by #17636 .
Fixes #20302 .
2025-10-04 18:31:55 +02:00
Calixte Denizet
4d15bfec0d
Only apply word spacing when there is a 0x20 in the text chunk
...
Fixes #20319 .
2025-10-03 22:18:02 +02:00
Calixte Denizet
0b40bf1743
[Editor] Update the color and the position of the comment button in reading mode they've been modified
2025-09-24 09:45:37 +02:00
Calixte Denizet
623d422ddb
[Editor] Make sure the comment dialog is visible on the screen (bug 1989304)
2025-09-18 21:23:42 +02:00
Calixte Denizet
b6d772d71d
Consider a ttf font with both Symbolic and Nonsymbolic flags set with a Differences array in the encoding dict as non-symbolic
...
It fixes #20232 .
2025-09-14 18:52:16 +02:00
Calixte Denizet
e1bdc34b4a
Add an option in scrollIntoView and goToXY in order to be able to center vertically or horizontally the point XY in the viewer container
2025-09-09 13:10:49 +02:00
Calixte Denizet
af144be3ba
Don't iterate over all empty slots in the xref entries (bug 1980958)
2025-08-25 14:02:08 +02:00
Calixte Denizet
9e5ee1e5a7
[Editor] Add the ability to get all the editable annotations in a pdf document
...
We want to be able to show all the comments in a pdf even if the pages where they are
haven't been rendered.
And it'll help to fix the issue #18915 .
2025-08-18 21:31:11 +02:00
Calixte Denizet
6a00174688
[Editor] Correctly hide deleted annotations
2025-08-13 22:41:19 +02:00
Calixte Denizet
806f9c1cee
Disable printing when enablePermission is true and the pdf isn't allowed to be printed (bug 1978985)
2025-07-30 19:29:01 +02:00
Calixte Denizet
57ce4f8f43
Use a HTML date/time input when a field requires a date or a time.
...
The user will be able to enter a date in the format corresponding to their locale
and it'll be formatted in using the format provided by the pdf.
2025-07-24 22:01:45 +02:00
Calixte Denizet
78391ed85a
Fix the xref table with the values we've at the beginning of a xref stream (bug 1978317)
2025-07-22 22:10:23 +02:00
Calixte Denizet
f695e0ca62
Make the link annotations correctly announced by screen readers (bug 1708041)
...
And focus the targeted page when the user clicks on a link.
2025-07-18 20:15:31 +02:00
Calixte Denizet
8b17e5ecd8
Use canvas context text primitives when the font file is missing
...
It fixes #20065 .
The only to get a path (from the path generator) is when the font is embedded.
So when we need a path (disableFontFace: true or when we want to use a pattern for stroking/filling), it's impossible
to fulfil.
2025-07-18 19:57:30 +02:00
Calixte Denizet
86d58b637f
Don't add an undefined id to the span for marked content
...
It fixes #20102 .
2025-07-17 19:13:30 +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
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
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
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
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
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
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
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
Calixte Denizet
96216de410
Only show popups when they've some contents to display
...
Chrome, Edge and Acrobat do that.
2025-06-19 16:33:52 +02:00
Jonas Jenwald
c5449a98e0
Ignore empty paths when optimizing constructPath operations (issue 19971)
...
Note how we're handling empty paths in [src/display/canvas.js](a8e05d82e2/src/display/canvas.js (L1423-L1428) ), hence we need add similar code in the `QueueOptimizer` as well.
2025-05-23 13:59:05 +02:00
Jonas Jenwald
5f5d9dfc28
Support Type3 fonts with an incomplete /FontDescriptor dictionary (issue 19954)
...
We have a fallback for the common case of Type3 fonts without a /FontDescriptor dictionary, however we also need to handle the case where it's present but lacking the required /FontName entry.
2025-05-19 12:56:14 +02:00
Calixte Denizet
49a098cb5d
Decode appearance keys of checkboxes
2025-05-09 21:46:17 +02:00
Calixte Denizet
ac925f4f1b
Downscale jpeg2000 images, if needed, while decoding them
...
It fixes #19517 .
2025-05-05 22:39:59 +02:00
Calixte Denizet
7a251b206e
Fix the bbox when saving a rotated text field (bug 1963407)
2025-04-29 18:49:07 +02:00
Jonas Jenwald
64007e777e
Ensure that the /Form XObject /Resources-entry is actually a dictionary (issue 19848)
2025-04-23 10:19:20 +02:00
Jonas Jenwald
adc9eb5a5a
Always fallback to checking all destinations, when lookup fails (issue 19835)
...
In the referenced PDF document the keys, in the /Dests dictionary, need to account for PDFDocEncoding.
To improve destination handling in general we'll now unconditionally fallback to always checking all destinations.
2025-04-20 14:53:10 +02:00
Jonas Jenwald
1048508dd1
Catch circular references in /Form XObjects (issue 19800)
...
For simplicity we will abort /Form XObject parsing *immediately* when encountering a circular reference, rather than letting it continue up until some limit (as e.g. PDFium appears to do), which should be fine since there are never any guarantees if/how *corrupt* PDF documents will render.
2025-04-11 16:54:22 +02:00