- bug in docu of findtext. DontGoToPage = true - goes to page. It mustbe named "GoToPage" not "DontGoToPage"
- how to get result of findtext? Found/not? I get findtext=true even when not found. pls return False
- bug in docu of findtext. DontGoToPage = true - goes to page. It mustbe named "GoToPage" not "DontGoToPage"
- how to get result of findtext? Found/not? I get findtext=true even when not found. pls return False
Hi,
COMPDF_FindText will return -1 if it does not find anything, otherwise it returns the page number.
COMPDF_FindNext can be used to conclude the search.
_findtext, _findnext bad documented. If i enter
if lastfind=findtext.text then
wpviewpdf1.Command(COMPDF_FindNext)
else
wpviewpdf1.CommandStr(COMPDF_FindText, findtext.text);
wpviewpdf1.Command(COMPDF_HighlightText);
lastfind:= findtext.text;
to demo, it cant find after 1st match. Next not found. can you give code for *your demo? (with _findtext/_findalttext/_findnext)
tell how to use _HighlightText- not documented.
Hi,
HighlightText requires a call to FindText first. Then, wehn You call COMPDF_HighlightText, all the matching words are painted with a yellow background.
Please note that You can set 2 words to find. They maust have the same length:
COMPDF_FindAltText sets one, COMPDF_FindText sets the other.
You can asll this commands with a version of the word as lower and as uppercase string.
In the character matching it is trying characters from both versions. This is for case insensitive search.
understood
but again- can you give *code text* for *your demo (demo2) which
calls _findfirst, _findnext? Tried my code (above) it doesnt work for findnext.
maybe bug in WP, maybe code. If u give me code I ll know for sure