Jump straight to page?

Discussions about document viewing.
Post Reply
gharpur
Posts: 3
Joined: Wed Jun 13, 2012 11:24 am

Jump straight to page?

Post by gharpur » Thu May 29, 2014 5:26 pm

Is there any way to jump straight to a specific page of a new multi-page image (PDF in particular)?

At the moment, if I call DisplayFromFile(..), and then DisplayPage(2), the first page will be displayed briefly before flicking to the 2nd page, which is slow, and confusing to the user.

I can hack around it for PDFs by loading the PDF and rendering a specific page into the GdViewer, but then I need to recreate all the previous/next page functionality as well.

Any help appreciated. I'm using GDPicture.NET 9.

George

User avatar
Loïc
Site Admin
Posts: 5538
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Jump straight to page?

Post by Loïc » Thu May 29, 2014 5:51 pm

Hi,

You can use the LockViewer property of the control to True before loading the document.
When the document is loaded set it back to False and navigate to the desired page.

Hope this helps!

With best regards,

Loïc

gharpur
Posts: 3
Joined: Wed Jun 13, 2012 11:24 am

Re: Jump straight to page?

Post by gharpur » Thu May 29, 2014 6:44 pm

Thanks Loïc - just what I needed!

George

User avatar
Loïc
Site Admin
Posts: 5538
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Jump straight to page?

Post by Loïc » Thu May 29, 2014 6:50 pm

You're welcome :)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests