PDFAttachment object

PDFAttachment is one of the PDF Builder objects, and is derived from PDFModel. It gets or sets attachments for 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

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

PDFAttachment property

Datatype

Description

ClassDefinition

PowerObject

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


Events

PDFAttachment event

Occurs

Constructor

Immediately before the Open event occurs in the window.

Destructor

Immediately after the Close event occurs in the window.


Functions

PDFAttachment provides the following functions.

PDFAttachment function

Datatype returned

Description

AddFile

Long

Specifies a file to add as an attachment of the PDF document.

AddFolder

Long

Specifies a folder to add the files in it as attachments of the PDF document.

ClassName

String

Returns the name assigned to the object.

GetContextService

Integer

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

GetCount

Long

Gets the count of attachments of the PDF document.

GetParent

PowerObject

Returns a reference to the name of the parent object.

PostEvent

Boolean

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

RemoveAll

Long

Removes all the attachments of the PDF document.

TriggerEvent

Integer

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

TypeOf

Object

Returns the type of the control.