Pdf | |
The PdfPortfolioManager type exposes the following members.
| Name | Description | |
|---|---|---|
| PdfPortfolioManager | Initializes a new instance of the PdfPortfolioManager class. |
| Name | Description | |
|---|---|---|
| Files | The collection of embedded files of the portfolio. Accessing it turns a freshly-created or a regular loaded document into a portfolio. | |
| StartupFileName | Gets or sets the name of the file that opens first in the portfolio. | |
| ViewMode | Gets or sets the pdf portfolio view mode. |
| Name | Description | |
|---|---|---|
| Close | Closes the document and releases its resources. | |
| GetDocument | Returns the portfolio as a new PdfDocument. | |
| Load(Byte) | Loads an existing pdf document from a byte array. | |
| Load(PdfDocument) | Loads an existing PdfDocument. | |
| Load(Stream) | Loads an existing pdf document from a stream. | |
| Load(String) | Loads an existing pdf document (regular or portfolio) from a file. | |
| Load(Byte, String) | Loads a password-protected pdf document from a byte array. | |
| Load(PdfDocument, String) | Loads an existing PdfDocument with a password. | |
| Load(Stream, String) | Loads a password-protected pdf document from a stream. | |
| Load(String, String) | Loads a password-protected pdf document from a file. | |
| Save | Saves the portfolio and returns the bytes. | |
| Save(Stream) | Saves the portfolio to a stream. | |
| Save(String) | Saves the portfolio to a file. |
PdfPortfolioManager manager = new PdfPortfolioManager(); manager.Files.Add(new PdfPortfolioFile("report.pdf", System.IO.File.ReadAllBytes("report.pdf"))); manager.Files.Add(new PdfPortfolioFile("data.csv", System.IO.File.ReadAllBytes("data.csv"))); manager.ViewMode = PdfPortfolioViewMode.Details; manager.Save("portfolio.pdf"); manager.Close();