how to highlight a text or word in a pdf file using iTextsharp?

前端 未结 5 1745
陌清茗
陌清茗 2020-11-28 13:13

I need to search a word in a existing pdf file and i want to highlight the text or word

and save the pdf file

I have an idea using PdfAnnotation.CreateMarku

5条回答
  •  醉话见心
    2020-11-28 13:51

    This is one of those "sounds easy but is actually really complicated" things. See Mark's posts here and here. Ultimately you'll probably be pointed to LocationTextExtractionStrategy. Good luck! If you actually find out how to do it post it here, there several people wondering exactly what you are wondering!

提交回复
热议问题