PdfPortfolioManager Class |
Namespace: SelectPdf
The PdfPortfolioManager type exposes the following members.
Name | Description | |
---|---|---|
PdfPortfolioManager |
Instantiates the PdfPortfolioManager object.
|
Name | Description | |
---|---|---|
Files |
Collection of pdf portfolio embedded files from the current pdf document that represents a pdf portfolio.
| |
StartupFileName |
Gets or sets the name of the startup file in the pdf portfolio.
| |
ViewMode |
Gets or sets the pdf portfolio view mode.
|
Name | Description | |
---|---|---|
Close |
Closes the opened pdf document.
(Inherited from PdfManager.) | |
GetDocument |
Returns the pdf document as PdfDocument object.
(Inherited from PdfManager.) | |
Load(Byte) |
Loads a pdf document from a byte array.
(Inherited from PdfManager.) | |
Load(Stream) |
Loads a pdf document from the specified stream.
(Inherited from PdfManager.) | |
Load(String) |
Loads a pdf document from an existing pdf file.
(Inherited from PdfManager.) | |
Load(PdfDocument) |
Loads a pdf document from an existing PdfDocument object.
(Inherited from PdfManager.) | |
Load(Byte, String) |
Loads a password protected pdf document from a byte array.
(Inherited from PdfManager.) | |
Load(Stream, String) |
Loads a pdf document from a stream containing a password protected pdf document.
(Inherited from PdfManager.) | |
Load(String, String) |
Loads a pdf document from an existing password protected pdf file.
(Inherited from PdfManager.) | |
Load(PdfDocument, String) |
Loads a pdf document from an existing password protected PdfDocument object.
(Inherited from PdfManager.) | |
Save |
Saves the pdf document as byte array.
(Inherited from PdfManager.) | |
Save(Stream) |
Saves the pdf document to the specified stream.
(Inherited from PdfManager.) | |
Save(String) |
Saves the pdf document to the specified file.
(Inherited from PdfManager.) |
// the test files string filePdf = Server.MapPath("~/files/doc.pdf"); string fileHtml = Server.MapPath("~/files/document.html"); string fileImage = Server.MapPath("~/files/logo.png"); // instantiate the pdf portfolio manager PdfPortfolioManager portfolio = new PdfPortfolioManager(); // add files to the portfolio PdfPortfolioFile pdfFilePdf = new PdfPortfolioFile(filePdf); pdfFilePdf.Description = "PDF document"; portfolio.Files.Add(pdfFilePdf); PdfPortfolioFile pdfFileHtml = new PdfPortfolioFile(fileHtml); pdfFileHtml.Description = "HTML document"; portfolio.Files.Add(pdfFileHtml); PdfPortfolioFile pdfFileImage = new PdfPortfolioFile(fileImage); pdfFileImage.Description = "Image file"; portfolio.Files.Add(pdfFileImage); // set view mode portfolio.ViewMode = PdfPortfolioViewMode.Details; // set startup file portfolio.StartupFileName = "logo.png"; // save pdf document portfolio.Save(Response, false, "Sample.pdf"); // close pdf document portfolio.Close();