Ignore calculation errors when extracting xml from pdf.
This commit is contained in:
@@ -565,7 +565,9 @@ public class Main {
|
|||||||
ensureFileNotExists(xmlName);
|
ensureFileNotExists(xmlName);
|
||||||
|
|
||||||
// All params are good! continue...
|
// All params are good! continue...
|
||||||
ZUGFeRDImporter zi = new ZUGFeRDImporter(pdfName);
|
ZUGFeRDImporter zi = new ZUGFeRDImporter();
|
||||||
|
zi.doIgnoreCalculationErrors();
|
||||||
|
zi.setPDFFilename(pdfName);
|
||||||
byte[] XMLContent = zi.getRawXML();
|
byte[] XMLContent = zi.getRawXML();
|
||||||
if (XMLContent == null) {
|
if (XMLContent == null) {
|
||||||
System.err.println("No ZUGFeRD XML found in PDF file");
|
System.err.println("No ZUGFeRD XML found in PDF file");
|
||||||
|
|||||||
Reference in New Issue
Block a user