PdfDocument.AttachZugferdInvoice(Byte[]) Method
Attaches a ZUGFeRD XML to the document.
Namespace: DevExpress.Pdf
Assembly: DevExpress.Pdf.v23.2.Core.dll
NuGet Package: DevExpress.Pdf.Core
Declaration
Parameters
Name | Type | Description |
---|---|---|
invoiceData | Byte[] | A byte array that contains ZUGFeRD XML data. |
Remarks
Note
The AttachZugferdInvoice method does not convert the document to a PDF/A-3b compatible file. Make sure that your document is PDF/A-3b compliant.
using (PdfDocumentProcessor pdfDocumentProcessor = new PdfDocumentProcessor())
{
pdfDocumentProcessor.LoadDocument("Invoice.pdf");
pdfDocumentProcessor.Document.AttachZugferdInvoice
(File.ReadAllBytes("ZUGFeRD-invoice.xml"));
pdfDocumentProcessor.SaveDocument("Invoice_Upd.pdf");
}
See Also