Rank: Advanced Member Groups: Member
Joined: 6/19/2013 Posts: 38
|
My previous PDF tool allowed me to set a flag in the PDF to have the bookmarks bar automatically open when the PDF was opened by the end user.
I can't find similar functionality in EO.PDF, am I missing it?
Also, the ability to tell it to display the entire page would be nice. I tried to use the PdfViewerPreference.FitWindow Property for this but it did not do anything so I may be misunderstanding its purpose (or my viewer may be ignoring that flag.)
Thanks, Brad
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi, To display the bookmarks. You would do this:
Code: C#
doc.PageMode = PdfPageMode.UseOutlines;
To set the document to full page when it's loaded, you need to do something like this:
Code: C#
doc.ViewerPreference.InitialDestination =
new PdfDestination(doc.Pages[0], PdfDestFitMode.EntirePage);
Hope this helps. Thanks!
|
Rank: Advanced Member Groups: Member
Joined: 6/19/2013 Posts: 38
|
That did it. Thanks!
|