Aztec
Represents an Aztec barcode.
public class Aztec : Dim2Barcode, ICoordinate, ISerializable
Public Class Aztec
Inherits Dim2Barcode
Implements ICoordinate, ISerializable
Inheritance: ObjectPageElementTaggablePageElementDim2BarcodeAztec
Implements: ICoordinate, ISerializable
Licensing Info
This class is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Examples
The following example will place an Aztec barcode on the page.Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements.BarCoding
Module MyModule
Sub Main()
' Create a PDF Document
Dim MyDocument As Document = New Document
' Create a Page and add it to the document
Dim MyPage As Page = New Page
MyDocument.Pages.Add(MyPage)
' Create a barcode
Dim barCode As Aztec = New Aztec("Hello World", 50, 50, AztecSymbolSize.Full, 5)
' Add the barcode to the page
MyPage.Elements.Add(barCode)
' Save the PDF
MyDocument.Draw("C:\MyDocument.pdf")
End Sub
End Module
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements.BarCoding;
public class Example
{
public static void CreatePDF(string outputPath)
{
// Create a PDF Document
Document document = new Document();
// Create a Page and add it to the document
Page page = new Page();
document.Pages.Add(page);
// Create a barcode
Aztec barCode = new Aztec("Hello World", 50, 50, AztecSymbolSize.Full, 5);
// Add the barcode to the page
page.Elements.Add(barCode);
// Save the PDF
document.Draw(outputPath);
}
}
Remarks
With some of the .Net runtimes (example: .Net Core 2.0) the ECI values 20, 28, 29 and 30 will give the error "No data is available for encoding 'code page number'. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.". To resolve this error refer the user manual page Encoding Considerations.
Constructors
Aztec(Byte[], Single, Single, AztecSymbolSize) | Initializes a new instance of the Aztec class. |
Aztec(Byte[], Single, Single, AztecSymbolSize, Single) | Initializes a new instance of the Aztec class. |
Aztec(String, Single, Single, AztecSymbolSize) | Initializes a new instance of the Aztec class. |
Aztec(String, Single, Single, AztecSymbolSize, Single) | Initializes a new instance of the Aztec class. |
Properties
AllowStructuredAppend | Gets or Sets a boolean indicating whether to allow structured append of the overflow barcodes. |
Angle | Gets or sets the angle of the barcode. (Inherited from Dim2Barcode) |
Color | Gets or sets the Color for the barcode. (Inherited from Dim2Barcode) |
ErrorCorrection | Gets or Sets the error correction value. |
ID | Gets or sets the ID of the page element. (Inherited from PageElement) |
IgnoreMargins | Gets or sets ignore margin property. Setting false will consider the margin while placing the page element based on the RelativeTo property. (Inherited from PageElement) |
IsReaderInitializationSymbol | Gets or Sets a boolean representing if the barcode is a reader initialization symbol. |
MessageID | Gets or Sets the message id for the overflow barcodes. |
PixelsPerXDimension | Gets or Sets the pixels per XDimension (Inherited from Dim2Barcode) |
ProcessTilde | Gets or Sets a boolean indicating whether to process tilde symbol in the input. |
RelativeTo | Gets and sets placement of the page element on the page. (Inherited from PageElement) |
Size | Gets the barcode size, AztecSymbolSize . |
Tag | Gets or sets the tag of the taggable element. (Inherited from TaggablePageElement) |
TagOrder | Gets or sets the tag order of the taggable element. (Inherited from TaggablePageElement) |
Value | Gets the barocode value only if the string value is set. |
X | Gets or sets the X coordinate of the barcode. (Inherited from Dim2Barcode) |
XDimension | Gets or sets the xDimension of the barcode. (Inherited from Dim2Barcode) |
XDimensionMilliMeters | Gets or sets the XDimensionMilliMeters of the barcode. (Inherited from Dim2Barcode) |
XDimensionMils | Gets or sets the XDimensionMils of the barcode. (Inherited from Dim2Barcode) |
XDimensionsPerCentiMeter | Gets or sets the XDimensionsPerCentiMeter of the barcode. (Inherited from Dim2Barcode) |
XDimensionsPerInch | Gets or sets the XDimensionsPerInch of the barcode. (Inherited from Dim2Barcode) |
Y | Gets or sets the Y coordinate of the barcode. (Inherited from Dim2Barcode) |
Methods
Draw(PageWriter) | Draws the Aztec barcode to the given PageWriter object. |
Equals(Object) | Determines whether the specified Object is equal to the current Object . (Inherited from Object) |
GetHashCode() | Serves as a hash function for a particular type. (Inherited from Object) |
GetOverflowAztec() | Gets a new instance of the Aztec class. |
GetOverflowAztec(Single, Single) | Gets a new instance of the Aztec class. |
GetSymbolHeight() | Returns the Height required to display the aztec barcode. |
GetSymbolWidth() | Returns the Width required to display the aztec barcode. |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
ToString() | Returns a String that represents the current Object . (Inherited from Object) |