Click or drag to resize
Pdf Library for .NET

PdfPortfolioFilesCollection Class

Manages the embedded files of a pdf portfolio.
Inheritance Hierarchy
SystemObject
  SelectPdf.UniversalPdfPortfolioFilesCollection

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public class PdfPortfolioFilesCollection

The PdfPortfolioFilesCollection type exposes the following members.

Properties
 NameDescription
Public propertyCountGets the number of embedded files in the collection.
Public propertyItemGets the embedded file at the specified index.
Top
Methods
 NameDescription
Public methodCode exampleAddAdds an embedded file to the portfolio.
Public methodRemoveRemoves the embedded file at the specified index.
Top
Example
PdfPortfolioManager manager = new PdfPortfolioManager();
manager.Load("portfolio.pdf");
PdfPortfolioFilesCollection files = manager.Files;
for (int i = 0; i < files.Count; i++)
    System.Console.WriteLine(files[i].Name);
files.Add(new PdfPortfolioFile("extra.txt",
    System.IO.File.ReadAllBytes("extra.txt")));
manager.Save("portfolio.pdf");
See Also