PDFPage object

PDFPage is one of the PDF Builder objects, and is derived from PDFModel. Each PDFPage object refers to a page in the PDF document. You can use PDFPage to manage the content (text, image, etc.) in a PDF document.

To view the full hierarchy of the PDF Builder objects, find "pdfobject" in the Browser, right-click the object, and then select "Show Hierarchy” in the pop-up menu.

Properties

PDFPage provides the following property. In addition, it inherits the properties from its parent, PDFModel.

PDFPage property

Datatype

Description

ClassDefinition

PowerObject

An object of type PowerObject containing information about the class definition of the object or control.

BottomMargin

Double

Gets or sets the size of the bottom margin between the PDF page and the printed page.

LeftMargin

Double

Gets or sets the size of the left margin between the PDF page and the printed page.

RightMargin

Double

Gets or sets the size of the right margin between the PDF page and the printed page.

TopMargin

Double

Gets or sets the size of the top margin between the PDF page and the printed page.


Events

PDFPage event

Occurs

Constructor

Immediately before the Open event occurs in the window.

Destructor

Immediately after the Close event occurs in the window.


Functions

PDFPage provides the following functions.

PDFPage function

Datatype returned

Description

AddContent

Long

Adds content to the page.

ClassName

String

Returns the name assigned to the control.

Clone

PDFPage

Clones the current PDFpage object.

GetBottomMargin

Double

Gets the bottom margin between the PDF page and the bottom border of the page.

GetContent

PDFContent

Gets the specified content.

GetContentCount

Long

Gets the number of content objects in the current PDF page.

GetContextService

Integer

Creates a reference to a context-specific instance of the specified service.

GetHeight

Double

Gets the height of the current PDF page.

GetLeftMargin

Double

Gets the margin between the PDF page and the left border of the page.

GetParent

PowerObject

Returns a reference to the name of the parent object.

GetRightMargin

Double

Gets the margin between the PDF page and the right border of the page.

GetTopMargin

Double

Gets the top margin between the PDF page and the top border of the page.

GetWidth

Double

Gets the width of the current PDF page.

ImportContent

Long

Imports the content from the specified PDF page to the current PDF page.

IndexOf

Long

Gets the index of the specified object in the current PDF page.

PostEvent

Boolean

Adds an event to the end of the message queue for the control.

RemoveContent

Long

Removes a specified object from the current PDF page.

SetBottomMargin

None

Sets the margin between the PDF page and the bottom border of the page.

SetHeight

None

Sets the height for the current PDF page.

SetLeftMargin

None

Sets the margin between the PDF page and the left border of the page.

SetPageSize

None

Sets the page size for the current PDF page.

SetRightMargin

None

Sets the margin between the PDF page and the right border of the page.

SetTopMargin

None

Sets the margin between the PDF page and the top border of the page.

SetWidth

None

Sets the width for the current PDF page.

TriggerEvent

Integer

Triggers a specified event in the control and executes the script for the event.

TypeOf

Object

Returns the type of the control.