Ignore calculation errors when extracting xml from pdf.

This commit is contained in:
langfr
2025-05-30 20:52:32 +01:00
parent 7f4a8f0073
commit 1be7353e45

View File

@@ -565,7 +565,9 @@ public class Main {
ensureFileNotExists(xmlName);
// All params are good! continue...
ZUGFeRDImporter zi = new ZUGFeRDImporter(pdfName);
ZUGFeRDImporter zi = new ZUGFeRDImporter();
zi.doIgnoreCalculationErrors();
zi.setPDFFilename(pdfName);
byte[] XMLContent = zi.getRawXML();
if (XMLContent == null) {
System.err.println("No ZUGFeRD XML found in PDF file");