We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Question about deleting pages

Good morning

We want to modify a pdf document we create in a web application by deleting some pages, depending on some requisites we know.

We are evaluating some applications over internet to do this and we want to know if it is possible with your ASPOSE PDF Kit or other application.

We are reading the documentation but we have not found any example doing this, although we found the Delete Pages feature.

We want to know if it possible to do this and the way of doing it, including an example.

Thank you a lot

Hi Óscar,

In order to remove particular pages from the PDF file, you can use Delete method of PdfFileEditor class; you can also find an example on this link.

As far as checking some prerequisites are concerned, I’m afraid, I couldn’t find anything specific mentioned by you; however, if you want to delete a particular page on the basis of some particular text then you can use ExtractText method to extract the text of a PDF page and find your particular contents. Or you can use GetImageDescriptions method to get all the information of images on a particular page and take the decision of deleting PDF pages on this information.

If you think this information is not helpful in your scenario then please elaborate your requirement a little bit, so we would be able to help you out.

Regards,