intoolswetrust / jsignpdf

PDF signing software written in Java. It supports visible signatures, timestamping, certificate verification and many other cool features
https://intoolswetrust.github.io/jsignpdf/
Other
310 stars 120 forks source link

Request features: Always On Top and Drag and Drop #19

Closed spacevoyager78 closed 2 years ago

spacevoyager78 commented 6 years ago

Hi! Is it possible to have a feature to have the GUI always on top and to be able to drag and drop files in it, so that the input file box could be filled automatically?

kwart commented 6 years ago

Hi @Wizard13 ,

The always on top doesn't sound like a behavior one would expect from such type of application. IMO you can use either third party solution or look for this feature in your window manager.

The drag-and-drop support could be useful, so I'm ready to review and merge pull request with an implementation if someone volunteers and implements it.

spacevoyager78 commented 6 years ago

Ah, yes, you are very right about always on top. It can be done very easily. Drag and drop would be nice though if anyone could implement it (I wish I knew how...)

rausm commented 5 years ago

Drag and drop would be nice though if anyone could implement it (I wish I knew how...)

It's easy: https://github.com/kwart/jsignpdf/pull/26/files#diff-9afb8ef3fe03eccf47292f4095b20c3dL136

  1. Create a transfer handler: lines 143-166
  2. Attach the transfer handler: line 173

Let's hope kwart likes it ;-)

kwart commented 2 years ago

The Drag&Drop is merged now (thanks @rausm ).