341 beta
This commit is contained in:
@@ -21,11 +21,12 @@ package org.mustangproject.commandline;
|
||||
import org.apache.commons.cli.*;
|
||||
import org.mustangproject.CII.CIIToUBL;
|
||||
import org.mustangproject.EStandard;
|
||||
import org.mustangproject.ZUGFeRD.*;
|
||||
import org.mustangproject.validator.Validator;
|
||||
import org.mustangproject.validator.ZUGFeRDValidator;
|
||||
import org.mustangproject.FileAttachment;
|
||||
import org.mustangproject.ZUGFeRD.*;
|
||||
import org.mustangproject.validator.ZUGFeRDValidator;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import javax.xml.transform.TransformerException;
|
||||
import java.io.*;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Files;
|
||||
@@ -33,15 +34,6 @@ import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/*
|
||||
* This is the command line interface to mustangproject
|
||||
*
|
||||
*/
|
||||
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import javax.xml.transform.TransformerException;
|
||||
|
||||
public class Main {
|
||||
private static org.slf4j.Logger LOGGER; // log output
|
||||
private static void printUsage() {
|
||||
@@ -716,8 +708,10 @@ public class Main {
|
||||
}
|
||||
|
||||
} else {
|
||||
ze = new ZUGFeRDExporterFromA1().setProducer("Mustang-cli")
|
||||
.setZUGFeRDVersion(standard, zfIntVersion)
|
||||
ze = new ZUGFeRDExporterFromPDFA().load(pdfName);
|
||||
|
||||
ze.setProducer("Mustang-cli")
|
||||
.setZUGFeRDVersion(zfIntVersion)
|
||||
.setCreator(System.getProperty("user.name")).setProfile(zfConformanceLevelProfile);
|
||||
if (ignoreInputErrors) {
|
||||
((ZUGFeRDExporterFromA1) ze).ignorePDFAErrors();
|
||||
@@ -727,7 +721,7 @@ public class Main {
|
||||
((ZUGFeRDExporterFromA3) ze).attachFile(attachment.getFilename(), attachment.getData(), attachment.getMimetype(), attachment.getRelation());
|
||||
}
|
||||
|
||||
ze = ze.load(pdfName);
|
||||
// ze = ze.load(pdfName);
|
||||
|
||||
if (format.equals("zf")) {
|
||||
ze.disableFacturX();
|
||||
|
||||
BIN
Mustang-CLI/src/test/resources/EmptyPDFA1.pdf
Normal file
BIN
Mustang-CLI/src/test/resources/EmptyPDFA1.pdf
Normal file
Binary file not shown.
Reference in New Issue
Block a user