Skip to content

Commit

Permalink
Add PDF/UA-2 profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Dec 5, 2023
1 parent e4c8b2f commit 51a796d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.xml"))));
this.profilesMap.put(Profile.TAGGED_PDF,
Profiles.profileFromXml(Objects.requireNonNull(getClass().getResourceAsStream(
"/profiles/veraPDF-validation-profiles/PDF_UA/ISO-32005-Tagged.xml"))));
Expand Down

0 comments on commit 51a796d

Please sign in to comment.