|
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
|
|
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!
|
|
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.
|
|
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!
|
|
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
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Yes. The key is PdfDestFitMode.None. Thanks for pointing it out!
|
|