stephanrauh / ngx-extended-pdf-viewer

A full-blown PDF viewer for Angular 16, 17, and beyond
https://pdfviewer.net
Apache License 2.0
450 stars 167 forks source link

Drawing Annotations on the PDF, like Squares, Rectangle, circles etc. #2332

Closed balabk57 closed 1 month ago

balabk57 commented 1 month ago

In the current version of the viewer, we can draw only using the pen tool, right? or we can add, remove the annotations programmatically.

what I am expecting is like, pre-defined annotation shapes like, lines, square, rectangle, etc..(like in adobe acrobat reader).

stephanrauh commented 1 month ago

@Calixteman That's another popular feature. Do you have any plans to add stuff like this to pdf.js?

stephanrauh commented 1 month ago

I'm closing the ticket because it's out of my scope.

If you want to implement a simple solution, you can capture the (annotationLayerRendered) event and add custom HTML element to the annotation layer.