可以使用getSearchIndex获取当前高亮定位关键字的index,定位到关键字。使用setSearchIndex跳转到关键字索引对应的搜索结果处。searchIndex参考指南: https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/pdf-arkts-pdfviewmanage-V5\#section10557163718239搜索pdf关键字指南链接: https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/pdf-pdfview-search-V5
可以使用getSearchIndex获取当前高亮定位关键字的index,定位到关键字。使用setSearchIndex跳转到关键字索引对应的搜索结果处。
searchIndex参考指南: https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/pdf-arkts-pdfviewmanage-V5\#section10557163718239
搜索pdf关键字指南链接: https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/pdf-pdfview-search-V5