You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when combining a pdf (created as PDF/A-1b with Libre Office) with a xml the CLI throws ERROR ROOT - File is not a valid PDF/A-1 input file
independent of option --ignorefileextension.
By looking at the source I can see that .load(pdfName) ist called before .ignorePDFAErrors() (code line 715-728):
ze = new ZUGFeRDExporterFromPDFA().load(pdfName);
ze.setProducer("Mustang-cli")
.setZUGFeRDVersion(zfIntVersion)
.setCreator(System.getProperty("user.name")).setProfile(zfConformanceLevelProfile);
if (ignoreInputErrors) {
((ZUGFeRDExporterFromA1) ze).ignorePDFAErrors();
}
}
for (FileAttachment attachment : attachments) {
((ZUGFeRDExporterFromA3) ze).attachFile(attachment.getFilename(), attachment.getData(), attachment.getMimetype(), attachment.getRelation());
}
// ze = ze.load(pdfName);
I added a test for the functionality itself in [d22a8a0] , unfortunately I cant test end-to-end yet due to a Exception in thread "main" java.lang.NoClassDefFoundError: jakarta/activation/DataSource... I hope I can fix that soon
when combining a pdf (created as PDF/A-1b with Libre Office) with a xml the CLI throws
ERROR ROOT - File is not a valid PDF/A-1 input file
independent of option --ignorefileextension.
By looking at the source I can see that .load(pdfName) ist called before .ignorePDFAErrors() (code line 715-728):
Seems this was introduced on #341
The text was updated successfully, but these errors were encountered: