Skip to content

Commit

Permalink
Update color calculation of non-isolated transparency group
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Sep 24, 2024
1 parent 849f018 commit 7bbf9b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public Long getpageNumber() {

public PDColorSpace getBlendingColorSpace() {
org.verapdf.pd.PDGroup group = ((org.verapdf.pd.PDPage) this.simplePDObject).getGroup();
if (group == null || !ASAtom.TRANSPARENCY.equals(group.getSubtype())) {
if (group == null || !ASAtom.TRANSPARENCY.equals(group.getSubtype()) || !group.isIsolated()) {
return null;
}
return group.getColorSpace();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private List<PDGroup> getGroup() {

public PDColorSpace getBlendingColorSpace() {
org.verapdf.pd.PDGroup group = ((org.verapdf.pd.images.PDXForm) this.simplePDObject).getGroup();
if (group == null || !ASAtom.TRANSPARENCY.equals(group.getSubtype())) {
if (group == null || !ASAtom.TRANSPARENCY.equals(group.getSubtype()) || !group.isIsolated()) {
return null;
}
PDColorSpace colorSpace = group.getColorSpace();
Expand Down

0 comments on commit 7bbf9b4

Please sign in to comment.