Skip to content

Commit

Permalink
Profile merger. Fix adding ISO 32005 rules to WTPDF profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Aug 29, 2024
1 parent d757714 commit d83fa1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified profile-merger/profile-merger-1.0-SNAPSHOT.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion profile-merger/src/main/java/org/verapdf/ProfileMerger.java
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ private static void addRules(String generalProfileName, ValidationProfile profil
}

private static Rule updatePDFUA2RuleToWTPDF(Rule rule) {
RuleId ruleId = Profiles.ruleIdFromValues(PDFAFlavour.Specification.WTPDF_1_0, rule.getRuleId().getClause(),
PDFAFlavour.Specification specification = rule.getRuleId().getSpecification() == PDFAFlavour.Specification.ISO_14289_2 ?
PDFAFlavour.Specification.WTPDF_1_0 : rule.getRuleId().getSpecification();
RuleId ruleId = Profiles.ruleIdFromValues(specification, rule.getRuleId().getClause(),
rule.getRuleId().getTestNumber());
List<Reference> references = new ArrayList<>(rule.getReferences().size());
for (Reference reference : rule.getReferences()) {
Expand Down

0 comments on commit d83fa1b

Please sign in to comment.