This tool is intended to provide a little convenience for creating digitally signed PDFs on Linux. For that it is based on a couple of existing tools including:
- pyhanko for the creation of the digital/cryptographic part of the signature
- typst for the creation of the visual part of the signature
The documentation of this tool can be found here
Most existing tools (at least the dozen I tried) were lacking in one or the other regard. Either the signatures visual appearance couldn't be configured, or they completely invalidated all existing signatures when drawing a new one.
Additionally, most of them have been rather inconvenient to use.
To use resignation you have multiple options.
For use with nix, resignation provides a flake that can be run directly through nix:
nix run github:maxkurze1/resignation -- \
--input document.pdf \
--output document-signed.pdf \
--template "github:maxkurze1/resignation?dir=templates/logo"
To install the script via pip execute the following command: (Use a venv if you don't want to install it globally)
pip install git+https://github.com/maxkurze1/resignation
Afterward, you should be able to use the resignation command
on its own:
resignation \
--input document.pdf \
--output document-signed.pdf \
--template "github:maxkurze1/resignation?dir=templates/logo"