Delete a page of PDF document

I have a pdf document with multiple pages. I need to delete the last page.

I need to check the last page of PDF document. If the last page has a word "DELETE_PAGE" then I need to remove this page.

Please help.

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for considering Aspose.

Aspose.Pdf is a component which is used to generate PDF documents from scratch, whereas we have another component named Aspose.Pdf.Kit which is used to manipulate/edit existing PDF documents.

I am afraid Searching of particular word is not supported in Aspose.Pdf.Kit for .Net whereas its currently only supported in Aspose.Pdf.Kit for Java. As a workaround, you can extract the text of PDF document and search for particular text string in it programmatically. Please visit the following link for information on How to Extract text from PDF document.

Whereas for removal of any particular page in PDF document, please try using Delete method in PdfFileEditor class.

In case it does not satisfy your requirement, or you've any further query, please feel free to contact.