From 76110c15e5dad2b42bac96369bb46961a6ec746e Mon Sep 17 00:00:00 2001 From: Maxim Date: Wed, 29 Nov 2023 14:25:20 +0300 Subject: [PATCH] PDF/UA-2. Update obtainFlavour in GFModelParser --- .../src/main/java/org/verapdf/gf/model/GFModelParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation-model/src/main/java/org/verapdf/gf/model/GFModelParser.java b/validation-model/src/main/java/org/verapdf/gf/model/GFModelParser.java index 6ce5857bb..39226123b 100644 --- a/validation-model/src/main/java/org/verapdf/gf/model/GFModelParser.java +++ b/validation-model/src/main/java/org/verapdf/gf/model/GFModelParser.java @@ -180,7 +180,7 @@ private static PDFAFlavour obtainFlavour(PDDocument document, PDFAFlavour defaul identificationConformance = ""; } PDFAFlavour pdfaFlavour = PDFAFlavour.byFlavourId(prefix + identificationPart + identificationConformance); - if (pdfaFlavour == PDFAFlavour.NO_FLAVOUR || pdfaFlavour == PDFAFlavour.PDFUA_2) { + if (pdfaFlavour == PDFAFlavour.NO_FLAVOUR) { return defaultFlavour; } return pdfaFlavour;