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

Free Support Forum - aspose.com

Replacing Text in pdf Document

I am working on pdf document text removing utility using aspose pdf trial version API. I can remove text from pdf document. But I need to remove more text along with searched text that follows and precedes searched text. How can this be achieved?
Ex: “email:ganesh.sv@zohocorp” , Searched text is in bold letters, but I want to remove text “email:” also.

Hi Ganesh,

Thanks for your inquiry. you can use regular expression to accomplish your requirements. Please check following documentation link to use regular expression in search/replace operation.

Please feel free to contact us for any further assistance.

Best Regards,