Skip to content

Commit

Permalink
Merge pull request #336 from veraPDF/remapped_standard_type
Browse files Browse the repository at this point in the history
Add getremappedStandardType to PBoxPDStructElem
  • Loading branch information
MaximPlusov authored Dec 27, 2023
2 parents 65dd7c6 + f1d84ca commit 41dc152
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 41dc152

Please sign in to comment.