MacroPdf417.GetOverflowMacroPdf417

Overloads

GetOverflowMacroPdf417()Gets a new instance of the MacroPdf417 class.
GetOverflowMacroPdf417(Single, Single)Gets a new instance of the MacroPdf417 class.

GetOverflowMacroPdf417()

Gets a new instance of the MacroPdf417 class.

public MacroPdf417 GetOverflowMacroPdf417()
Function GetOverflowMacroPdf417() As MacroPdf417

Returns

MacroPdf417

Returns a MacroPdf417 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 you how to use the GetOverflowMacroPdf417 method to allow MacroPdf417 barcodes to flow onto new pages as needed.
using System;
using System.IO;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements.BarCoding;

public class Example
{
    public static void CreatePDF(string inputPathTextdata, string outputPath)
	{
		// Create a PDF Document
		Document document = new Document();

		byte[] bytArry = null;
		try
		{
	   		FileStream fs = new FileStream( inputPathTextdata, FileMode.Open );
	    	bytArry = new byte[fs.Length];
	    	fs.Read( bytArry, 0, (int)fs.Length );
			fs.Close();
		}
		catch( Exception e )
		{
			Console.WriteLine( "EXCEPTION  "+e.Message );
		}

		float x = 10.0f;
		float y = 10.0f;;

		// Create a MacroPdf417 barcode
		MacroPdf417 macroPdf417 = new MacroPdf417( bytArry, x, y, 14, 0.5f );

		macroPdf417.FileName = "Textdata.txt";
		macroPdf417.Sender = "Your Name";
		macroPdf417.Address = "Your Address";
		macroPdf417.IncludeFileSize = true;
		macroPdf417.IncludeCheckSum = true;
		macroPdf417.IncludeTimeStamp = true;
		macroPdf417.SetFileID(22222222);

		do
		{
			// Create a Page
		    Page page = new Page();

			// Add the MacroPdf417 barcode to the page
			page.Elements.Add( macroPdf417 );

			// Add it to the document
		    document.Pages.Add( page );

			macroPdf417 = macroPdf417.GetOverflowMacroPdf417();
		} while( macroPdf417 != null );

		// Save the PDF
		document.Draw(outputPath);
	}
}

Remarks

This method returns a new MacroPdf417 object that contains the remaining data that did not fit.

GetOverflowMacroPdf417(Single, Single)

Gets a new instance of the MacroPdf417 class.

public MacroPdf417 GetOverflowMacroPdf417(float x, float y)
Function GetOverflowMacroPdf417(x As Single, y As Single) As MacroPdf417

Parameters

x
Single

The X coordinate of the macro PDF417 barcode.

y
Single

The Y coordinate of the macro PDF417 barcode.

Returns

MacroPdf417

Returns a MacroPdf417 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 you how to use the GetOverflowMacroPdf417 method with x and y co ordinates to allow MacroPdf417 barcodes to flow onto new pages as needed.
using System;
using System.IO;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements.BarCoding;

public class Example
{
    public static void CreatePDF(string inputPathTextdata, 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 );

		byte[] bytArry = null;
		try
		{
	   		FileStream fs = new FileStream( inputPathTextdata, FileMode.Open );
	    	bytArry = new byte[fs.Length];
	    	fs.Read( bytArry, 0, (int)fs.Length );
			fs.Close();
		}
		catch( Exception e )
		{
			Console.WriteLine( "EXCEPTION  "+e.Message );
		}

		float x = 10.0f;
		float y = 10.0f;

		// Create a MacroPdf417 barcode
		MacroPdf417 macroPdf417 = new MacroPdf417( bytArry, x, y, 14, 0.5f );

		macroPdf417.FileName = "Textdata.txt";
		macroPdf417.Sender = "Your Name";
		macroPdf417.Address = "Your Address";
		macroPdf417.IncludeFileSize = true;
		macroPdf417.IncludeCheckSum = true;
		macroPdf417.IncludeTimeStamp = true;
		macroPdf417.SetFileID(22222222);

		// Add the MacroPdf417 barcode to the page
		page.Elements.Add( macroPdf417 );

		y += macroPdf417.GetSymbolHeight() + 20.0f;

		MacroPdf417 objMacroPdf417 = null;
		do
		{
			objMacroPdf417 = macroPdf417.GetOverflowMacroPdf417( x, y );
			if( objMacroPdf417 != null )
			{
				page.Elements.Add( objMacroPdf417 );
				y += objMacroPdf417.GetSymbolHeight() + 20.0f;
			}
		} while( objMacroPdf417 != null );

		// Save the PDF
		document.Draw(outputPath);
	}
}

Remarks

This method returns a new MacroPdf417 object that contains the remaining data that did not fit.

See Also

MacroPdf417
ceTe.DynamicPDF.PageElements.BarCoding

In this topic