POJO embedding VeraPDF
Pre-release
Pre-release
When run with java -jar target/ZUV-0.4.2-SNAPSHOT.jar -f ZUGFeRDPDFFilename.pdf
ZUV will now output XML on STDERR. The root element is called "validation" with children "info", "pdf" for the VeraPDF results of the PDF validation and "xml" for the results of the schematron validation.
Example on a file from the corpus:
java -jar target/ZUV-0.4.2-SNAPSHOT.jar -f fail3.pdf
<validation><pdf>
<info><duration unit='ms'>2065</duration></info>
<report>
<buildInformation>
<releaseDetails id="core" version="1.10.2" buildDate="2017-11-30T12:47:00+01:00"></releaseDetails>
<releaseDetails id="validation-model" version="1.10.5" buildDate="2017-12-28T11:50:00+01:00"></releaseDetails>
</buildInformation>
<jobs>
<job>
<item size="163545">
<name>/Users/jstaerk/workspace/ZUV/fail3.pdf</name>
</item>
<validationReport profileName="PDF/A-3U validation profile" statement="PDF file is compliant with Validation Profile requirements." isCompliant="true">
<details passedRules="125" failedRules="0" passedChecks="11200" failedChecks="0"></details>
</validationReport>
<duration start="1520759189894" finish="1520759191502">00:00:01.608</duration>
</job>
</jobs>
<batchSummary totalJobs="1" failedToParse="0" encrypted="0">
<validationReports compliant="1" nonCompliant="0" failedJobs="0">1</validationReports>
<featureReports failedJobs="0">0</featureReports>
<repairReports failedJobs="0">0</repairReports>
<duration start="1520759189547" finish="1520759191533">00:00:01.986</duration>
</batchSummary>
</report>
</pdf><xml>
<error><criterion>@format</criterion><result>
Attribute '@format' is required in this context.</result>
<info><duration unit='ms'>12612</duration></info>
</xml>
<info><duration unit='ms'>14677</duration></info>
</validation>