function SearchKeyString(SearchText, FontName: PAnsiChar; res: PFinderResult; var resLen: Cardinal) : LongBool; stdcall;
HRESULT _stdcall SearchKeyString([in] BSTR SearchString, [in] BSTR FontName, unsigned int* SearchResult, [in, out] unsigned long* ResultLen, [out, retval] VARIANT_BOOL* res);
The text you want to search for.
|fontName||Not in use right now|
|searchResult||Struct of the search result|
|resLen||Length of the struct|
- will be added soon -
This function is used to search strings in a PDF document. Such a string can be useful as anchor to help setting the correct signature position, for example in a dynamic document, where the content is always different and so the position of the signature does not have fixed coordinates. The function also works well with "invisible" text (white text on white background) or very small text sizes.
The struct, which you get back from the function, contains the coordinates of all positions, at which the search string was found in the document. The values are the coordinates of the top left and bottom right corners as well as the pagenumbers.