Adding current date to a signature image and adding it into an existing pdf

275 views Asked by At

I have a signature image and want to add first the current date before it (on the left side) and then add this signature with date together to an existing pdf. The existing pdf is an application form with an area for the signature and date.

What I have done so far is:

magick \( -size 450x -gravity west -font NimbusSans-Regular label:23.10.2019 \) signature.png +append -strip -quality 100 signaturewithdate.png

^This adds the current date before the signature, works.

Afterwards I convert the signature image with date to a "layer pdf" and put the signature image with date to the right position:

magick signaturewithdate.png -resize 400x25 -transparent white -page A4+330+180 stamp.pdf

Afterwards I use pdftk to join the original application form pdf and the signature with date pdf:

pdftk original.pdf stamp stamp.pdf output final.pdf

My problem is now, that the signature with date in the pdf is not sharp enough, its losing the sharpness. How I can make the signature with date sharp?

You find the original pdf here: https://gofile.io/?c=COkXUr

0

There are 0 answers