×
Menu
Index

EmbedRelatedFile

 
 
  • EmbedRelatedFile( cTitle, cFileName, cMIMEType, AFRelationship, nOptions ) => Embeds (attach) a file to the PDF.
 
cTitle : 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.
 
cFileName : The full path and name of the file to embed.
 
cMIMEType : The optional MIME type of the file, for example "text/xml" for an XML file. 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.
 
AFRelationship : The relationship between the embedded file and the document. Can be one of "Data", "Source", "Alternative", "Supplement" or "Unspecified".
 
nOptions :      0 = Regular embedding
          1 = ZUGFeRD mode
 
Return values
false (.f.) - The file could not be embedded
true (.t.) - The file was embedded successfully