GetContent – PB Docs 2022

GetContent

PowerScript function

Description

Gets a PDFContent object from a page (a PDFPage object).

Applies to

PDFPage object in Objects and Controls

Syntax

Argument

Description

name

The name of the PDFContent object in Objects and Controls.

index The index of the PDFContent object in Objects and Controls.

Return value

PDFContent object in Objects and Controls. Returns the
object if it succeeds, or null if the object cannot be found.

Usage

Call the function to get a PDFContent object in Objects and Controls from the PDFPage
object. You may either specify the object name or the index of the object
in the page. The PDFContent object may be an object that is derived from
it (including PDFContent object in Objects and Controls, PDFInvisibleContent object in Objects and Controls,
PDFVisibleContent object in Objects and Controls,
PDFImage object in Objects and Controls, PDFImportContent object in Objects and Controls,
PDFMultilineText object in Objects and Controls,
PDFRichText object in Objects and Controls, PDFSharedText object in Objects and Controls, and PDFText
object
in Objects and Controls).

The index of the PDFContent objects in a PDFPage is determined by
the orders they are added into the PDFPage. The first one added has the
index 1, the second has the index 2, and so on. If one object is removed,
the indexes for the remaining objects will be reordered.

Examples

The following example shows how to get the PDFContent object with
the specified name or index:

See also

AddContent

Clone

GetContentCount

GetHeight

GetWidth

ImportContent

IndexOf

RemoveContent

SetHeight

SetPageSize

SetWidth


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x