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

PrintAsPDF – PB Docs 2019 – PowerBuilder Library

PrintAsPDF – PB Docs 2019

PrintAsPDF

PowerScript function

Description

Prints the current web page as a PDF file.

Applies to

WebBrowser controls

Syntax

Argument

Description

controlname

The name of the WebBrowser control.

PdfFile

The file path and file name of the PDF file to be
saved.

Return value

Integer.

  • 1 — Success.

  • -1 — General error.

  • -2 — Failed to get the browser instance.

  • -3 — Invalid file path or file name.

  • -4 — The folder where the PDF file will be saved does not
    exist.

Examples

This example prints the current web page as printaspdf.pdf and saves
it under the current directory:

See also

CancelDownload

EvaluateJavascriptAsync

EvaluateJavascriptSync

GetSource

GoBack

GoForward

Navigate

PauseDownload

Refresh

RegisterEvent

ResumeDownload

StopNavigation

UnregisterEvent

Zoom


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