Skip to main content

ImportedPageArea

Version: 7.0

cete.dynamicpdf.merger.importedpagearea

ImportedPageArea​

Represents an imported pages area.

public class ImportedPageArea : PageElement, IArea, ICoordinate, ISerializable
Public Class ImportedPageArea
Inherits PageElement
Implements IArea, ICoordinate, ISerializable

Inheritance: Object → PageElement → ImportedPageArea

Implements: IArea, ICoordinate, ISerializable

Licensing​

This class is a DynamicPDF Merger Professional Edition feature. One of the following licenses is required for non-evaluation usage:

  • DynamicPDF Merger for .NET Professional Edition
  • DynamicPDF Merger for .NET Enterprise Edition
  • DynamicPDF Core Suite for .NET Professional Edition
  • DynamicPDF Core Suite for .NET Enterprise Edition

Constructors​

ImportedPageArea(ImportedPageContents, Single, Single)​

Initializes a new instance of the ImportedPageArea class.

public ImportedPageArea(ImportedPageContents contents, float x, float y)
Public Sub New (contents As ImportedPageContents, x As Single, y As Single)

Parameters​

ImportedPageContents object containing the page's contents.

X coordinate of the imported page area.

Y coordinate of the imported page area.

ImportedPageArea(ImportedPageContents, Single, Single, Single)​

Initializes a new instance of the ImportedPageArea class.

public ImportedPageArea(ImportedPageContents contents, float x, float y, float scale)
Public Sub New (contents As ImportedPageContents, x As Single, y As Single, scale As Single)

Parameters​

ImportedPageContents object containing the page's contents.

X coordinate of the imported page area.

Y coordinate of the imported page area.

The scale to use when rendering the imported page area.

ImportedPageArea(PdfPage, Single, Single)​

Initializes a new instance of the ImportedPageArea class.

public ImportedPageArea(PdfPage pdfPage, float x, float y)
Public Sub New (pdfPage As PdfPage, x As Single, y As Single)

Parameters​

PdfPage object containing the page.

X coordinate of the imported page area.

Y coordinate of the imported page area.

ImportedPageArea(PdfPage, Single, Single, Single)​

Initializes a new instance of the ImportedPageArea class.

public ImportedPageArea(PdfPage pdfPage, float x, float y, float scale)
Public Sub New (pdfPage As PdfPage, x As Single, y As Single, scale As Single)

Parameters​

PdfPage object containing the page.

X coordinate of the imported page area.

Y coordinate of the imported page area.

The scale to use when rendering the imported page area.

ImportedPageArea(String, Int32, Single, Single)​

Initializes a new instance of the ImportedPageArea class.

public ImportedPageArea(string filePath, int pageNumber, float x, float y)
Public Sub New (filePath As String, pageNumber As Integer, x As Single, y As Single)

Parameters​

Physical file path of the PDF doument to import.

Page number to import.

X coordinate of the imported page area.

Y coordinate of the imported page area.

ImportedPageArea(String, Int32, Single, Single, Single)​

Initializes a new instance of the ImportedPageArea class.

public ImportedPageArea(string filePath, int pageNumber, float x, float y, float scale)
Public Sub New (filePath As String, pageNumber As Integer, x As Single, y As Single, scale As Single)

Parameters​

Physical file path of the PDF document to import.

Page number to import.

X coordinate of the imported page area.

Y coordinate of the imported page area.

The scale to use when rendering the imported page area.

Properties​

Angle​

Gets or sets the angle of the imported page area in degrees.

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

Property Value​

Single

Contents​

Get the imported page area's ImportedPageContents object.

public ImportedPageContents Contents { get; }
Public Property Contents As ImportedPageContents

Property Value​

ImportedPageContents

Height​

Gets or sets the height of the imported page area.

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

Property Value​

Single

ID​

Gets or sets the ID of the page element. (Inherited from PageElement)

public string ID { get; set; }
Public Property ID As String

Property Value​

String

ScaleX​

Gets or sets the horizontal scale of the imported page area.

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

Property Value​

Single

ScaleY​

Gets or sets the vertical scale of the imported page area.

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

Property Value​

Single

Width​

Gets or sets the width of the imported page area.

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

Property Value​

Single

X​

Gets or sets the X coordinate of the page element.

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

Property Value​

Single

Y​

Gets or sets the Y coordinate of the imported page area.

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

Property Value​

Single

Methods​

Draw(PageWriter)​

Draws the image to the given PageWriter object.

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

Parameters​

PageWriter object to receive the image's output.

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.

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 .

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.

SetBounds(Single, Single)​

Scales the image to fit in the given box keeping the X and Y scale equal.

public void SetBounds(float maximumWidth, float maximumHeight)
Sub SetBounds(maximumWidth As Single, maximumHeight As Single)

Parameters​

The maximum width.

The maximum height.

SetSize(Single, Single)​

Scales the image to fit the exact width and height given.

public void SetSize(float width, float height)
Sub SetSize(width As Single, height As Single)

Parameters​

Width of image.

Height of image.

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 .

See Also​

ceTe.DynamicPDF.Merger