updated javadoc
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
- migration: testIndicator entfernen
|
||||||
|
- in ram:ExchangedDocument: ram:name entfernen
|
||||||
|
- updated javadoc
|
||||||
|
|
||||||
1.7.2
|
1.7.2
|
||||||
=====
|
=====
|
||||||
|
|||||||
@@ -22,6 +22,13 @@ import java.io.IOException;
|
|||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
public interface IExporterFactory {
|
public interface IExporterFactory {
|
||||||
|
/**
|
||||||
|
* factory: loads a PDF file and returns an appropriate exporter
|
||||||
|
*
|
||||||
|
* @param pdfFilename binary of a PDF/A1 compliant document
|
||||||
|
* @return the generated exporter
|
||||||
|
* @throws IOException if anything is wrong with filename
|
||||||
|
*/
|
||||||
public ZUGFeRDExporter load(String pdfFilename) throws IOException;
|
public ZUGFeRDExporter load(String pdfFilename) throws IOException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -29,6 +36,8 @@ public interface IExporterFactory {
|
|||||||
* metadata level, this will not e.g. convert graphics to JPG-2000)
|
* metadata level, this will not e.g. convert graphics to JPG-2000)
|
||||||
*
|
*
|
||||||
* @param pdfBinary binary of a PDF/A1 compliant document
|
* @param pdfBinary binary of a PDF/A1 compliant document
|
||||||
|
* @return the generated exporter
|
||||||
|
* @throws IOException (should not happen at all)
|
||||||
*/
|
*/
|
||||||
public ZUGFeRDExporter load(byte[] pdfBinary) throws IOException;
|
public ZUGFeRDExporter load(byte[] pdfBinary) throws IOException;
|
||||||
|
|
||||||
@@ -37,7 +46,8 @@ public interface IExporterFactory {
|
|||||||
* metadata level, this will not e.g. convert graphics to JPG-2000)
|
* metadata level, this will not e.g. convert graphics to JPG-2000)
|
||||||
*
|
*
|
||||||
* @param pdfSource source to read a PDF/A1 compliant document from
|
* @param pdfSource source to read a PDF/A1 compliant document from
|
||||||
* @throws IOException
|
* @throws IOException if anything is wrong with inputstream
|
||||||
|
* @return the generated ZUGFeRDExporter
|
||||||
*/
|
*/
|
||||||
public ZUGFeRDExporter load(InputStream pdfSource) throws IOException;
|
public ZUGFeRDExporter load(InputStream pdfSource) throws IOException;
|
||||||
|
|
||||||
|
|||||||
@@ -19,11 +19,11 @@
|
|||||||
package org.mustangproject.ZUGFeRD;
|
package org.mustangproject.ZUGFeRD;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mustangproject's ZUGFeRD implementation Neccessary interface for ZUGFeRD exporter Licensed under the APLv2
|
* Mustangproject's ZUGFeRD implementation neccessary interface for ZUGFeRD exporter Licensed under the APLv2
|
||||||
*
|
*
|
||||||
* @author jstaerk
|
* @author jstaerk
|
||||||
* @version 1.2.0
|
* @version 1.2.0
|
||||||
* @date 2014-05-10
|
* dated 2014-05-10
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import java.math.BigDecimal;
|
|||||||
*
|
*
|
||||||
* @author jstaerk
|
* @author jstaerk
|
||||||
* @version 1.2.0
|
* @version 1.2.0
|
||||||
* @date 2014-05-10
|
* dated 2014-05-10
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public interface IZUGFeRDExportableProduct {
|
public interface IZUGFeRDExportableProduct {
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ public interface IZUGFeRDExportableTransaction {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* this should be the full sender institution name, details, manager and tax registration. It is one of the few functions which may return null. e.g.
|
* this should be the full sender institution name, details, manager and tax registration. It is one of the few functions which may return null. e.g.
|
||||||
* <p/>
|
* <p>
|
||||||
* Lieferant GmbH Lieferantenstraße 20 80333 München Deutschland Geschäftsführer: Hans Muster Handelsregisternummer: H A 123
|
* Lieferant GmbH Lieferantenstraße 20 80333 München Deutschland Geschäftsführer: Hans Muster Handelsregisternummer: H A 123
|
||||||
*
|
*
|
||||||
* @return null or full sender institution name, details, manager and tax registration
|
* @return null or full sender institution name, details, manager and tax registration
|
||||||
@@ -115,6 +115,8 @@ public interface IZUGFeRDExportableTransaction {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* the creditors payment informations
|
* the creditors payment informations
|
||||||
|
*
|
||||||
|
* @return an array of IZUGFeRDTradeSettlementPayment
|
||||||
*/
|
*/
|
||||||
IZUGFeRDTradeSettlementPayment[] getTradeSettlementPayment();
|
IZUGFeRDTradeSettlementPayment[] getTradeSettlementPayment();
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import java.math.BigDecimal;
|
|||||||
*
|
*
|
||||||
* @author jstaerk
|
* @author jstaerk
|
||||||
* @version 1.2.0
|
* @version 1.2.0
|
||||||
* @date 2015-10-29
|
* dated 2015-10-29
|
||||||
*/
|
*/
|
||||||
public class VATAmount {
|
public class VATAmount {
|
||||||
|
|
||||||
@@ -61,6 +61,7 @@ public class VATAmount {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @deprecated Use {@link #getCategoryCode() instead}
|
* @deprecated Use {@link #getCategoryCode() instead}
|
||||||
|
* @return String with category code
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String getDocumentCode() {
|
public String getDocumentCode() {
|
||||||
@@ -68,7 +69,7 @@ public class VATAmount {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* @param documentCode as String
|
||||||
* @deprecated Use {@link #setCategoryCode(String)} instead
|
* @deprecated Use {@link #setCategoryCode(String)} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
|||||||
@@ -31,8 +31,13 @@ import org.apache.xmpbox.schema.XMPSchema;
|
|||||||
|
|
||||||
public class XMPSchemaZugferd extends XMPSchema {
|
public class XMPSchemaZugferd extends XMPSchema {
|
||||||
|
|
||||||
/**
|
/***
|
||||||
* This is what needs to be added to the RDF metadata - basically the name of the embedded Zugferd file
|
* This is what needs to be added to the RDF metadata - basically the name of the embedded Zugferd file
|
||||||
|
* @param metadata the xmp to be added to
|
||||||
|
* @param conformanceLevel e.g. conformanceLevel.EN16931
|
||||||
|
* @param URN the xml URI for the XMP
|
||||||
|
* @param prefix the xml namespace prefix for the XMP, zf for ZUGFeRD, fx for Factur-X
|
||||||
|
* @param filename the filename of the invoice
|
||||||
*/
|
*/
|
||||||
public XMPSchemaZugferd(XMPMetadata metadata, ZUGFeRDConformanceLevel conformanceLevel, String URN, String prefix, String filename) {
|
public XMPSchemaZugferd(XMPMetadata metadata, ZUGFeRDConformanceLevel conformanceLevel, String URN, String prefix, String filename) {
|
||||||
super(metadata, URN, prefix, "ZUGFeRD Schema");
|
super(metadata, URN, prefix, "ZUGFeRD Schema");
|
||||||
|
|||||||
@@ -195,15 +195,16 @@ public class ZUGFeRDExporter implements Closeable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* All files are PDF/A-3, setConformance refers to the level conformance.
|
* All files are PDF/A-3, setConformance refers to the level conformance.
|
||||||
* <p/>
|
*
|
||||||
* PDF/A-3 has three conformance levels, called "A", "U" and "B".
|
* PDF/A-3 has three conformance levels, called "A", "U" and "B".
|
||||||
* <p/>
|
* <p>
|
||||||
* PDF/A-3-B where B means only visually preservable, U -standard for Mustang-
|
* PDF/A-3-B where B means only visually preservable, U -standard for Mustang-
|
||||||
* means visually and unicode preservable and A means full compliance, i.e.
|
* means visually and unicode preservable and A means full compliance, i.e.
|
||||||
* visually, unicode and structurally preservable and tagged PDF, i.e. useful
|
* visually, unicode and structurally preservable and tagged PDF, i.e. useful
|
||||||
* metainformation for blind people.
|
* metainformation for blind people.
|
||||||
* <p/>
|
* <p>
|
||||||
* Feel free to pass "A" as new level if you know what you are doing :-)
|
* Feel free to pass "A" as new level if you know what you are doing :-)
|
||||||
|
* @param newLevel "A", "U" or "B"
|
||||||
*
|
*
|
||||||
* @deprecated Use {@link ZUGFeRDExporterFromA1Factory} instead
|
* @deprecated Use {@link ZUGFeRDExporterFromA1Factory} instead
|
||||||
*/
|
*/
|
||||||
@@ -217,16 +218,17 @@ public class ZUGFeRDExporter implements Closeable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* All files are PDF/A-3, setConformance refers to the level conformance.
|
* All files are PDF/A-3, setConformance refers to the level conformance.
|
||||||
* <p/>
|
* <p>
|
||||||
* PDF/A-3 has three conformance levels, called "A", "U" and "B".
|
* PDF/A-3 has three conformance levels, called "A", "U" and "B".
|
||||||
* <p/>
|
* <p>
|
||||||
* PDF/A-3-B where B means only visually preservable, U -standard for Mustang-
|
* PDF/A-3-B where B means only visually preservable, U -standard for Mustang-
|
||||||
* means visually and unicode preservable and A means full compliance, i.e.
|
* means visually and unicode preservable and A means full compliance, i.e.
|
||||||
* visually, unicode and structurally preservable and tagged PDF, i.e. useful
|
* visually, unicode and structurally preservable and tagged PDF, i.e. useful
|
||||||
* metainformation for blind people.
|
* metainformation for blind people.
|
||||||
* <p/>
|
* <p>
|
||||||
* Feel free to pass "A" as new level if you know what you are doing :-)
|
* Feel free to pass "A" as new level if you know what you are doing :-)
|
||||||
*
|
*
|
||||||
|
* @param newLevel "A", "U" or "B"
|
||||||
* @deprecated Use
|
* @deprecated Use
|
||||||
* {@link #setConformanceLevel(org.mustangproject.ZUGFeRD.PDFAConformanceLevel)}
|
* {@link #setConformanceLevel(org.mustangproject.ZUGFeRD.PDFAConformanceLevel)}
|
||||||
* instead
|
* instead
|
||||||
@@ -251,7 +253,10 @@ public class ZUGFeRDExporter implements Closeable {
|
|||||||
ignoreA1Errors = true;
|
ignoreA1Errors = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/***
|
||||||
|
* load from a pdf which is already A/3
|
||||||
|
* @param filename the PDF
|
||||||
|
* @throws IOException if anything is wrong with filename
|
||||||
* @deprecated Use the factory method {@link #createFromPDFA3(String)} instead
|
* @deprecated Use the factory method {@link #createFromPDFA3(String)} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@@ -259,19 +264,34 @@ public class ZUGFeRDExporter implements Closeable {
|
|||||||
doc = PDDocument.load(new File(filename));
|
doc = PDDocument.load(new File(filename));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
* factory create a ZUGFeRD exporter for a PDF/A-3 pdf file
|
||||||
|
* @param filename of the pdf
|
||||||
|
* @return the created ZUGFeRDExporter
|
||||||
|
* @throws IOException if something is wrong with filename
|
||||||
|
*/
|
||||||
public static ZUGFeRDExporter createFromPDFA3(String filename) throws IOException {
|
public static ZUGFeRDExporter createFromPDFA3(String filename) throws IOException {
|
||||||
return new ZUGFeRDExporter(PDDocument.load(new File(filename)));
|
return new ZUGFeRDExporter(PDDocument.load(new File(filename)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated Use the factory method {@link #createFromPDFA3(InputStream)}
|
* load from a pdf which is already A/3 from filestream
|
||||||
* instead
|
* @param file InputStream to load pdf from
|
||||||
|
* @deprecated Use the factory method {@link #createFromPDFA3(InputStream)} instead
|
||||||
|
* @throws IOException in case anything is wrong with file
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public void loadPDFA3(InputStream file) throws IOException {
|
public void loadPDFA3(InputStream file) throws IOException {
|
||||||
doc = PDDocument.load(file);
|
doc = PDDocument.load(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
* factory create a ZUGFeRD exporter for a PDF/A-3 inputstream
|
||||||
|
* @param pdfSource the InputStream of the pdf
|
||||||
|
* @return the created ZUGFeRDExporter
|
||||||
|
* @throws IOException (should not happen)
|
||||||
|
*/
|
||||||
public static ZUGFeRDExporter createFromPDFA3(InputStream pdfSource) throws IOException {
|
public static ZUGFeRDExporter createFromPDFA3(InputStream pdfSource) throws IOException {
|
||||||
return new ZUGFeRDExporter(PDDocument.load(pdfSource));
|
return new ZUGFeRDExporter(PDDocument.load(pdfSource));
|
||||||
}
|
}
|
||||||
@@ -279,7 +299,13 @@ public class ZUGFeRDExporter implements Closeable {
|
|||||||
/**
|
/**
|
||||||
* Makes A PDF/A3a-compliant document from a PDF-A1 compliant document (on the
|
* 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)
|
* metadata level, this will not e.g. convert graphics to JPG-2000)
|
||||||
*
|
* @param filename the pdf
|
||||||
|
* @param producer the name of the xmp producer (app)
|
||||||
|
* @param creator the name of the xmp creator (user)
|
||||||
|
* @param attachZugferdHeaders whether to attach XMP ZUGFeRD headers
|
||||||
|
* @return the created PDFbox PDDocumentCatalog
|
||||||
|
* @throws IOException if anything is wrong with file
|
||||||
|
* @throws TransformerException in case of xml (XMP) parsing issues
|
||||||
* @deprecated use the {@link ZUGFeRDExporterFromA1Factory} instead
|
* @deprecated use the {@link ZUGFeRDExporterFromA1Factory} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@@ -291,7 +317,18 @@ public class ZUGFeRDExporter implements Closeable {
|
|||||||
return doc.getDocumentCatalog();
|
return doc.getDocumentCatalog();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/***
|
||||||
|
*
|
||||||
|
* 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)
|
||||||
|
|
||||||
|
* @param file the InputStream of the pdf
|
||||||
|
* @param producer the name of the xmp producer (app)
|
||||||
|
* @param creator the name of the xmp creator (user)
|
||||||
|
* @param attachZugferdHeaders whether to attach XMP ZUGFeRD headers
|
||||||
|
* @return the created PDFbox PDDocumentCatalog
|
||||||
|
* @throws IOException if anything is wrong with file
|
||||||
|
* @throws TransformerException in case of xml (XMP) parsing issues
|
||||||
* @deprecated use the {@link ZUGFeRDExporterFromA1Factory} instead
|
* @deprecated use the {@link ZUGFeRDExporterFromA1Factory} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@@ -303,6 +340,7 @@ public class ZUGFeRDExporter implements Closeable {
|
|||||||
return doc.getDocumentCatalog();
|
return doc.getDocumentCatalog();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private IExporterFactory createPDFA1Factory() {
|
private IExporterFactory createPDFA1Factory() {
|
||||||
ZUGFeRDExporterFromA1Factory factory = new ZUGFeRDExporterFromA1Factory();
|
ZUGFeRDExporterFromA1Factory factory = new ZUGFeRDExporterFromA1Factory();
|
||||||
if (ignoreA1Errors) {
|
if (ignoreA1Errors) {
|
||||||
@@ -325,6 +363,7 @@ public class ZUGFeRDExporter implements Closeable {
|
|||||||
* populate the XML. This parameter may be null, if so the XML data
|
* populate the XML. This parameter may be null, if so the XML data
|
||||||
* should hav ebeen set via
|
* should hav ebeen set via
|
||||||
* <code>setZUGFeRDXMLData(byte[] zugferdData)</code>
|
* <code>setZUGFeRDXMLData(byte[] zugferdData)</code>
|
||||||
|
* @throws IOException if anything is wrong with already loaded PDF
|
||||||
*/
|
*/
|
||||||
public void PDFattachZugferdFile(IZUGFeRDExportableTransaction trans) throws IOException {
|
public void PDFattachZugferdFile(IZUGFeRDExportableTransaction trans) throws IOException {
|
||||||
prepareDocument();
|
prepareDocument();
|
||||||
@@ -339,6 +378,11 @@ public class ZUGFeRDExporter implements Closeable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
* Perform the final export to a now ZUGFeRD-enriched PDF file
|
||||||
|
* @param ZUGFeRDfilename the pdf file name
|
||||||
|
* @throws IOException if anything is wrong in the target location
|
||||||
|
*/
|
||||||
public void export(String ZUGFeRDfilename) throws IOException {
|
public void export(String ZUGFeRDfilename) throws IOException {
|
||||||
if (!documentPrepared) {
|
if (!documentPrepared) {
|
||||||
prepareDocument();
|
prepareDocument();
|
||||||
@@ -353,6 +397,12 @@ public class ZUGFeRDExporter implements Closeable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***
|
||||||
|
* Perform the final export to a now ZUGFeRD-enriched PDF file as OutputStream
|
||||||
|
* @param output the OutputStream
|
||||||
|
* @throws IOException if anything is wrong in the OutputStream
|
||||||
|
*/
|
||||||
public void export(OutputStream output) throws IOException {
|
public void export(OutputStream output) throws IOException {
|
||||||
if (!documentPrepared) {
|
if (!documentPrepared) {
|
||||||
prepareDocument();
|
prepareDocument();
|
||||||
@@ -376,7 +426,7 @@ public class ZUGFeRDExporter implements Closeable {
|
|||||||
* @param description Human-readable description of the file content
|
* @param description Human-readable description of the file content
|
||||||
* @param subType type of the data e.g. could be "text/xml" - mime like
|
* @param subType type of the data e.g. could be "text/xml" - mime like
|
||||||
* @param data the binary data of the file/attachment
|
* @param data the binary data of the file/attachment
|
||||||
* @throws java.io.IOException
|
* @throws java.io.IOException if anything is wrong with filename
|
||||||
*/
|
*/
|
||||||
public void PDFAttachGenericFile(PDDocument doc, String filename, String relationship, String description,
|
public void PDFAttachGenericFile(PDDocument doc, String filename, String relationship, String description,
|
||||||
String subType, byte[] data) throws IOException {
|
String subType, byte[] data) throws IOException {
|
||||||
@@ -446,6 +496,7 @@ public class ZUGFeRDExporter implements Closeable {
|
|||||||
* API or component.
|
* API or component.
|
||||||
*
|
*
|
||||||
* @param zugferdData XML data to be set as a byte array (XML file in raw form).
|
* @param zugferdData XML data to be set as a byte array (XML file in raw form).
|
||||||
|
* @throws IOException (should not happen)
|
||||||
*/
|
*/
|
||||||
public void setZUGFeRDXMLData(byte[] zugferdData) throws IOException {
|
public void setZUGFeRDXMLData(byte[] zugferdData) throws IOException {
|
||||||
CustomXMLProvider cus = new CustomXMLProvider();
|
CustomXMLProvider cus = new CustomXMLProvider();
|
||||||
@@ -495,7 +546,7 @@ public class ZUGFeRDExporter implements Closeable {
|
|||||||
* neccessary PDF/A schema extension description to be able to add this
|
* neccessary PDF/A schema extension description to be able to add this
|
||||||
* information to RDF
|
* information to RDF
|
||||||
*
|
*
|
||||||
* @param metadata
|
* @param metadata the PDFbox XMPMetadata object
|
||||||
*/
|
*/
|
||||||
protected void addXMP(XMPMetadata metadata) {
|
protected void addXMP(XMPMetadata metadata) {
|
||||||
|
|
||||||
@@ -607,7 +658,7 @@ public class ZUGFeRDExporter implements Closeable {
|
|||||||
/**
|
/**
|
||||||
* the human author (use factory method instead)
|
* the human author (use factory method instead)
|
||||||
*
|
*
|
||||||
* @param creator
|
* @param creator the (human) name who created the PDF
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public void setCreator(String creator) {
|
public void setCreator(String creator) {
|
||||||
@@ -617,7 +668,7 @@ public class ZUGFeRDExporter implements Closeable {
|
|||||||
/**
|
/**
|
||||||
* the CreatorTool attribute for the PDF
|
* the CreatorTool attribute for the PDF
|
||||||
*
|
*
|
||||||
* @param creator
|
* @param creatorTool the application which created the PDF
|
||||||
*/
|
*/
|
||||||
protected void setCreatorTool(String creatorTool) {
|
protected void setCreatorTool(String creatorTool) {
|
||||||
this.creatorTool = creatorTool;
|
this.creatorTool = creatorTool;
|
||||||
@@ -626,7 +677,7 @@ public class ZUGFeRDExporter implements Closeable {
|
|||||||
/**
|
/**
|
||||||
* the authoring software (use factory method instead)
|
* the authoring software (use factory method instead)
|
||||||
*
|
*
|
||||||
* @param producer
|
* @param producer the authoring software
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public void setProducer(String producer) {
|
public void setProducer(String producer) {
|
||||||
|
|||||||
@@ -173,14 +173,14 @@ public class ZUGFeRDExporterFromA3Factory implements IExporterFactory {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* All files are PDF/A-3, setConformance refers to the level conformance.
|
* All files are PDF/A-3, setConformance refers to the level conformance.
|
||||||
* <p/>
|
* <p>
|
||||||
* PDF/A-3 has three coformance levels, called "A", "U" and "B".
|
* PDF/A-3 has three coformance levels, called "A", "U" and "B".
|
||||||
* <p/>
|
* <p>
|
||||||
* PDF/A-3-B where B means only visually preservable, U -standard for Mustang-
|
* PDF/A-3-B where B means only visually preservable, U -standard for Mustang-
|
||||||
* means visually and unicode preservable and A means full compliance, i.e.
|
* means visually and unicode preservable and A means full compliance, i.e.
|
||||||
* visually, unicode and structurally preservable and tagged PDF, i.e. useful
|
* visually, unicode and structurally preservable and tagged PDF, i.e. useful
|
||||||
* metainformation for blind people.
|
* metainformation for blind people.
|
||||||
* <p/>
|
* <p>
|
||||||
* Feel free to pass "A" as new level if you know what you are doing :-)
|
* Feel free to pass "A" as new level if you know what you are doing :-)
|
||||||
*/
|
*/
|
||||||
public IExporterFactory setConformanceLevel(PDFAConformanceLevel newLevel) {
|
public IExporterFactory setConformanceLevel(PDFAConformanceLevel newLevel) {
|
||||||
|
|||||||
@@ -378,6 +378,7 @@ public class ZUGFeRDImporter {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the raw XML data as extracted from the ZUGFeRD PDF file.
|
* Returns the raw XML data as extracted from the ZUGFeRD PDF file.
|
||||||
|
* @return the raw ZUGFeRD XML data
|
||||||
*/
|
*/
|
||||||
public byte[] getRawXML() {
|
public byte[] getRawXML() {
|
||||||
return rawXML;
|
return rawXML;
|
||||||
|
|||||||
@@ -162,16 +162,11 @@ public class Toecount {
|
|||||||
/**
|
/**
|
||||||
* Prompts the user for a input or output filename
|
* Prompts the user for a input or output filename
|
||||||
*
|
*
|
||||||
* @param the
|
* @param prompt the text the user is asked
|
||||||
* text the user is asked
|
* @param defaultFilename a default Filename
|
||||||
* @param a
|
* @param expectedExtension will warn if filename does not match expected file extension
|
||||||
* default Filename
|
* @param ensureFileExists will warn if file does NOT exist (for input files)
|
||||||
* @param expectedExtension
|
* @param ensureFileNotExists will warn if file DOES exist (for output files)
|
||||||
* will warn if filename does not match expected file extension
|
|
||||||
* @param ensureFileExists
|
|
||||||
* will warn if file does NOT exist (for input files)
|
|
||||||
* @param ensureFileNotExists
|
|
||||||
* will warn if file DOES exist (for output files)
|
|
||||||
* @return String
|
* @return String
|
||||||
*/
|
*/
|
||||||
protected static String getFilenameFromUser(String prompt, String defaultFilename, String expectedExtension,
|
protected static String getFilenameFromUser(String prompt, String defaultFilename, String expectedExtension,
|
||||||
|
|||||||
Reference in New Issue
Block a user