pcorless / icepdf

PDF Rendering and Viewing API in Java
Apache License 2.0
81 stars 21 forks source link

Multi-path ink annotation creation #295

Closed pcorless closed 1 year ago

pcorless commented 1 year ago

The current ink annotation handler creates the annotation on a mouse released event which prevents users from creating more complicated drawing composed of more than one path.

This modification introduces a timer that will create the ink annotation after 2 seconds of inactivity. As a result, the user can create as many paths (mouse down, drag, mouse up) as they want, then wait for the annotation to automatically be created.

Related tickets may be created to further extend this feature, colour selection, create and delete buttons.