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.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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 or or  Then using the server side language of your choice, use the command like to sandwich the original pdf and signature.  

Using   with cli instructions 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

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.