Attachment

Applies to

PDFDocument

Description

The Attachment property sets or gets the attachment of the PDF document.

Datatype

PDFAttachment.

Usage

In scripts

The example creates a PDFAttachment object, adds a file to the object, and then assign it to a PDFDocument object.

PDFdocument lpdf_doc
PDFattachment lpdf_attach
lpdf_doc = create PDFdocument

lpdf_attach = create PDFattachment
//addfile
ll_return =lpdf_attach.addfile( "D:\image\image.png")
lpdf_doc.attachment = lpdf_attach