Welcome Guest Search | Active Topics | Sign In | Register

Is there a way to set Zoom level and show Bookmarks when PDF first opened? Options
Brad Mathews
Posted: Wednesday, September 4, 2013 1:54:58 PM
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
eo_support
Posted: Wednesday, September 4, 2013 5:20:56 PM
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!
Brad Mathews
Posted: Saturday, September 7, 2013 10:28:45 PM
Rank: Advanced Member
Groups: Member

Joined: 6/19/2013
Posts: 38
That did it. Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.