BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

AttachFile Method

Adds a non-annotation type of file attachment to a PDF file.

Sub AttachFile(AttachmentFileName As String,
               Description As String)

void AttachFile(string AttachmentFileName,
                string Description)

void AttachFile(String AttachmentFileName,
                String Description) throws PDFProcessorException

Parameters

Return Values

N/A.

Remarks

This function returns almost immediately. Attachments will only be written out when the Close function is called.

Example Usage

Set oProcessor = CreateObject("easyPDF.PDFProcessor.8")
Set oProcessorHandle = oProcessor.OpenFile("C:\test\input.pdf", "C:\test\output.pdf")

oProcessorHandle.AttachFile "C:\test\attachment.doc", "Description of attachment"

oProcessorHandle.Close