Standardmäßig ZF1 exportieren

This commit is contained in:
Jochen Stärk
2017-11-18 12:24:50 +01:00
parent 5a6a65a3c9
commit dce0015c0b
5 changed files with 8 additions and 8 deletions

View File

@@ -78,13 +78,13 @@ public class XMPSchemaPDFAExtensions extends PDFAExtensionSchema {
public XMPSchemaPDFAExtensions(XMPMetadata metadata) {
super(metadata);
setZUGFeRDVersion(2);
setZUGFeRDVersion(ZUGFeRDExporter.DefaultZUGFeRDVersion);
attachExtensions(metadata, true);
}
public XMPSchemaPDFAExtensions(XMPMetadata metadata, boolean withZF) {
super(metadata);
setZUGFeRDVersion(2);
setZUGFeRDVersion(ZUGFeRDExporter.DefaultZUGFeRDVersion);
attachExtensions(metadata, withZF);
}

View File

@@ -34,6 +34,8 @@ import java.util.Map;
public class ZUGFeRDExporter implements Closeable {
public static final int DefaultZUGFeRDVersion = 1;
/**
* To use the ZUGFeRD exporter, implement IZUGFeRDExportableTransaction in
* yourTransaction (which will require you to implement Product, Item and
@@ -128,7 +130,7 @@ public class ZUGFeRDExporter implements Closeable {
}
private void init() {
setZUGFeRDVersion(2);
setZUGFeRDVersion(DefaultZUGFeRDVersion);
}
/**

View File

@@ -40,7 +40,7 @@ public class ZUGFeRDExporterFromA3Factory implements IExporterFactory {
protected PDMetadata metadata = null;
protected PDFAIdentificationSchema pdfaid = null;
protected XMPMetadata xmp = null;
protected int ZFVersion=2;
protected int ZFVersion=ZUGFeRDExporter.DefaultZUGFeRDVersion;
/**
* Makes A PDF/A3a-compliant document from a PDF-A1 compliant document (on the
* metadata level, this will not e.g. convert graphics to JPG-2000)