How to get real text with TextOperator

when i want to get this TextOperator the display text
Is there any way?

image.png (31.7 KB)

@dalazi

Below is a sample usage of TextOperator class to extract and remove the absorbed text:

Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(dataDir + "saveSplit.pdf");

for (int i = 1; i <= pdfDocument.Pages.Count; i++)
{
    Aspose.Pdf.Page page = pdfDocument.Pages[i];

    //Aspose.Pdf.OperatorSelector operatorSelector = new Aspose.Pdf.OperatorSelector(new Aspose.Pdf.Operator.TextShowOperator());

    OperatorSelector operatorSelector = new OperatorSelector(new Aspose.Pdf.Operators.TextShowOperator());

    page.Contents.Accept(operatorSelector);

    page.Contents.Delete(operatorSelector.Selected);
}

pdfDocument.Save(dataDir + "removedText.pdf", Aspose.Pdf.SaveFormat.Pdf);

why i replace the text text overlapping?
image.png (21.7 KB)

image.png (67.1 KB)

@dalazi

Would you please share the sample PDF and the code snippet for our reference so that we can test the scenario in our environment and address it accordingly.