From 3a0295b5975976939bcbd5fded6e5b36dc5c957d Mon Sep 17 00:00:00 2001 From: Maxim <maxplusim@mail.ru> Date: Wed, 13 Dec 2023 14:21:37 +0300 Subject: [PATCH] Add getcontainsParent to PBoxPDStructElem --- .../java/org/verapdf/model/impl/pb/pd/PBoxPDStructElem.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/PBoxPDStructElem.java b/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/PBoxPDStructElem.java index bd8495ab..2c467206 100644 --- a/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/PBoxPDStructElem.java +++ b/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/PBoxPDStructElem.java @@ -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);