diff --git a/src/main/java/org/verapdf/pd/structure/PDStructElem.java b/src/main/java/org/verapdf/pd/structure/PDStructElem.java index cf329307..fe49921c 100644 --- a/src/main/java/org/verapdf/pd/structure/PDStructElem.java +++ b/src/main/java/org/verapdf/pd/structure/PDStructElem.java @@ -135,8 +135,8 @@ public static StructureType getStructureTypeStandardStructureType(StructureType } if (!PDFFlavour.isFlavourPDFSpecification(flavour, PDFFlavour.PDFSpecification.ISO_32000_2_0) || PDFFlavour.isFlavourFamily(flavour, PDFFlavour.SpecificationFamily.WCAG)) { if (type != null) { - return StructureType.createStructureType(ASAtom.getASAtom( - StaticResources.getRoleMapHelper().getStandardType(type.getType()))); + return new StructureType(ASAtom.getASAtom( + StaticResources.getRoleMapHelper().getStandardType(type.getType())), type.getNameSpace()); } } return null; diff --git a/src/main/java/org/verapdf/pd/structure/StructureType.java b/src/main/java/org/verapdf/pd/structure/StructureType.java index 8d54f776..709f7e8f 100644 --- a/src/main/java/org/verapdf/pd/structure/StructureType.java +++ b/src/main/java/org/verapdf/pd/structure/StructureType.java @@ -32,7 +32,7 @@ public class StructureType { private final ASAtom type; private final PDStructureNameSpace nameSpace; - private StructureType(ASAtom type, PDStructureNameSpace nameSpace) { + public StructureType(ASAtom type, PDStructureNameSpace nameSpace) { this.type = type; this.nameSpace = nameSpace; }