Hi NicoDN,
[Are you working together with "khho" user?]
Please note what Stefan replied:
viewtopic.php?p=193235#p193235
PDF documents are not plain text files or Word documents - where it makes sense to talk about "word / character position". In a PDF document text can be over other text and in a different layer .. etc...
However, try the following (pseudo):
IPXC_Page _page = IPXC_Document.GetPage
IPXC_PageText _pageText = _page.GetText
_pageText.Get_LinesCount
for each line
_pageText.Get_LineInfo
_pageText.GetChars
In theory (I have not tried) you then look for your searched-for-string inside sChars and also increment nCharsCount for each processed line. Note that your searched-for-string can span between multiple lines.
Once you have found your searched-for-string, you need to get the PXC_Rect of the searched-for-string using _pageText.CharRect.
And finally, IPXV_Document.AddNewHighlighter.Add(page, ...)
HTH.
p.s.
Not an official support person
-žarko