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 25, 2023
1 parent ea430e4 commit f1d84ca
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 f1d84ca

Please sign in to comment.