Skip to main content

ExtendedPageDimensions

Version: 12.0

cete.dynamicpdf.extendedpagedimensions

ExtendedPageDimensions​

Represents the extended dimensions of a page.

public class ExtendedPageDimensions : PageDimensions
Public Class ExtendedPageDimensions
Inherits PageDimensions

Inheritance: Object → AreaDimensions → PageDimensions → ExtendedPageDimensions

Licensing Info​

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

Constructors​

ExtendedPageDimensions(Dimensions, Dimensions)​

Initializes a new instance of the ExtendedPageDimensions class.

public ExtendedPageDimensions(Dimensions edge, Dimensions body)
Public Sub New (edge As Dimensions, body As Dimensions)

Parameters​

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

Body dimensions of the page 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:

ExtendedPageDimensions(Dimensions, Dimensions, Dimensions, Dimensions)​

Initializes a new instance of the ExtendedPageDimensions class.

public ExtendedPageDimensions(Dimensions edge, Dimensions bleedBox, Dimensions trimBox, Dimensions body)
Public Sub New (edge As Dimensions, bleedBox As Dimensions, trimBox As Dimensions, body As Dimensions)

Parameters​

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

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

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

Body dimensions of the page 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:

ExtendedPageDimensions(Dimensions, Dimensions, Dimensions, Dimensions, Dimensions)​

Initializes a new instance of the ExtendedPageDimensions class.

public ExtendedPageDimensions(Dimensions mediaBox, Dimensions cropBox, Dimensions bleedBox, Dimensions trimBox, Dimensions artBox)
Public Sub New (mediaBox As Dimensions, cropBox As Dimensions, bleedBox As Dimensions, trimBox As Dimensions, artBox As Dimensions)

Parameters​

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

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

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

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

Art box dimensions of the page 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:

ExtendedPageDimensions(Dimensions, Dimensions, Dimensions, Dimensions, Dimensions, Dimensions)​

Initializes a new instance of the ExtendedPageDimensions class.

public ExtendedPageDimensions(Dimensions mediaBox, Dimensions cropBox, Dimensions bleedBox, Dimensions trimBox, Dimensions artBox, Dimensions body)
Public Sub New (mediaBox As Dimensions, cropBox As Dimensions, bleedBox As Dimensions, trimBox As Dimensions, artBox As Dimensions, body As Dimensions)

Parameters​

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

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

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

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

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

Body dimensions of the page 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). This is the same as the edge of the page.

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). (Inherited from AreaDimensions)

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). (Inherited from AreaDimensions)

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. (Inherited from AreaDimensions)

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. (Inherited from AreaDimensions)

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.

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 PDF 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