A simple React-based PDF annotation tool that lets users:
- 🔍 Select and highlight text
- 💬 Add comments to specific highlights
- 🎨 Choose highlight colors (red, blue, yellow)
- Double-click to highlight or add comment
- Attach floating 💬 comments
- Multiple color support for highlighting
Example:
git clone https://github.com/thasneem9/pdf-highlighter.git
cd pdf-highlighter
npm install
npm run dev- make sure your public folder contains pdf.worker.min.js [if note go to nodemodules > pdfjs > copy the file content of 'pdf.worker.min.js']
- make sure static folder contains a sample.pdf file!
- Check out developer console. I have added extensive console logs to identify key problems.
Feel free to fork and enhance this project.
Pull Requests are welcome!

