Thanks a lot for this. For people wanting to apply a signature to a pdf, the way that worked for me was to create a pdf file (with gimp) with the signature in the correct position, export as pdf, then:
pdftk orig.pdf stamp signature.pdf output orig_signed.pdf