Welcome Guest Search | Active Topics | Sign In | Register

Bookmarks always changes the zoom level back to Entire Page Options
Brad Mathews
Posted: Thursday, October 3, 2013 12:05:32 AM
Rank: Advanced Member
Groups: Member

Joined: 6/19/2013
Posts: 38
While viewing a PDF, change the zoom level. Then if you select a bookmark to move to another page, the view changes back to entire page. If you use any other form of navigation, the page zoom stays the same.

I am creating bookmarks like this:

Code: Visual Basic.NET
Bookmark = New PdfBookmark(Section.Description)
Bookmark.Destination = New PdfDestination(result.PdfDocument.Pages(Section.pageNo - 1), PdfDestFitMode.None)


I see from the docs that PdfDestination.ZoomFactor comes into play with PdfDestFitMode.None, but my clients would prefer to have a "JustLeaveTheZoomAlone" setting.

Thanks,
Brad
eo_support
Posted: Thursday, October 3, 2013 10:06:13 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

I do not believe such setting is possible. Our PdfDestination object is translated into a "destination" object in the PDF file, and all PDF destination object has an explicit or implicit zoom factor. So we are not aware of any way to support a "JustLeaveTheZoomAlone" option. Sorry about that!

Thanks!
Brad Mathews
Posted: Thursday, October 3, 2013 1:11:51 PM
Rank: Advanced Member
Groups: Member

Joined: 6/19/2013
Posts: 38
The last PDF component I used did not have this problem (I just double checked an old PDF created with it). When you click a bookmark, the zoom stays the same.

Do you think they were not using a Destination object, but some other mechanism for handling bookmarks links?

Sorry to dwell on this, but I am just trying to fully understand the situation, which might spark some inspiration.
eo_support
Posted: Thursday, October 3, 2013 1:24:02 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

You can send us a test file with the desired behavior and we will be able to look into it to see what we can find. If it is something that's easy for us to support, then we will be happy to support it.

Thanks!
Brad Mathews
Posted: Friday, October 4, 2013 4:52:05 PM
Rank: Advanced Member
Groups: Member

Joined: 6/19/2013
Posts: 38
Just so everyone knows, the "JustLeaveTheZoomAlone" feature was added to the latest version.

It looks like if you just specify PdfDestFitMode.None for the fitMode parameter when instantiating a pdfDestination object (like I did in my sample code in my first post,) you will get the desired effect.

Keep up the good work guys! :d/

- Brad
eo_support
Posted: Friday, October 4, 2013 5:35:33 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Yes. The key is PdfDestFitMode.None. Thanks for pointing it out!


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.