Skip to content

Commit

Permalink
PDFBOX-5851: set an invalid color when Pattern colorspace is missing
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1919366 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Jul 19, 2024
1 parent f9d3a3d commit feae0c8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public void process(Operator operator, List<COSBase> arguments) throws IOExcepti
}
if (!checkArrayTypesClass(arguments, COSNumber.class))
{
// PDFBOX-5851: set an invalid color because Pattern colorspace is missing
// this will produce transparency in PageDrawer
setColor(new PDColor(new float[0], null));
return;
}
}
Expand Down

0 comments on commit feae0c8

Please sign in to comment.