Skip to content

Commit

Permalink
Add new methods to PBoxPDXImage
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Oct 10, 2024
1 parent 8a5bbb0 commit e835171
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public class PBoxPDXImage extends PBoxPDXObject implements PDXImage {
public static final String INTENT = "Intent";
public static final String JPX_STREAM = "jpxStream";
public static final String S_MASK = "SMask";
public static final String MASK = "Mask";

private final boolean interpolate;
private List<JPEG2000> jpeg2000List = null;
Expand All @@ -85,6 +86,11 @@ public Long getBitsPerComponent() {
return (long)((PDImageXObjectProxy)simplePDObject).getBitsPerComponent();
}

@Override
public Boolean getisMask() {
return false;
}

@Override
public Boolean getcontainsAlternates() {
COSBase pageObject = this.simplePDObject.getCOSObject();
Expand All @@ -104,7 +110,9 @@ public List<? extends Object> getLinkedObjects(String link) {
case JPX_STREAM:
return this.getJPXStream();
case S_MASK:
return this.getSMask();
return this.getSMask();
case MASK:
return Collections.emptyList();
default:
return super.getLinkedObjects(link);
}
Expand Down

0 comments on commit e835171

Please sign in to comment.