Class ZugferdVersion
Specifies the ZUGFeRD versions supported.
Inheritance
System.Object
ZugferdVersion
Namespace: Syncfusion.Pdf
Assembly: Syncfusion.Pdf.UWP.dll
Syntax
public sealed class ZugferdVersion : Enum
Remarks
It is supported only in PdfConformanceLevel Pdf_A3B conformance
Examples
//Creates a new PDF document.
PdfDocument doc = new PdfDocument(PdfConformanceLevel.Pdf_A3B);
//Add a page.
PdfPage page = doc.Pages.Add();
//Set the ZugferdProfile.
doc.ZugferdVersion = ZugferdVersion.ZugferdVersion1_0;
//Set the ZugferdProfile.
doc.ZugferdConformanceLevel = ZugferdConformanceLevel.Basic;
//Create the PdfTrueTypeFont
PdfFont font = new PdfTrueTypeFont(new Font("arial", 12f, FontStyle.Regular), true);
page.Graphics.DrawString("Hello World", font, PdfBrushes.Black, PointF.Empty);
//Creates an attachment
PdfAttachment attachment = new PdfAttachment("ZUGFeRD-invoice.xml");
//Set the file relationship
attachment.Relationship = PdfAttachmentRelationship.Alternative;
attachment.ModificationDate = DateTime.Now;
attachment.Description = "About Syncfusion";
attachment.MimeType = "application/xml";
//add attachment to the doucment
doc.Attachments.Add(attachment);
doc.Save("output.pdf");
'Creates a new PDF document.
Dim doc As New PdfDocument(PdfConformanceLevel.Pdf_A3B)
'Add a page.
Dim page As PdfPage = doc.Pages.Add()
'Set the ZugferdProfile.
doc.ZugferdVersion = ZugferdVersion.ZugferdVersion1_0
'Set the ZugferdProfile.
doc.ZugferdConformanceLevel = ZugferdConformanceLevel.Basic
'Create the PdfTrueTypeFont
Dim font As PdfFont = New PdfTrueTypeFont(New Font("arial", 12F, FontStyle.Regular), True)
page.Graphics.DrawString("Hello World", font, PdfBrushes.Black, PointF.Empty)
'Creates an attachment
Dim attachment As New PdfAttachment("ZUGFeRD-invoice.xml")
'Set the file relationship
attachment.Relationship = PdfAttachmentRelationship.Alternative
attachment.ModificationDate = DateTime.Now
attachment.Description = "About Syncfusion"
attachment.MimeType = "application/xml"
'add attachment to the doucment
doc.Attachments.Add(attachment)
doc.Save("output.pdf")
Fields
ZugferdVersion1_0
Represent the ZUGFeRD version 1.0
Declaration
public const ZugferdVersion ZugferdVersion1_0
Field Value
Type |
---|
ZugferdVersion |
ZugferdVersion2_0
Represent the ZUGFeRD version 2.0
Declaration
public const ZugferdVersion ZugferdVersion2_0
Field Value
Type |
---|
ZugferdVersion |
ZugferdVersion2_1
Represent the ZUGFeRD version 2.1
Declaration
public const ZugferdVersion ZugferdVersion2_1
Field Value
Type |
---|
ZugferdVersion |