Table of Contents
PDF Portfolio

EO.Pdf can read or create "PDF Portfolio". A "PDF Portfolio" is a PDF file that contains multiple embedded files and allows user to navigate between those files.

To create a PDF portfolio, you must embed all the files first. The following code demonstrates how to embed files into a PDF file:

PdfDocument doc = new PdfDocument();

//Generate main PDF content
.....

//Attach the first file
PdfAttachment attachment1 = new PdfAttachment("c:\\1.gif");
doc.Attachments.Add(attachment1);

//Attach another file
PdfAttachment attachment1 = new PdfAttachment("c:\\2.gif");
doc.Attachments.Add(attachment2);

Once the files are added as attachments, you must set PdfDocument.Portfolio.InitialView to a value other than None to enable the portfolio feature:

//Enable portfolio
doc.Portfolio.InitialView = PdfPortfolioView.Detail;