Skip to content

Commit

Permalink
Add parametr showErrorMessages to createValidator
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed May 17, 2022
1 parent 3e7b5c2 commit 73b5578
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-images-tagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
java-version: 1.11

- name: Update gut submodule for veraPDF-validation-profiles
- name: Update git submodule for veraPDF-validation-profiles
run: git submodule update --init --remote --recursive

- name: Build with Maven
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
ref: 'integration'
})
- name: Update gut submodule for veraPDF-validation-profiles
- name: Update git submodule for veraPDF-validation-profiles
run: git submodule update --init --remote --recursive

- name: Build with Maven
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ public ValidationReport validate(File source, Profile profile) throws VeraPDFPro
"Missing validation profile for " + profile.name());
}
try (PDFAParser parser = Foundries.defaultInstance().createParser(source, validationProfile.getPDFAFlavour());
PDFAValidator validator = ValidatorFactory.createValidator(validationProfile, false)) {
PDFAValidator validator = ValidatorFactory.createValidator(validationProfile, 100, false, true)) {
validationResult = validator.validate(parser);
}
}
ValidationDetails details
= Reports.fromValues(validationResult, false, 100);
= Reports.fromValues(validationResult, false);
return Reports.createValidationReport(details,
validationResult.getProfileDetails().getName(),
getStatement(validationResult.isCompliant()),
Expand Down

0 comments on commit 73b5578

Please sign in to comment.