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

Aztec

Returns an Aztec object.

Licensing Info

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

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

x
Single

The X coordinate of the aztec barcode.

y
Single

The Y coordinate of the aztec barcode.

Returns

Aztec

Returns an Aztec object.

Licensing Info

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

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

Aztec
ceTe.DynamicPDF.PageElements.BarCoding