PyUNOを使用してOpenOffice Writerドキュメントで検索と置換を正常に実行するpythonスクリプトがあります。見つかったテキストの座標を取得する方法を知りたいですか?
import string
search = document.createSearchDescriptor()
search.SearchString = unicode('find')
#search.SearchCaseSensitive = True
#search.SearchWords = True
found = document.findFirst(search)
if found:
#log.debug('Found %s' % find)
## any code here help to get the coordinate of found text?
pass