mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-22 16:05:56 +02:00
parent
909a700afa
commit
15e7a551ab
@ -903,6 +903,11 @@ class PartialEvaluator {
|
|||||||
let transferArray;
|
let transferArray;
|
||||||
if (Array.isArray(tr)) {
|
if (Array.isArray(tr)) {
|
||||||
transferArray = 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)) {
|
} else if (isPDFFunction(tr)) {
|
||||||
transferArray = [tr];
|
transferArray = [tr];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -2668,6 +2668,7 @@ class CanvasGraphics {
|
|||||||
["BM", "source-over"],
|
["BM", "source-over"],
|
||||||
["ca", 1],
|
["ca", 1],
|
||||||
["CA", 1],
|
["CA", 1],
|
||||||
|
["TR", null],
|
||||||
]);
|
]);
|
||||||
this.groupStack.push(currentCtx);
|
this.groupStack.push(currentCtx);
|
||||||
this.groupLevel++;
|
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,
|
"link": true,
|
||||||
"lastPage": 1,
|
"lastPage": 1,
|
||||||
"type": "eq"
|
"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