I'm currently using pdf.js for my project to render PDFs.
Now there is this tricky task to highlight a section of a PDF page given the coordinates.
Example
Given a boundary section like [(31,35),(40,35),(40,40),(31,40)]
I should highlight the given section with any primary color of choice.
How can I accomplish this task using Javascript and the pdf.js API?
Is it possible or am I sounding overambitious?