public class ZUGFeRDExporterFromPDFA extends java.lang.Object implements IZUGFeRDExporter
| Modifier and Type | Field and Description |
|---|---|
protected IZUGFeRDExporter |
theExporter |
| Constructor and Description |
|---|
ZUGFeRDExporterFromPDFA() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
determineAndSetExporter(int PDFAVersion) |
IZUGFeRDExporter |
disableAutoClose(boolean disableAutoClose) |
IZUGFeRDExporter |
disableFacturX() |
boolean |
ensurePDFIsValid(javax.activation.DataSource dataSource) |
void |
export(java.io.OutputStream output) |
void |
export(java.lang.String ZUGFeRDfilename) |
protected byte[] |
filenameToByteArray(java.lang.String pdfFilename) |
protected IZUGFeRDExporter |
getExporter() |
java.lang.String |
getNamespaceForVersion(int ver) |
java.lang.String |
getPrefixForVersion(int ver) |
IXMLProvider |
getProvider() |
protected byte[] |
inputstreamToByteArray(java.io.InputStream fileInputStream) |
IZUGFeRDExporter |
load(byte[] pdfBinary)
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)
|
IZUGFeRDExporter |
load(java.io.InputStream pdfSource)
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)
|
IZUGFeRDExporter |
load(java.lang.String pdfFilename)
Load from filename
|
IZUGFeRDExporter |
setConformanceLevel(PDFAConformanceLevel newLevel) |
IZUGFeRDExporter |
setCreator(java.lang.String creator) |
IZUGFeRDExporter |
setProducer(java.lang.String producer) |
ZUGFeRDExporterFromPDFA |
setProfile(Profile p) |
ZUGFeRDExporterFromPDFA |
setProfile(java.lang.String profileName) |
IExporter |
setTransaction(IExportableTransaction trans) |
IZUGFeRDExporter |
setXML(byte[] zugferdData) |
IZUGFeRDExporter |
setZUGFeRDVersion(int version) |
protected IZUGFeRDExporter theExporter
protected void determineAndSetExporter(int PDFAVersion)
protected IZUGFeRDExporter getExporter()
protected byte[] filenameToByteArray(java.lang.String pdfFilename)
throws java.io.IOException
java.io.IOExceptionprotected byte[] inputstreamToByteArray(java.io.InputStream fileInputStream)
throws java.io.IOException
java.io.IOExceptionpublic IZUGFeRDExporter load(java.lang.String pdfFilename) throws java.io.IOException
load in interface IZUGFeRDExporterpdfFilename - binary of a PDF/A1 compliant documentjava.io.IOException - e.g. on read errorpublic IZUGFeRDExporter load(byte[] pdfBinary) throws java.io.IOException
load in interface IZUGFeRDExporterpdfBinary - binary of a PDF/A1 compliant documentjava.io.IOException - (should not happen at all)public IZUGFeRDExporter load(java.io.InputStream pdfSource) throws java.io.IOException
load in interface IZUGFeRDExporterpdfSource - source to read a PDF/A1 compliant document fromjava.io.IOException - if anything is wrong with inputstreampublic IZUGFeRDExporter setCreator(java.lang.String creator)
setCreator in interface IZUGFeRDExporterpublic ZUGFeRDExporterFromPDFA setProfile(Profile p)
setProfile in interface IZUGFeRDExporterpublic ZUGFeRDExporterFromPDFA setProfile(java.lang.String profileName)
public IZUGFeRDExporter setConformanceLevel(PDFAConformanceLevel newLevel)
setConformanceLevel in interface IZUGFeRDExporterpublic IZUGFeRDExporter setProducer(java.lang.String producer)
setProducer in interface IZUGFeRDExporterpublic IZUGFeRDExporter setZUGFeRDVersion(int version)
setZUGFeRDVersion in interface IZUGFeRDExporterpublic boolean ensurePDFIsValid(javax.activation.DataSource dataSource)
throws java.io.IOException
ensurePDFIsValid in interface IZUGFeRDExporterjava.io.IOExceptionpublic IZUGFeRDExporter setXML(byte[] zugferdData) throws java.io.IOException
setXML in interface IZUGFeRDExporterjava.io.IOExceptionpublic IZUGFeRDExporter disableFacturX()
disableFacturX in interface IZUGFeRDExporterpublic java.lang.String getNamespaceForVersion(int ver)
getNamespaceForVersion in interface IZUGFeRDExporterpublic java.lang.String getPrefixForVersion(int ver)
getPrefixForVersion in interface IZUGFeRDExporterpublic IZUGFeRDExporter disableAutoClose(boolean disableAutoClose)
disableAutoClose in interface IZUGFeRDExporterpublic IXMLProvider getProvider()
getProvider in interface IZUGFeRDExporterpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic IExporter setTransaction(IExportableTransaction trans) throws java.io.IOException
setTransaction in interface IExporterjava.io.IOExceptionpublic void export(java.lang.String ZUGFeRDfilename)
throws java.io.IOException
Copyright © 2024. All rights reserved.