Free Support Forum - aspose.com

Remove OCR text hidden from "PDF Searchable Image (Exact)" file

Currently I was wondering whether there was a way to remove all text from the layer underneath the scanned image (the searchable text layer /ocrtext layer) in a "PDF Searchable Image (Exact)" file ?

If so was there any C# code examples to do such a thing. Basically remove the Text Layer our of the pdf file. And then save it as a new pdf file.

Thanks in advance

Mark

[Smile [:)]

Dear Mark,

There is not a API in Aspose.Pdf. Kit directly designed to support the funtion you need.

As a possible solution, please try the PdfContentEditor.ReplaceText Method at http://www.aspose.com/Products/Aspose.Pdf.Kit/Api/Aspose.Pdf.Kit.PdfContentEditor.ReplaceText.html.

Best regards,