Hi
I want to delete entire text from PDF, keeping image and layout intact
Is it possible with Spire.PDF
thanks
Reg
Bose C S
PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile(input);
PdfPageBase page = pdf.Pages[0];
PdfBrush brush = new PdfSolidBrush(Color.White);
PdfTextFind[] results = page.FindAllText().Finds;
foreach (PdfTextFind result in results)
{
RectangleF rec = result.Bounds;
page.Canvas.DrawRectangle(brush,rec);
}
pdf.SaveToFile(output);