|
PdfPortfolioFileContent Property |
Returns the binary content of the embedded file.
Namespace:
SelectPdf
Assembly:
Select.Pdf (in Select.Pdf.dll) Version: 20.2
Syntax public byte[] Content { get; }
Public ReadOnly Property Content As Byte()
Get
Property Value
Type:
ByteExamples
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