diff --git a/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java b/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java index b7f02e9f689..8d760e583fc 100644 --- a/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java +++ b/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java @@ -2178,7 +2178,7 @@ private boolean isHiddenAndVisibilityExpression(COSArray veArray) else if (base instanceof COSDictionary) { // Another OCG - PDPropertyList prop = PDOptionalContentGroup.create((COSDictionary) base); + PDPropertyList prop = PDPropertyList.create((COSDictionary) base); boolean isHidden = isHiddenOCG(prop); if (isHidden) { @@ -2207,7 +2207,7 @@ private boolean isHiddenOrVisibilityExpression(COSArray veArray) else if (base instanceof COSDictionary) { // Another OCG - PDPropertyList prop = PDOptionalContentGroup.create((COSDictionary) base); + PDPropertyList prop = PDPropertyList.create((COSDictionary) base); boolean isHidden = isHiddenOCG(prop); if (!isHidden) { @@ -2233,7 +2233,7 @@ private boolean isHiddenNotVisibilityExpression(COSArray veArray) else if (base instanceof COSDictionary) { // Another OCG - PDPropertyList prop = PDOptionalContentGroup.create((COSDictionary) base); + PDPropertyList prop = PDPropertyList.create((COSDictionary) base); return !isHiddenOCG(prop); } return false;