Skip to content

Commit

Permalink
Merge pull request #334 from veraPDF/struct_elem_parent
Browse files Browse the repository at this point in the history
Add getcontainsParent to PBoxPDStructElem
  • Loading branch information
MaximPlusov authored Dec 14, 2023
2 parents 4b4a6ef + 3a0295b commit 7bce3c8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ public String getparentStandardType() {
return null;
}

@Override
public Boolean getcontainsParent() {
return ((COSDictionary) this.simplePDObject).getDictionaryObject(COSName.P) != null;
}

@Override
public Boolean gethasContentItems() {
COSBase children = ((COSDictionary) this.simplePDObject).getDictionaryObject(COSName.K);
Expand Down

0 comments on commit 7bce3c8

Please sign in to comment.