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()
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.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)
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.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.
See Also
AztecceTe.DynamicPDF.PageElements.BarCoding