From 67875099188465e64d6d90a30c332ecb289e95a0 Mon Sep 17 00:00:00 2001 From: Maxim Date: Fri, 12 Jan 2024 15:19:48 +0300 Subject: [PATCH] Add isPassThroughTag to PDStructElem --- src/main/java/org/verapdf/pd/structure/PDStructElem.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/org/verapdf/pd/structure/PDStructElem.java b/src/main/java/org/verapdf/pd/structure/PDStructElem.java index 4d29eee2..fa74a68d 100644 --- a/src/main/java/org/verapdf/pd/structure/PDStructElem.java +++ b/src/main/java/org/verapdf/pd/structure/PDStructElem.java @@ -160,4 +160,9 @@ public static boolean isMathStandardType(StructureType standardStructureType) { return StaticResources.getFlavour() == PDFFlavour.PDFUA_2 && standardStructureType != null && TaggedPDFConstants.MATH_ML_NAMESPACE.equals(standardStructureType.getNameSpaceURI()); } + + public static boolean isPassThroughTag(String structureType) { + return TaggedPDFConstants.NON_STRUCT.equals(structureType) || TaggedPDFConstants.DIV.equals(structureType) || + TaggedPDFConstants.PART.equals(structureType); + } }