AddFileAttachment
Version history
This function was introduced in Quick PDF Library version 7.11.
Description
Makes an embedded file available as an attachment in the PDF viewer, if it supports this functionality. Adobe Reader 7 and later allow the user to work with file attachments.
First use the AddEmbeddedFile function to embed the file into the PDF.
Syntax
Delphi
function TDebenuPDFLibrary1811.AddFileAttachment(Title: WideString;
EmbeddedFileID: Integer): Integer;
ActiveX
Function DebenuPDFLibrary1811.PDFLibrary::AddFileAttachment(Title As String,
EmbeddedFileID As Long) As Long
DLL
int DPLAddFileAttachment(int InstanceID, wchar_t * Title, int EmbeddedFileID)
Parameters
Title | The title of the attachment that should appear in the PDF viewer |
EmbeddedFileID | The value returned from the AddEmbeddedFile function |
Return values
0 | The EmbeddedFileID parameter was invalid, or the Title was blank |
1 | The embedded file was made available as an attachment successfully |