Pdf | |
The PdfPortfolioFilesCollection type exposes the following members.
| Name | Description | |
|---|---|---|
| Count | Gets the number of embedded files in the collection. | |
| Item | Gets the embedded file at the specified index. |
| Name | Description | |
|---|---|---|
| Add | Adds an embedded file to the portfolio. | |
| Remove | Removes the embedded file at the specified index. |
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");