简体   繁体   中英

Javascript pdf parser and events

Is there a way to set events on pdf elements (say text, images, ...) while a pdf is loaded in an html page ?

For example: click on a sentence and alert the full sentence in aa parent frame

You could try a pdf api, check out Mozilla pdf , you might be able to manipulate the canvas element. the people working on it are active , so you can ask them for help after you have tried the api.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM