Thumbnail MovePage

Discussions about document viewing.
Post Reply
bibbyusr
Posts: 4
Joined: Tue Aug 20, 2013 10:54 am

Thumbnail MovePage

Post by bibbyusr » Wed Nov 20, 2013 12:49 pm

In my webpage I need to move the position of a page when a user selects a thumbnail and clicks a button. I've got the Thumbnail image moving and I redraw the image so it all looks ok in the Thumbnail, however when I click on a thumbnail after I've moved a page it still displays the original page in the viewer, not the page that has taken it's place. How do I update the viewer to what the Thumbnail control now holds??

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

Re: Thumbnail MovePage

Post by Cedric » Thu Dec 05, 2013 12:14 pm

This is not really the viewer that needs to be updated but the multipage file itself. When changing the order of the thumbnails you have to change the pages order in the file as well otherwise the thumbnails order has not correlation with the actual pages order.
You should take a look at the demo application we provide called "Page Manipulation", on the ItemMoved even from the ThumbnailEx control, here is what's done:

Code: Select all

        If m_DocumentFormat = DocumentFormat.DocumentFormatPDF Then
            m_NativePDF.MovePage(srcIdx + 1, dstIdx + 1)
        Else
            If m_DocumentFormat = DocumentFormat.DocumentFormatTIFF Then
                m_GdPictureImaging.TiffMovePage(m_NativeImage, srcIdx + 1, dstIdx + 1)
            End If
        End If

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest