Deleting multiple pages

Discussions about document viewing.
Post Reply
indxlogic
Posts: 6
Joined: Tue Aug 21, 2012 4:42 pm

Deleting multiple pages

Post by indxlogic » Wed Aug 22, 2012 4:26 pm

I have created a basic document viewer with a thumbnail view on the side. I am giving my clients the option to select multiple pages and delete them from a document. I have not found a way to do this as easily as I would like. What I am currently doing is creating a for loop from 0 -> page count and then checking to see if ThumbnailEx.GetItemSelectState(i). If the item is NOT selected I add it to a new image. Then I save the new image sans selected pages and redisplay. Is this the best practice for deleting multiple pages, or have I missed a better method?

Gabriela
Posts: 436
Joined: Wed Nov 22, 2017 9:52 am

Re: Deleting multiple pages

Post by Gabriela » Mon Feb 04, 2019 4:37 pm

Hello,

The pages deletion needs to be done in the loaded document, so either through the GdPictureImaging class or GdPicturePDF class. Therefore no particular methods are provided in GdViewer or ThumbnailEx classes for this. So yes, your approach seems to be fine here.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest