In version 2018, Qoppa’s PDF library jPDFPreflight has added a new validation profile for PDF/A-3b ZUGFeRD invoice.

Here is some sample code to validate that a PDF file is compliant with this sub-format:

PDFPreflight pdfPreflight = new PDFPreflight("c:\\qoppa\\testData\\zugferd_invoice.pdf", null);
PreflightResults results = pdfPreflight.verifyDocument(new PDFA_3_B_ZUGFeRD_Verification(), null);
if (results.isSuccessful())
{
 System.out.println("PDF is compliant");
}
Tagged: