Merge pull request #539 from melo0187/fix-pdfa-validation
Fix #538: PDFValidation for PDF/A-3A always invalid
This commit is contained in:
@@ -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
|
||||
|
||||
BIN
validator/src/test/resources/zugferd_2p1_EXTENDED_PDFA-3A.pdf
Normal file
BIN
validator/src/test/resources/zugferd_2p1_EXTENDED_PDFA-3A.pdf
Normal file
Binary file not shown.
Reference in New Issue
Block a user