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
308 stars 118 forks source link

[FR] Allow export of GUI settings #166

Closed ramiromagno closed 10 months ago

ramiromagno commented 10 months ago

It would be nice to be able to prototype the settings using the GUI and then use them from the command line. Could you make a button to export the settings?

kwart commented 10 months ago

The GUI settings are automatically stored in the ${HOME}/.JSignPdf property file. You can make a copy of it after configuring in GUI and then use -lpf / --load-properties-file to load it in the console/batch run.

# run UI and configure the settings you need
jsignpdf-2.2.2/jsignpdf.sh

# copy the current configuration
cp ${HOME}/.JSignPdf custom-jsignpdf.properties

# use the custom configuration for signing in the batch mode
jsignpdf-2.2.2/jsignpdf.sh -lpf custom-jsignpdf.properties invoice.pdf

I hope, it covers your needs. If not, feel free to reopen and when possible also open a PR with the suggested implementation.