Compare commits

..

No commits in common. "391e84c34bfd867e787d89971c821d6877834f19" and "d008452e80ca00eec32983b7ab139885e6bc9f56" have entirely different histories.

4 changed files with 0 additions and 26 deletions

View File

@ -1122,12 +1122,6 @@ class PartialEvaluator {
case "Type":
break;
case "LW":
if (typeof value !== "number") {
warn(`Invalid LW (line width): ${value}`);
break;
}
gStateObj.push([key, Math.abs(value)]);
break;
case "LC":
case "LJ":
case "ML":
@ -2218,18 +2212,6 @@ class PartialEvaluator {
})
);
return;
case OPS.setLineWidth: {
// The thickness should be a non-negative number, as per spec.
// When the value is negative, Acrobat and Poppler take the absolute
// value while PDFium takes the max of 0 and the value.
const [thickness] = args;
if (typeof thickness !== "number") {
warn(`Invalid setLineWidth: ${thickness}`);
continue;
}
args[0] = Math.abs(thickness);
break;
}
case OPS.moveTo:
case OPS.lineTo:
case OPS.curveTo:

View File

@ -711,4 +711,3 @@
!issue19505.pdf
!colors.pdf
!red_stamp.pdf
!issue19633.pdf

Binary file not shown.

View File

@ -11971,12 +11971,5 @@
"rounds": 1,
"link": true,
"type": "eq"
},
{
"id": "issue19633",
"file": "pdfs/issue19633.pdf",
"md5": "9993aa298c0214a3d3ff5f90ce0d40bb",
"rounds": 1,
"type": "eq"
}
]