Added example how to combine existing PDF and existing invoice XML

This commit is contained in:
dankito 2024-11-19 23:52:18 +01:00
parent c64b6e7c77
commit a29f3ce498
2 changed files with 10 additions and 0 deletions

View File

@ -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)
```

View File

@ -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)
}