Click or drag to resize

DocumentAddZugferdInvoice(Stream, ZugferdProfile, AttachmentRelationship) Method

Makes this document a ZUGFeRD / Factur-X hybrid electronic invoice: embeds the invoice XML as an associated file and writes the Factur-X metadata.

Namespace: ExpertPdf.HtmlToPdf.PdfDocument
Assembly: ephtmltopdf (in ephtmltopdf.dll) Version: 22.0.0
Syntax
public void AddZugferdInvoice(
	Stream invoiceXml,
	ZugferdProfile profile,
	AttachmentRelationship relationship
)

Parameters

invoiceXml  Stream
The stream with the invoice XML. It is read when the method is called.
profile  ZugferdProfile
The data profile of the invoice XML.
relationship  AttachmentRelationship
The relationship between the invoice XML and the document content.
Remarks
The document must be PDF/A-3 (PdfStandardSubset.Pdf_A_3b, Pdf_A_3u or Pdf_A_3a). The embedded file name is set by the standard ("factur-x.xml", or "xrechnung.xml" for the XRechnung profile). The relationship is usually AttachmentRelationship.Alternative (the XML is an alternative representation of the visible invoice) or Data.
See Also