PDFText object

PDFText is one of the PDF Builder objects, and is derived from PDFVisibleContent. Each PDFText object is a single-line text block in the PDF object. The maximum string length allowed in its content is 32763. If the content is larger than that, use PDFMultipleText instead.

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

PDFText provides the following properties. In addition, it inherits the properties from its parent, PDFVisibleContent.

PDFText property

Datatype

Description

BackColor

PDFColor

Gets or sets the back color of the object.

ClassDefinition

PowerObject

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

Content

String

Gets or sets the content of the object.

Font

PDFFont

Gets or sets the text font of the object.

TextColor

PDFColor

Gets or sets the text color of the object.


Events

PDFText event

Occurs

Constructor

Immediately before the Open event occurs in the window.

Destructor

Immediately after the Close event occurs in the window.


Functions

PDFText provides the following functions. In addition, it inherits the functions from its parent, PDFVisibleContent.

PDFText function

Datatype returned

Description

AddFallbackFont

None

Adds a fallback font.

ClassName

String

Returns the name assigned to the control.

Clone

PDFText

Clones the current object.

GetContextService

Integer

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

GetFallbackFont

String

Gets the name of the fallback font.

GetFallbackFontCount

Long

Gets the count of the fallback fonts.

GetLinkAddress

String

Gets the URL that the current object links to.

GetParent

PowerObject

Returns a reference to the name of the parent object.

LinkToObject

Long

Links the current object to the specified object.

PostEvent

Boolean

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

RemoveAllFallbackFont

Long

Removes all fallback fonts.

RemoveFallbackFont

Long

Removes a fallback font.

SetLinkAddress

Long

Sets the URL that the current object links to.

TriggerEvent

Integer

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

TypeOf

Object

Returns the type of the control.