diff --git a/job-service/model/src/main/java/org/verapdf/webapp/jobservice/model/entity/enums/Profile.java b/job-service/model/src/main/java/org/verapdf/webapp/jobservice/model/entity/enums/Profile.java index ce9d9cd2..d701916f 100644 --- a/job-service/model/src/main/java/org/verapdf/webapp/jobservice/model/entity/enums/Profile.java +++ b/job-service/model/src/main/java/org/verapdf/webapp/jobservice/model/entity/enums/Profile.java @@ -3,6 +3,8 @@ public enum Profile { TAGGED_PDF("Tagged PDF"), PDFUA_1_MACHINE("PDF/UA-1 (Machine)"), + PDFUA_2_MACHINE("PDF/UA-2 (Machine)"), + PDFUA_2_TAGGED_PDF("PDF/UA-2 + Tagged PDF"), PDFUA_1_HUMAN("PDF/UA-1 (Human)"), WCAG_2_1("WCAG 2.1 (Extra)"), WCAG_2_1_COMPLETE("WCAG 2.1 (All)"), diff --git a/worker/src/main/java/org/verapdf/webapp/worker/entity/ProfileMapper.java b/worker/src/main/java/org/verapdf/webapp/worker/entity/ProfileMapper.java index dcee9ebe..ed937cca 100644 --- a/worker/src/main/java/org/verapdf/webapp/worker/entity/ProfileMapper.java +++ b/worker/src/main/java/org/verapdf/webapp/worker/entity/ProfileMapper.java @@ -45,6 +45,12 @@ public ProfileMapper() throws JAXBException { this.profilesMap.put(Profile.PDFUA_1_MACHINE, Profiles.profileFromXml(Objects.requireNonNull(getClass().getResourceAsStream( "/profiles/veraPDF-validation-profiles/PDF_UA/PDFUA-1.xml")))); + this.profilesMap.put(Profile.PDFUA_2_MACHINE, + Profiles.profileFromXml(Objects.requireNonNull(getClass().getResourceAsStream( + "/profiles/veraPDF-validation-profiles/PDF_UA/PDFUA-2.xml")))); + this.profilesMap.put(Profile.PDFUA_2_TAGGED_PDF, + Profiles.profileFromXml(Objects.requireNonNull(getClass().getResourceAsStream( + "/profiles/veraPDF-validation-profiles/PDF_UA/PDFUA-2-ISO32005.xml")))); this.profilesMap.put(Profile.TAGGED_PDF, Profiles.profileFromXml(Objects.requireNonNull(getClass().getResourceAsStream( "/profiles/veraPDF-validation-profiles/PDF_UA/ISO-32005-Tagged.xml")))); diff --git a/worker/src/main/resources/profiles/veraPDF-validation-profiles b/worker/src/main/resources/profiles/veraPDF-validation-profiles index b49d5656..30e30711 160000 --- a/worker/src/main/resources/profiles/veraPDF-validation-profiles +++ b/worker/src/main/resources/profiles/veraPDF-validation-profiles @@ -1 +1 @@ -Subproject commit b49d5656719300a620e67dc72935fb07c21084dc +Subproject commit 30e307113b52d6d6c5c211d44d02e9bc0ee609dd