Page 1 of 1

Deleting multiple pages

Posted: Wed Aug 22, 2012 4:26 pm
by indxlogic
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?

Re: Deleting multiple pages

Posted: Mon Feb 04, 2019 4:37 pm
by Gabriela
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.