Skip to content

maxkurze1/resignation

Repository files navigation

re[sign]ation

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

Documentation

The documentation of this tool can be found here

Why

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.

How to use

To use resignation you have multiple options.

Nix Flakes

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"

PyPI

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"

About

re[sign]ation: A script to create digital signatures

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published