Click or drag to resize
Pdf Library for .NET

PdfPortfolioFileContent Property

Returns the binary content of the embedded file.

Namespace:  SelectPdf
Assembly:  Select.Pdf (in Select.Pdf.dll) Version: 24.1
Syntax
public byte[] Content { get; }

Property Value

Type: Byte
Examples
The following sample code shows how to use this property to save the embedded file content on disk.
PdfPortfolioManager portfolio = new PdfPortfolioManager();
portfolio.Load("portfolio.pdf");
PdfPortfolioFile file = portfolio.Files[i];
FileStream s = new FileStream("export\\" + file.Name, FileMode.Create);
s.Write(file.Content, 0, file.Content.Length);
s.Dispose();
See Also