如何按术语使用 php 突出显示 pdf 文档?

how to highlight pdf document word by term use php?

我是 Php 的初学者。我必须使用 php 本地突出显示 Pdf 中的文本,看起来像 mark.js 但 mark.js 只是突出显示 html 文档。可能吗?。我搜索了 google 中的所有论坛,但没有找到我的问题的答案。请给我任何解决方案。

我已经回答了我的问题,只需添加#search= 和您要查找的词,插入 pdf 文档,它会自动高亮显示该词 例子 : https://mozilla.github.io/pdf.js/web/viewer.html#search=Type

但现在我遇到了一个新问题 我可以用另一种颜色更改突出显示的颜色吗?