highkite / pdfAnnotate

Javascript library for creating annotations in PDF documents
MIT License
556 stars 90 forks source link

Is it possible to highlight lines one by one? #79

Open KnockOutEZ opened 1 year ago

KnockOutEZ commented 1 year ago

I want to generate the metadata of each line so I can use them in the Highlight annotation programmatically/automatically. I want to iterate one after another line and highlight them. How can I achieve this?

I also wanna add another question which is, can I trigger a function on line click? For example I click on line 100 in whole pdf, and it triggers a function returning 100 (The index of the line in whole pdf).