Adding a signature to a pdf file

I am looking for a means of adding a signature to a pdf file.  

Ideally I would like it so that when the user clicks somewhere on the screen the software will place a preselected image.  

If not then a javascript algorithm that just places the signature at the bottom of a pdf document would be fine.
onaled777Asked:
Who is Participating?
 
Joe Winograd, Fellow&MVEDeveloperCommented:
> Ideally I would like it so that when the user clicks somewhere on the screen the software will place a preselected image.

This can be achieved via a Stamp in Adobe Acrobat. Here's an EE article that explains how to do it:

Create Signature Stamp in Adobe Acrobat

That article references another EE article which explains how to create the signature image so that it has a transparent background, meaning it won't obliterate the surrounding text/form where the signature is placed:

Signature Image with Transparent Background

Regards, Joe
0
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
This is not something you will find on the client side so javascript alone will be out.  You will need to use server side scripting if this is for a website.    

What happens is the current pdf is one layer and the signature is a new layer that is added then saved to the pdf.  This is why you need to do this sever side.

You will need to install something at the server level like http://www.verypdf.com/app/pdf-stamp/l or https://www.pdflabs.com/docs/pdftk-cli-examples/ or http://www.imagemagick.org/.  Then using the server side language of your choice, use the command like to sandwich the original pdf and signature.  

Using http://www.verypdf.com/app/pdf-stamp/   with cli instructions http://www.verypdf.com/pdfstamp/pdfstamp_cmd/pdfstamp_manual_cmd.htm you would probably want the new layer sample.  Instead of adding a logo, you are adding the signature image.
//New layer function
pdfstamp.exe -newlayer "VeryPDF New Layer" -PDF "example.pdf" -o "newlayer.pdf" -AT "VeryPDF New\nLayer Test" -FT "Arial" -P9 -FS100 -opacity50 -R45 -C#0000FF -AI logo.jpg -opacity80 -P2 -AL -LW30 -opacity30 -LINEEX 100,100,200,200

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.