cete.dynamicpdf.autopagedimensions
AutoPageDimensions
- Namespace: ceTe.DynamicPDF
- Assemblies: DynamicPDF.CoreSuite.dll
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:
- Any active DynamicPDF Subscription (Essentials, Professional, Professional Plus or Ultimate).
- A DynamicPDF Core Suite for .NET v12.X Essentials license.
- It can also be used for free with a public link back to www.dynamicpdf.com and with the DynamicPDF Essentials message displaying on the bottom of each page.
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
- size: PageSize
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:
- 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.
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
- size: PageSize
Page size of the page dimensions in points (1/72 inches).
- orientation: PageOrientation
Licensing Info
This constructor 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.
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
- size: PageSize
Page size of the page dimensions in points (1/72 inches).
- orientation: PageOrientation
Orientation of the page dimensions in points (1/72 inches).
- margins: Single
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:
- 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.
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
- size: PageSize
Page size of the page dimensions in points (1/72 inches).
- margins: Single
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:
- 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.
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: Single
Width of the page dimensions in points (1/72 inches).
- height: Single
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:
- 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.
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: Single
Width of the page dimensions in points (1/72 inches).
- height: Single
Height of the page dimensions in points (1/72 inches).
- margins: Single
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:
- 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.
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
Licensing Info
This property 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.
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
Licensing Info
This property 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.
Body
Represents the dimensions of the areas body. (Inherited from AreaDimensions)
public Dimensions Body { get; }
Public Property Body As Dimensions
Property Value
Licensing Info
This property 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.
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
Licensing Info
This property 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.
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
Licensing Info
This property 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.
Edge
Represents the dimensions of the areas edge. (Inherited from AreaDimensions)
public Dimensions Edge { get; }
Public Property Edge As Dimensions
Property Value
Licensing Info
This property 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.
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
Licensing Info
This property 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.
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
Licensing Info
This property 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.
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
Licensing Info
This property 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.
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
Licensing Info
This property 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.
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
Licensing Info
This property 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.
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
Licensing Info
This property 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.
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
Licensing Info
This property 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.
Methods
Draw(DocumentWriter)
Draws the page dimensions to the given DocumentWriter object.
public void Draw(DocumentWriter writer)
Sub Draw(writer As DocumentWriter)
Parameters
- writer: DocumentWriter
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:
- 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.
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
- obj: Object
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:
- 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.
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:
- 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.
GetPdfX(Single)
Gets the translated X coordinate.
public float GetPdfX(float x)
Function GetPdfX(x As Single) As Single
Parameters
- x: Single
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:
- 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.
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: Single
X coordinate to translate.
- relativeTo: RelativeTo
Placement of the page element on the page
- ignoreMargins: Boolean
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:
- 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.
GetPdfY(Single)
Gets the translated Y coordinate.
public float GetPdfY(float y)
Function GetPdfY(y As Single) As Single
Parameters
- y: Single
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:
- 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.
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: Single
Y coordinate to translate.
- relativeTo: RelativeTo
Placement of the page element on the page
- ignoreMargins: Boolean
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:
- 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.
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:
- 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.
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: Single
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:
- 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.
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
- leftAndRight: Single
Left and right margin value in points (1/72 inches) to set.
- topAndBottom: Single
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:
- 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.
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
- leftMargin: Single
Left margin value in points (1/72 inches) to set.
- topMargin: Single
Top margin value in points (1/72 inches) to set.
- rightMargin: Single
Right margin value in points (1/72 inches) to set.
- bottomMargin: Single
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:
- 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.
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:
- 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.