Merge pull request #539 from melo0187/fix-pdfa-validation

Fix #538: PDFValidation for PDF/A-3A always invalid
This commit is contained in:
Jochen Staerk
2024-11-01 17:42:51 +01:00
committed by GitHub
3 changed files with 15 additions and 2 deletions

View File

@@ -141,6 +141,17 @@ public class ZUGFeRDValidatorTest extends ResourceCase {
}
public void testPDFA3AValidation() {
File tempFile = getResourceAsFile("zugferd_2p1_EXTENDED_PDFA-3A.pdf");
ZUGFeRDValidator zfv = new ZUGFeRDValidator();
String res = zfv.validate(tempFile.getAbsolutePath());
assertThat(res).valueByXPath("/validation/pdf/summary/@status")
.isEqualTo("valid");
}
/***
* the XMLValidatorTests only cover the <xml></xml> part, this one includes the root element and
* the global <summary></summary> part as well