How to search text string in pdf document?

I am looping throught each page of pdf document.

I need to search a text string like "&&0700&&0020".

And I need to strip this string to get only 0700 and 0020. These values are for X Y locations.

Please help.

Hello Latha,

Thanks for considering Aspose.

We have a product named Aspose.Pdf.Kit which is used to manipulate/edit existing PDF documents. As per your requirement, Aspose.Pdf.Kit for Java has a class named PdfSearcher which offers the capability to search particular text string with in a PDF file. For list of methods offered by this class, please visit this link. I am afraid searching of Text string is not supported in .Net version.

FYI, Aspose.Pdf.Kit offers the capability to search and replace a text string within a PDF document. You can try using the ReplaceText method of PdfContentEditor class.

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

Hello.

I would like to know when will it be possible to replace text in a pdf file?

Thanks.

screspo:


I would like to know when will it be possible to replace text in a pdf file?



Hi,

I would like to inform you that replace text feature is already available in Aspose.Pdf.Kit for .NET and Java. In order to replace text using Aspose.Pdf.Kit for .NET, you can use ReplaceText method, whereas Aspose.Pdf.Kit for Java provides replaceText method for that purpose.

Please try any of these methods at your end as appropriate; if you find any issues please do let us know.
Regards,

PS: Replace text feature is currently in beta in both of the components, so some issues might be expected. We're sorry for that.