Merge pull request #240 from fourcube/master

Set ignoreInputErrors flag before loading PDFs
This commit is contained in:
Jochen Staerk
2021-04-22 10:26:46 +02:00
committed by GitHub

View File

@@ -642,15 +642,16 @@ public class Main {
} }
// All params are good! continue... // All params are good! continue...
ZUGFeRDExporterFromA1 ze = (ZUGFeRDExporterFromA1) new ZUGFeRDExporterFromA1().setProducer("Mustang-cli") ZUGFeRDExporterFromA1 ze = new ZUGFeRDExporterFromA1().setProducer("Mustang-cli")
.setZUGFeRDVersion(zfIntVersion) .setZUGFeRDVersion(zfIntVersion)
.setCreator(System.getProperty("user.name")).setProfile(zfConformanceLevelProfile) .setCreator(System.getProperty("user.name")).setProfile(zfConformanceLevelProfile);
.load(pdfName);
if (ignoreInputErrors) { if (ignoreInputErrors) {
ze.ignorePDFAErrors(); ze.ignorePDFAErrors();
} }
ze = ze.load(pdfName);
if (!format.equals("fx")) { if (!format.equals("fx")) {
ze.disableFacturX(); ze.disableFacturX();
} }