From 8b17a8c25935ac1e6c7bedc7236ad585e620e4c9 Mon Sep 17 00:00:00 2001 From: Maxim Date: Sat, 10 Aug 2024 22:34:44 +0300 Subject: [PATCH] Add method getisCatalogMetadata to PBoxPDMetadata --- .../java/org/verapdf/model/impl/pb/pd/PBoxPDMetadata.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/PBoxPDMetadata.java b/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/PBoxPDMetadata.java index 04bdb435..4f763187 100644 --- a/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/PBoxPDMetadata.java +++ b/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/PBoxPDMetadata.java @@ -142,4 +142,9 @@ public static boolean isMetadataObject(COSBase obj) { && ((COSStream) obj).getCOSName(COSName.TYPE) == COSName.METADATA && ((COSStream) obj).getCOSName(COSName.SUBTYPE) == COSName.getPDFName("XML"); } + + @Override + public Boolean getisCatalogMetadata() { + return isMainMetadata; + } } \ No newline at end of file