I use this code (from yours example):
- Code: Select all
PdfTextFindCollection collection = page.FindText(source, TextFindParameter.IgnoreCase);
PdfBrush brush = new PdfSolidBrush(Color.Chartreuse);
PdfTrueTypeFont font = new PdfTrueTypeFont(new Font("Arial", 24f, FontStyle.Bold));
rec = find.Bounds;
page.Canvas.DrawRectangle(PdfBrushes.White, rec);
page.Canvas.DrawString(newText, font, brush, rec);
find.ApplyRecoverString(newText, Color.Transparent);
1) not changhe color and not change size text also if i install commercial Spire.PDF
2) if I delete row code find.ApplyRecoverString the newText is not displayed
I attach Pdf generate from print at file Word origin
I Hope in your feddback.
Thanks