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

ExtractAttachmentFile – PB Docs 2022 – PowerBuilder Library

ExtractAttachmentFile – PB Docs 2022

ExtractAttachmentFile

PowerScript function

Description

Extract an attachment from the PDF document.

Applies to

PDFDocExtractor object in Objects and Controls

Syntax

Argument

Description

attachmentFile

The file name of the attachment in the PDF
document.

destFilePath

The path and file name to save the attachment as.

Return value

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

Examples

This example extracts the attachment file “testimage.png” of
“extract.pdf” and saves it as “D:file3 estimage1.png”. The folder
“D:file3” will be auto created if it does not exist yet:

See also

Close

ExtractAllAttachments

GetAttachmentList

GetPageCount

GetPageSize

Open


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