mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-04-18 19:24:04 +02:00
Merge pull request #20727 from calixteman/issue20722
Reset transfer functions when entering in a new group
This commit is contained in:
commit
943810a9ca
@ -903,6 +903,11 @@ class PartialEvaluator {
|
||||
let transferArray;
|
||||
if (Array.isArray(tr)) {
|
||||
transferArray = tr;
|
||||
if (tr.length > 1 && tr.every(map => map === tr[0])) {
|
||||
// All entries in the array are the same, so we can just use one of
|
||||
// them.
|
||||
transferArray = [tr[0]];
|
||||
}
|
||||
} else if (isPDFFunction(tr)) {
|
||||
transferArray = [tr];
|
||||
} else {
|
||||
|
||||
@ -2668,6 +2668,7 @@ class CanvasGraphics {
|
||||
["BM", "source-over"],
|
||||
["ca", 1],
|
||||
["CA", 1],
|
||||
["TR", null],
|
||||
]);
|
||||
this.groupStack.push(currentCtx);
|
||||
this.groupLevel++;
|
||||
|
||||
1
test/pdfs/issue20722.pdf.link
Normal file
1
test/pdfs/issue20722.pdf.link
Normal file
@ -0,0 +1 @@
|
||||
https://github.com/user-attachments/files/25484709/get1d.pdf
|
||||
@ -13954,5 +13954,15 @@
|
||||
"link": true,
|
||||
"lastPage": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{
|
||||
"id": "issue20722",
|
||||
"file": "pdfs/issue20722.pdf",
|
||||
"md5": "4a2e58e60973af3004dcfe1ff0be833c",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"firstPage": 171,
|
||||
"lastPage": 171,
|
||||
"type": "eq"
|
||||
}
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user