We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9244e1c commit 29e0a76Copy full SHA for 29e0a76
src/main/java/org/verapdf/pd/images/PDXObject.java
@@ -60,6 +60,14 @@ public PDXImage getSMask() {
60
return null;
61
}
62
63
+ public PDXImage getMask() {
64
+ COSObject mask = getKey(ASAtom.MASK);
65
+ if (mask != null && mask.getType() == COSObjType.COS_STREAM) {
66
+ return new PDXImage(mask, null);
67
+ }
68
+ return null;
69
70
+
71
public static PDXObject getTypedPDXObject(COSObject object, PDResources resources) {
72
if (object != null && !object.empty()) {
73
ASAtom type = object.getNameKey(ASAtom.SUBTYPE);
0 commit comments