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.

void AttachFile(string AttachmentFileName, string Description)


Sub AttachFile(AttachmentFileName As String, Description As String)


def AttachFile(self, AttachmentFileName, Description)


void AttachFile(String AttachmentFileName,
                String Description) throws PDFProcessorException

function AttachFile($AttachmentFileName, $Description) 


BclPrcResult AttachFile(BclPDFProcessorHandle* pHandle,
                        const wchar_t* AttachmentFileName,
                        const wchar_t* Description);
Sub AttachFile(AttachmentFileName As String, _
               Description As String)

bepproc +Attach -file <filename> [-description <string>]


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