Method AddEmbeddedFile
AddEmbeddedFile(string, string)
Adds an embedded file to the document.
[Obsolete("Use EmbeddedFilesManager.ForDocument(document).Add(embeddedFileInfo)")]
public void AddEmbeddedFile(string name, string path)
Parameters
namestringThe name used to refer and to entitle the embedded file.
pathstringThe path of the file to embed.
AddEmbeddedFile(string, Stream)
This function is deprecated. TODO Adds an embedded file to the document.
[Obsolete("Use EmbeddedFilesManager.ForDocument(document).Add(embeddedFileInfo)")]
public void AddEmbeddedFile(string name, Stream stream)
Parameters
namestringThe name used to refer and to entitle the embedded file.
streamStreamThe stream containing the file to embed.