Table of Contents

Method AddEmbeddedFile

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

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

name string

The name used to refer and to entitle the embedded file.

path string

The 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

name string

The name used to refer and to entitle the embedded file.

stream Stream

The stream containing the file to embed.