 | 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.ConversionAssembly: PdfTools (in PdfTools.dll) Version: 1.9.1+b77910aba6fa7f07fcfd9b66a6f8c5a618f049a3
Syntaxpublic 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.
ExceptionsException | Condition |
---|
ArgumentException | The invoice stream could not be opened for reading. |
ArgumentNullException | if invoice is . |
See Also