Page 1 of 1

Jump straight to page?

Posted: Thu May 29, 2014 5:26 pm
by gharpur
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

Re: Jump straight to page?

Posted: Thu May 29, 2014 5:51 pm
by Loïc
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

Re: Jump straight to page?

Posted: Thu May 29, 2014 6:44 pm
by gharpur
Thanks Loïc - just what I needed!

George

Re: Jump straight to page?

Posted: Thu May 29, 2014 6:50 pm
by Loïc
You're welcome :)