Aztec.GetOverflowAztec
Overloads
GetOverflowAztec() | Gets a new instance of the Aztec class. |
GetOverflowAztec(Single, Single) | Gets a new instance of the Aztec class. |
GetOverflowAztec()
Gets a new instance of the Aztec class.
public Aztec GetOverflowAztec()
Function GetOverflowAztec() As Aztec
Returns
Licensing Info
This method 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 shows how to use the GetOverflowAztec method to allow aztec barcodes to flow onto new pages as needed.Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements.BarCoding
Module MyModule
Sub Main()
' Create a PDF Document
Dim document As Document = New Document()
' Create an Aztec barcode
Dim aztec As Aztec = New Aztec("Lorem ipsum dolor sit amet, consectetur adipiscing elit.", 50, 50, AztecSymbolSize.R23xC23, 5)
aztec.AllowStructuredAppend = True
aztec.MessageID = "ID"
Do
' Create a Page
Dim page As Page = New Page()
' Add the Aztec barcode to the page
Page.Elements.Add(aztec)
' Add page to the document
document.Pages.Add(Page)
aztec = aztec.GetOverflowAztec()
Loop While Not aztec Is Nothing
' Save the PDF
document.Draw(outputPath)
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 an Aztec barcode
Aztec aztec = new Aztec("Lorem ipsum dolor sit amet, consectetur adipiscing elit.", 50, 50, AztecSymbolSize.R23xC23, 5);
aztec.AllowStructuredAppend = true;
aztec.MessageID = "ID";
do
{
// Create a Page
Page page = new Page();
// Add the Aztec barcode to the page
page.Elements.Add(aztec);
// Add page to the document
document.Pages.Add(page);
aztec = aztec.GetOverflowAztec();
} while (aztec != null);
// Save the PDF
document.Draw(outputPath);
}
}
Remarks
This method returns a new Aztec object that contains the remaining data that did not fit.
GetOverflowAztec(Single, Single)
Gets a new instance of the Aztec class.
public Aztec GetOverflowAztec(float x, float y)
Function GetOverflowAztec(x As Single, y As Single) As Aztec
Parameters
The X coordinate of the aztec barcode.
The Y coordinate of the aztec barcode.
Returns
Licensing Info
This method 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 shows how to use the GetOverflowAztec method with x and y co ordinates to allow aztec barcodes to flow onto new pages as needed.Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements.BarCoding
Module MyModule
Sub Main()
' Create a PDF Document
Dim document As Document = New Document()
Dim x As Single = 10.0F
Dim y As Single = 10.0F
' Create an Aztec barcode
Dim aztec As Aztec = New Aztec("Lorem ipsum dolor sit amet, consectetur adipiscing elit.", x, y, AztecSymbolSize.R23xC23, 5)
aztec.AllowStructuredAppend = True
aztec.MessageID = "ID"
Do
' Create a Page
Dim page As Page = New Page
' Add the Aztec barcode to the page
page.Elements.Add(aztec)
' Add page to the document
document.Pages.Add(page)
aztec = aztec.GetOverflowAztec(x, y + 150)
Loop While Not aztec Is Nothing
' Save the PDF
document.Draw(outputPath)
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();
float x = 10.0f;
float y = 10.0f; ;
// Create an Aztec barcode
Aztec aztec = new Aztec("Lorem ipsum dolor sit amet, consectetur adipiscing elit.", x, y, AztecSymbolSize.R23xC23, 5);
aztec.AllowStructuredAppend = true;
aztec.MessageID = "ID";
do
{
// Create a Page
Page page = new Page();
// Add the Aztec barcode to the page
page.Elements.Add(aztec);
// Add page to the document
document.Pages.Add(page);
aztec = aztec.GetOverflowAztec(x, y + 150);
} while (aztec != null);
// Save the PDF
document.Draw(outputPath);
}
}
Remarks
This method returns a new Aztec object that contains the remaining data that did not fit.