 |
PdfPortfolioFileContent Property |
Returns the binary content of the embedded file.
Namespace: SelectPdfAssembly: Select.Pdf (in Select.Pdf.dll) Version: 26.2
Syntaxpublic byte[] Content { get; }Public ReadOnly Property Content As Byte()
Get
Property Value
Byte
Example
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();Dim portfolio As New PdfPortfolioManager()
portfolio.Load("portfolio.pdf")
Dim file As PdfPortfolioFile = portfolio.Files(i)
Dim s As New FileStream("export\" + file.Name, FileMode.Create)
s.Write(file.Content, 0, file.Content.Length)
s.Dispose()
See Also