Debenu Quick PDF logo


Document properties


Embeds a file into the PDF document and creates a file attachment link to the embedded file. The file can then be accessed in Acrobat under the File Attachments function.

This is equivalent to calling AddEmbeddedFile followed by AddFileAttachment.



function TDebenuPDFLibrary1511.EmbedFile(Title, FileName, 
  MIMEType: WideString): Integer;


Function DebenuPDFLibrary1511.PDFLibrary::EmbedFile(Title As String,
  FileName As String, MIMEType As String) As Long


int DPLEmbedFile(int InstanceID, wchar_t * Title, wchar_t * FileName,
  wchar_t * MIMEType)


Title A unique title for this file. No two files can have the same title. If a file with this title already exists in the document the new file will not be embedded.
FileName The full path and name of the file to embed.
MIMEType The optional MIME type of the file, for example "image/jpg" for a JPEG image. See for a full list of MIME types. If the MIME type is not known it can be set to an empty string.

Return values

0 The file could not be embedded
1 The file was embedded successfully

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport