Click or drag to resize

PortfolioFilesCollection Class

Manages the embedded files of a pdf portfolio.
Inheritance Hierarchy
SystemObject
  ExpertPdf.Anywhere.PDFPortfolioPortfolioFilesCollection

Namespace: ExpertPdf.Anywhere.PDFPortfolio
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public class PortfolioFilesCollection

The PortfolioFilesCollection 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");
PortfolioFilesCollection files = manager.Files;
for (int i = 0; i < files.Count; i++)
    System.Console.WriteLine(files[i].Name);
files.Add(new PortfolioFile("extra.txt",
    System.IO.File.ReadAllBytes("extra.txt")));
manager.Save("portfolio.pdf");
See Also