Quick PDF logo

EmbedFile

Document properties

Description

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.

Syntax

Delphi

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

ActiveX

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

DLL

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

Parameters

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 http://www.iana.org/assignments/media-types/ 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 © 2011 Debenu. All rights reserved. AboutContactBlogNewsletterSupportBuyForum