Added example how to combine existing PDF and existing invoice XML
This commit is contained in:
parent
c64b6e7c77
commit
a29f3ce498
|
@ -79,4 +79,9 @@ val output = File("Zugferd.pdf")
|
|||
val creator = EInvoiceCreator()
|
||||
|
||||
creator.combinePdfAndInvoiceXml(invoice, existingPdf, output)
|
||||
|
||||
// or if you already have the invoice XML:
|
||||
val invoiceXml: String = "..." // e.g. creator.createZugferdXml(invoice)
|
||||
|
||||
creator.combinePdfAndInvoiceXml(invoiceXml, existingPdf, output)
|
||||
```
|
|
@ -70,6 +70,11 @@ class Demonstration {
|
|||
val creator = EInvoiceCreator()
|
||||
|
||||
creator.combinePdfAndInvoiceXml(invoice, existingPdf, output)
|
||||
|
||||
// or if you already have the invoice XML:
|
||||
val invoiceXml: String = "..." // e.g. creator.createZugferdXml(invoice)
|
||||
|
||||
creator.combinePdfAndInvoiceXml(invoiceXml, existingPdf, output)
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue