Set ignoreInputErrors flag before loading PDFs
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user