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 2c467206..2a0a24f8 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 @@ -217,10 +217,13 @@ public static String getStructureElementStandardType(COSDictionary pdStructElem, } @Override - public Boolean getisRemappedStandardType() { + public String getremappedStandardType() { COSBase type = ((COSDictionary) this.simplePDObject).getDictionaryObject(COSName.S); if (type instanceof COSName) { - return this.roleMapHelper.isRemappedStandardType(((COSName) type).getName()); + String value = ((COSName) type).getName(); + if (this.roleMapHelper.isRemappedStandardType(value)) { + return value; + } } return null; } diff --git a/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/pboxse/PBoxSENonStandard.java b/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/pboxse/PBoxSENonStandard.java index 05c15cd5..c9d05365 100644 --- a/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/pboxse/PBoxSENonStandard.java +++ b/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/pboxse/PBoxSENonStandard.java @@ -31,4 +31,9 @@ public class PBoxSENonStandard extends PBoxSEGeneral implements SENonStandard { public PBoxSENonStandard(COSDictionary structElemDictionary, TaggedPDFRoleMapHelper roleMapHelper, String standardType) { super(structElemDictionary, roleMapHelper, standardType, NON_STANDARD_STRUCTURE_ELEMENT_TYPE); } + + @Override + public Boolean getisNotMappedToStandardType() { + return null; + } }