react-pdf-highlighter icon indicating copy to clipboard operation
react-pdf-highlighter copied to clipboard

Feature: How to add more tools like rectangle,circle,polygons?

Open justpankajdotcom opened this issue 1 year ago • 4 comments

Hi @agentcooper ,

Great library. As the name says it is used to highlight the pdfs which it does with great precision. I am wondering if you could guide me a bit on how to extend this library to add more features to it like rectangles, circles, polygons etc.

justpankajdotcom avatar Dec 01 '24 13:12 justpankajdotcom

@justpankajdotcom im looking for the same features to implement, also drawing on the pdf

KarthikeyaKollu avatar Dec 03 '24 05:12 KarthikeyaKollu

Hi @KarthikeyaKollu, after many days of searching I found this library to be most actively maintained https://github.com/Laomai-codefee/pdfjs-annotation-extension

Happy to work with you as I am also trying to figure out best way to integrate with my app.

justpankajdotcom avatar Dec 03 '24 05:12 justpankajdotcom

@justpankajdotcom Thanks for sharing the pdf-extension

My use case involves rendering a PDF document, displaying both the text and pdf page accurately. On top of that, I want to add multiple annotation layers. These layers should allow users to highlight text, sketch freely, use a pen tool, and draw shapes(so that i can able to disable some layers when needed). Additionally, when drawing shapes with the pen tool, they should automatically convert into perfect geometric shapes for a polished look.

if you know anything related to these features , it would be helpful for me

KarthikeyaKollu avatar Dec 03 '24 07:12 KarthikeyaKollu

The extension I shared to you should be able to do what you asked @KarthikeyaKollu

justpankajdotcom avatar Dec 03 '24 07:12 justpankajdotcom