@Named @Singleton public class ITextPdfInvoiceAppender extends Object implements InvoiceAppender
The Class IText PDF Invoice Appender.
For now we expect a compliant PDF/A-3B.
| Constructor and Description |
|---|
ITextPdfInvoiceAppender()
|
ITextPdfInvoiceAppender(XmpAppender xmpAppender,
InvoiceTransformer invoiceTransformer)
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
append(Invoice invoice,
byte[] pdf)
|
byte[] |
append(Invoice invoice,
InputStream inputStreamPdf) |
void |
append(Invoice invoice,
InputStream inputPdf,
OutputStream resultingPdf)
|
public ITextPdfInvoiceAppender()
Instantiates a new i-text pdf invoice appender.
@Inject public ITextPdfInvoiceAppender(XmpAppender xmpAppender, InvoiceTransformer invoiceTransformer)
Instantiates a new i-text pdf invoice appender.
xmpAppender - the xmp appenderinvoiceTransformer - the invoice transformerpublic byte[] append(Invoice invoice, byte[] pdf)
Append invoice.
append in interface InvoiceAppenderinvoice - the invoicepdf - the in PDF byte arraypublic byte[] append(Invoice invoice, InputStream inputStreamPdf)
append in interface InvoiceAppenderpublic void append(Invoice invoice, InputStream inputPdf, OutputStream resultingPdf)
Append invoice.
append in interface InvoiceAppenderinvoice - the invoiceinputPdf - the input pdfresultingPdf - the resulting pdfCopyright © 2014 Konik.io. All Rights Reserved.