Skip to content

Commit

Permalink
Profile merger. Add ISO 32005 rules to WTPDF profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Aug 7, 2024
1 parent a3ea14d commit 7efe360
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified profile-merger/profile-merger-1.0-SNAPSHOT.jar
Binary file not shown.
6 changes: 3 additions & 3 deletions profile-merger/src/main/java/org/verapdf/ProfileMerger.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ private static void updatePDFUAProfiles(ZipFile zipSource) {
excludedWCAGRules.add(Profiles.ruleIdFromValues(PDFAFlavour.Specification.ISO_14289_1, "7.18.5", 2));
generateProfile(zipSource, "WCAG-2-2-Complete.xml", PDFUA_FOLDER, new String[]{"WCAG/2.2", "WCAG/PDF_UA", "1"}, new String[]{}, excludedWCAGRules);
generateProfile(zipSource, WCAG_MACHINE_PROFILE_NAME, PDFUA_FOLDER, new String[]{"WCAG/2.2", "WCAG/PDF_UA", "1"}, new String[]{}, excludedWCAGRules);
List<RuleId> excludedWTPDFRules = new ArrayList<>(18);//not for reuse
List<RuleId> excludedWTPDFRules = new ArrayList<>(excludedWCAGRules);
excludedWTPDFRules.add(Profiles.ruleIdFromValues(PDFAFlavour.Specification.ISO_14289_2, "5", 1));
excludedWTPDFRules.add(Profiles.ruleIdFromValues(PDFAFlavour.Specification.ISO_14289_2, "5", 2));
excludedWTPDFRules.add(Profiles.ruleIdFromValues(PDFAFlavour.Specification.ISO_14289_2, "5", 3));
excludedWTPDFRules.add(Profiles.ruleIdFromValues(PDFAFlavour.Specification.ISO_14289_2, "5", 4));
excludedWTPDFRules.add(Profiles.ruleIdFromValues(PDFAFlavour.Specification.ISO_14289_2, "5", 5));
generateProfile(zipSource, "WTPDF-1-0-Accessibility.xml", PDFUA_FOLDER, new String[]{"2", "WTPDF/1.0/Accessibility"}, new String[]{}, excludedWTPDFRules);
generateProfile(zipSource, "WTPDF-1-0-Accessibility.xml", PDFUA_FOLDER, new String[]{"2", "WTPDF/1.0/Accessibility"}, new String[]{"ISO-32005-Tagged.xml"}, excludedWTPDFRules);
excludedWTPDFRules.add(Profiles.ruleIdFromValues(PDFAFlavour.Specification.ISO_14289_2, "8.2.5.28.2", 1));
excludedWTPDFRules.add(Profiles.ruleIdFromValues(PDFAFlavour.Specification.ISO_14289_2, "8.2.5.29", 1));
excludedWTPDFRules.add(Profiles.ruleIdFromValues(PDFAFlavour.Specification.ISO_14289_2, "8.4.3", 1));
Expand All @@ -111,7 +111,7 @@ private static void updatePDFUAProfiles(ZipFile zipSource) {
excludedWTPDFRules.add(Profiles.ruleIdFromValues(PDFAFlavour.Specification.ISO_14289_2, "8.9.2.4.19", 1));
excludedWTPDFRules.add(Profiles.ruleIdFromValues(PDFAFlavour.Specification.ISO_14289_2, "8.9.2.4.19", 2));
excludedWTPDFRules.add(Profiles.ruleIdFromValues(PDFAFlavour.Specification.ISO_14289_2, "8.11.2", 1));
generateProfile(zipSource, "WTPDF-1-0-Reuse.xml", PDFUA_FOLDER, new String[]{"2", "WTPDF/1.0/Reuse"}, new String[]{}, excludedWTPDFRules);
generateProfile(zipSource, "WTPDF-1-0-Reuse.xml", PDFUA_FOLDER, new String[]{"2", "WTPDF/1.0/Reuse"}, new String[]{"ISO-32005-Tagged.xml"}, excludedWTPDFRules);
}

private static void generateProfile(ZipFile zipSource, String generalProfileName, String folder, String[] folders,
Expand Down

0 comments on commit 7efe360

Please sign in to comment.