Skip to content

Instantly share code, notes, and snippets.

@epcim
Created October 21, 2015 10:51
Show Gist options
  • Save epcim/750628421192b38e5096 to your computer and use it in GitHub Desktop.
Save epcim/750628421192b38e5096 to your computer and use it in GitHub Desktop.

add sign/stamp to PDF files

First convert the image to PDF

convert image.png image.pdf

Then scale up and offset the image using pdfjam (another free tool)

pdfjam --paper 'a4paper' --scale 0.3 --offset '7cm -12cm' image.pdf

Then combine both PDFs using pdftk

pdftk text.pdf stamp image.pdf output combined.pdf

You may need to download STAMPtk if you need to position the image and add it to only one page in the general PDF, but this one you have to pay for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment