Refresh PDF in GdViewer (Winforms)

Discussions about document viewing.
Post Reply
svr
Posts: 3
Joined: Wed Sep 14, 2016 11:44 am

Refresh PDF in GdViewer (Winforms)

Post by svr » Wed Sep 14, 2016 1:43 pm

Is there any way to refresh an edited pdf document which is displayed with the GdViewer?

I try to code an application that splits a big pdf document in serveral small pdf documents. In this case I use two GdViewer controls and two ThumbnailEx controls. One for the big pdf document and one for the new generated document. The ThumbnailEx displays the pages by using the "LoadFromGdViewer"-method.

The user can move each page of the big pdf document to the new one - but the new page is not displaying in the viewer. So I decided to set the source of the pdf document again:

myViewer.DisplayFromGdPicturePDF(myGdPicturePDF)
myThumbnailEx.LoadFromGdViewer(myViewer)

This works fine so far. But the performance is realy bad and it slows further down by the amount of pages.

Are there better ways to handle this?

Cedric
Posts: 257
Joined: Sun Sep 02, 2012 7:30 pm

Re: Refresh PDF in GdViewer (Winforms)

Post by Cedric » Fri Sep 16, 2016 10:24 am

Did you try with the Redraw method from the GdViewer class?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest