Skip to main content
All docs
V25.1
  • PdfDocument.AttachZugferdInvoice(Byte[]) Method

    Attaches a ZUGFeRD XML to the document.

    Namespace: DevExpress.Pdf

    Assembly: DevExpress.Pdf.v25.1.Core.dll

    NuGet Package: DevExpress.Pdf.Core

    Declaration

    public void AttachZugferdInvoice(
        byte[] invoiceData
    )

    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