Sign pdf with digital signature
Here are the patches presented and discussed in
https://gitlab.freedesktop.org/poppler/poppler/issues/465
I selected and ordered the patches following the description in
https://bugs.freedesktop.org/show_bug.cgi?id=99416#c58
I had to do a bit of manual rebasing. Apologies for any resulting screw-ups.