Skip to main content

AutoPageDimensions

Version: 12.0

cete.dynamicpdf.autopagedimensions

AutoPageDimensions​

Represents the dimensions of a page.

public class AutoPageDimensions : PageDimensions
Public Class AutoPageDimensions
Inherits PageDimensions

Inheritance: Object → AreaDimensions → PageDimensions → AutoPageDimensions

Licensing Info​

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

Remarks​

This class can be used to specify the dimensions and other formatting details of a page. It can then be passed into a Page constructor.

Constructors​

AutoPageDimensions(PageSize)​

Initializes a new instance of the AutoPageDimensions class.

public AutoPageDimensions(PageSize size)
Public Sub New (size As PageSize)

Parameters​

Page size of the page dimensions in points (1/72 inches).

Licensing Info​

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

AutoPageDimensions(PageSize, PageOrientation)​

Initializes a new instance of the AutoPageDimensions class.

public AutoPageDimensions(PageSize size, PageOrientation orientation)
Public Sub New (size As PageSize, orientation As PageOrientation)

Parameters​

Page size of the page dimensions in points (1/72 inches).

Licensing Info​

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

AutoPageDimensions(PageSize, PageOrientation, Single)​

Initializes a new instance of the AutoPageDimensions class.

public AutoPageDimensions(PageSize size, PageOrientation orientation, float margins)
Public Sub New (size As PageSize, orientation As PageOrientation, margins As Single)

Parameters​

Page size of the page dimensions in points (1/72 inches).

Orientation of the page dimensions in points (1/72 inches).

Margins of the page dimensions in points (1/72 inches).

Licensing Info​

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

AutoPageDimensions(PageSize, Single)​

Initializes a new instance of the AutoPageDimensions class.

public AutoPageDimensions(PageSize size, float margins)
Public Sub New (size As PageSize, margins As Single)

Parameters​

Page size of the page dimensions in points (1/72 inches).

Margins of the page dimensions in points (1/72 inches).

Licensing Info​

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

AutoPageDimensions(Single, Single)​

Initializes a new instance of the AutoPageDimensions class.

public AutoPageDimensions(float width, float height)
Public Sub New (width As Single, height As Single)

Parameters​

Width of the page dimensions in points (1/72 inches).

Height of the page dimensions in points (1/72 inches).

Licensing Info​

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

AutoPageDimensions(Single, Single, Single)​

Initializes a new instance of the AutoPageDimensions class.

public AutoPageDimensions(float width, float height, float margins)
Public Sub New (width As Single, height As Single, margins As Single)

Parameters​

Width of the page dimensions in points (1/72 inches).

Height of the page dimensions in points (1/72 inches).

Margins of the page dimensions in points (1/72 inches).

Licensing Info​

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

Properties​

ArtBox​

Gets the art box dimensions of the page in points (1/72 inches).

public InheritableDimensions ArtBox { get; }
Public Property ArtBox As InheritableDimensions

Property Value​

InheritableDimensions

Licensing Info​

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

BleedBox​

Gets the bleed box dimensions of the page in points (1/72 inches).

public InheritableDimensions BleedBox { get; }
Public Property BleedBox As InheritableDimensions

Property Value​

InheritableDimensions

Licensing Info​

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

Body​

Represents the dimensions of the areas body. (Inherited from AreaDimensions)

public Dimensions Body { get; }
Public Property Body As Dimensions

Property Value​

Dimensions

Licensing Info​

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

BottomMargin​

Gets or sets the bottom margin of the page dimensions in points (1/72 inches). (Inherited from AreaDimensions)

public float BottomMargin { get; set; }
Public Property BottomMargin As Single

Property Value​

Single

Licensing Info​

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

CropBox​

Gets the crop box dimensions of the page in points (1/72 inches).

public InheritableDimensions CropBox { get; }
Public Property CropBox As InheritableDimensions

Property Value​

InheritableDimensions

Licensing Info​

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

Edge​

Represents the dimensions of the areas edge. (Inherited from AreaDimensions)

public Dimensions Edge { get; }
Public Property Edge As Dimensions

Property Value​

Dimensions

Licensing Info​

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

Height​

Gets or sets the height of the page dimensions in points (1/72 inches).

public float Height { get; set; }
Public Property Height As Single

Property Value​

Single

Licensing Info​

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

LeftMargin​

Gets or sets the left margin of the page dimensions in points (1/72 inches). (Inherited from AreaDimensions)

public float LeftMargin { get; set; }
Public Property LeftMargin As Single

Property Value​

Single

Licensing Info​

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

MediaBox​

Gets the media box dimensions of the page in points (1/72 inches).

public Dimensions MediaBox { get; }
Public Property MediaBox As Dimensions

Property Value​

Dimensions

Licensing Info​

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

RightMargin​

Gets or sets the right margin of the page dimensions in points (1/72 inches). (Inherited from AreaDimensions)

public float RightMargin { get; set; }
Public Property RightMargin As Single

Property Value​

Single

Licensing Info​

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

TopMargin​

Gets or sets the top margin of the page dimensions in points (1/72 inches). (Inherited from AreaDimensions)

public float TopMargin { get; set; }
Public Property TopMargin As Single

Property Value​

Single

Licensing Info​

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

TrimBox​

Gets the trim box dimensions of the page in points (1/72 inches).

public InheritableDimensions TrimBox { get; }
Public Property TrimBox As InheritableDimensions

Property Value​

InheritableDimensions

Licensing Info​

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

Width​

Gets or sets the width of the page dimensions in points (1/72 inches).

public float Width { get; set; }
Public Property Width As Single

Property Value​

Single

Licensing Info​

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

Methods​

Draw(DocumentWriter)​

Draws the page dimensions to the given DocumentWriter object.

public void Draw(DocumentWriter writer)
Sub Draw(writer As DocumentWriter)

Parameters​

DocumentWriter to receive the page dimensions output.

Licensing Info​

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

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

Licensing Info​

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

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

Licensing Info​

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

GetPdfX(Single)​

Gets the translated X coordinate.

public float GetPdfX(float x)
Function GetPdfX(x As Single) As Single

Parameters​

X coordinate to translate.

Returns​

A translated X coordinate.

Licensing Info​

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

GetPdfX(Single, RelativeTo, Boolean)​

Gets the translated X coordinate.

public float GetPdfX(float x, RelativeTo relativeTo, bool ignoreMargins)
Function GetPdfX(x As Single, relativeTo As RelativeTo, ignoreMargins As Boolean) As Single

Parameters​

X coordinate to translate.

Placement of the page element on the page

Setting false will consider the margin while placing the page element based on the RelativeTo property.

Returns​

A translated X coordinate.

Licensing Info​

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

GetPdfY(Single)​

Gets the translated Y coordinate.

public float GetPdfY(float y)
Function GetPdfY(y As Single) As Single

Parameters​

Y coordinate to translate.

Returns​

A translated Y coordinate.

Licensing Info​

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

GetPdfY(Single, RelativeTo, Boolean)​

Gets the translated Y coordinate.

public float GetPdfY(float y, RelativeTo relativeTo, bool ignoreMargins)
Function GetPdfY(y As Single, relativeTo As RelativeTo, ignoreMargins As Boolean) As Single

Parameters​

Y coordinate to translate.

Placement of the page element on the page

Setting false will consider the margin while placing the page element based on the RelativeTo property.

Returns​

A translated Y coordinate.

Licensing Info​

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

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

Licensing Info​

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

SetMargins(Single)​

Sets all of the margins for the page dimensions in points (1/72 inches). (Inherited from PageDimensions)

public void SetMargins(float margins)
Sub SetMargins(margins As Single)

Parameters​

Margins value in points (1/72 inches) to set.

Licensing Info​

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

SetMargins(Single, Single)​

Sets all of the margins of the page in points (1/72 inches). (Inherited from PageDimensions)

public void SetMargins(float leftAndRight, float topAndBottom)
Sub SetMargins(leftAndRight As Single, topAndBottom As Single)

Parameters​

Left and right margin value in points (1/72 inches) to set.

Top and bottom margin value in points (1/72 inches) to set.

Licensing Info​

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

SetMargins(Single, Single, Single, Single)​

Sets all of the margins of the page in points (1/72 inches). (Inherited from PageDimensions)

public void SetMargins(float leftMargin, float topMargin, float rightMargin, float bottomMargin)
Sub SetMargins(leftMargin As Single, topMargin As Single, rightMargin As Single, bottomMargin As Single)

Parameters​

Left margin value in points (1/72 inches) to set.

Top margin value in points (1/72 inches) to set.

Right margin value in points (1/72 inches) to set.

Bottom margin value in points (1/72 inches) to set.

Licensing Info​

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

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

Licensing Info​

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

See Also​

ceTe.DynamicPDF