Click or drag to resize
Pdftools logo

ConverterAddInvoiceXml Method

Prepares the invoice XML file (ZUGFeRD or Factur-X) for embedding.

Note: This requires the compliance to be set to PDF/A-3.

Namespace: PdfTools.PdfA.Conversion
Assembly: PdfTools (in PdfTools.dll) Version: 1.7.0+cfcc11b476b3e1eb4320f0f37269191f64e36bd8
Syntax
C#
public void AddInvoiceXml(
	InvoiceType invoiceType,
	Stream invoice,
	AFRelationship? afRelationship = null
)

Parameters

invoiceType  InvoiceType
The type of invoice.
invoice  Stream
The XML invoice stream.
afRelationship  NullableAFRelationship  (Optional)
If no value is provided, a sensible default value is chosen based on the invoice type and version.
Exceptions
ExceptionCondition
ArgumentExceptionThe invoice stream could not be opened for reading.
ArgumentNullExceptionif invoice is .
See Also