Relative Content

Tag Archive for node.jsmupdf

How to extract highlighted text from a PDF using MuPDF.js?

I’m using the MuPDF.js library to extract annotations (specifically highlights) from a PDF document. While I can detect the annotations and their types, I’m struggling to retrieve the highlighted text. Here’s my current code: