Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

ImportRichTextEdit – PB Docs 2022 – PowerBuilder Library

ImportRichTextEdit – PB Docs 2022

ImportRichTextEdit

PowerScript function

Description

Imports the content of the specified RichTextEdit object to the PDF
document.

Applies to

PDFDocument object in Objects and Controls

Syntax

Argument

Description

richTextEdit

The name of the RichTextEdit object to be imported in the
PDF document.

targetIndex The page index at which to insert the RichTextEdit content.
If not specified, the content will be inserted to the end of the
document.

Return value

Long. Returns 1 if it succeeds and -1 if it fails. For more errors,
see the Error Codes.

Usage

Call the function to insert the content of the RichTextEdit object
in the PDF document. Note that it is only possible to insert RichTextEdit
in a PDF document that follows the “PDF_None!” standard.

The content of the RichTextEdit object will be converted to PDF
before importing, and it is possible the content has multiple pages. If
the “targetIndex” argument is not specified, the content will be inserted
to the end of the document. Otherwise, the content will be inserted to the
PDF document starting from the “targetIndex” in the document, and the
previous page at the “targetIndex” will go after the content of the
RichTextEdit.

Examples

The following example inserts the RichTextEdit content to the end of
the document:

The following example inserts the RichTextEdit content to the start
of the document:

See also

AddPage

Clone

GetPage

GetPageCount

GetTableOfContents

ImportDataWindow

ImportPDF

IndexOf

InsertPage

RemovePage

Save

SearchObject

SetTableOfContents


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