Skip to content

Commit

Permalink
Add getremappedStandardType to PBoxPDStructElem
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Dec 20, 2023
1 parent ea430e4 commit d7929c5
Showing 1 changed file with 5 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

0 comments on commit d7929c5

Please sign in to comment.