I want to highlight sentence on mouse hover on each word of that sentence in pdf document, i tried some way but i couldn't achieve this goal.
Is there any way to do this with pdftron?
I want to complete this event handler:
WebViewer({
path: '/assets/plugins/pdftron',
initialDoc: '/practical.pdf',
fullAPI: true,
disableLogs: true
}, document.getElementById('pdf'))
.then((instance) => {
const { PDFNet, docViewer } = instance;
const Tools = instance.Tools;
docViewer.on('mouseMove', (e) => {
console.log(e);
});
});