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(InputFileName As String,
               OutputFileName As String,
               AttachmentFileName As String,
               Description As String)

void AttachFile(string InputFileName,
                string OutputFileName,
                string AttachmentFileName,
                string Description)

void AttachFile(String InputFileName,
                String OutputFileName,
                String AttachmentFileName,
                String Description) throws PDFProcessorException

Parameters

Return Values

N/A.

Remarks

N/A

Example Usage

Set oProcessor = CreateObject("easyPDF.PDFProcessor.8")
 
oProcessor.AttachFile "C:\test\input.pdf", _
                      "C:\test\output.pdf", _
                      "C:\test\attachment.doc", _
                      "Description of attachment"