nRewik / SimplePDF

Create a simple PDF effortlessly. :smile:
MIT License
253 stars 53 forks source link

How to add a digital signature field #43

Open caldwbr opened 4 years ago

caldwbr commented 4 years ago

Is there a pdf.addDigitalSignatureField option? If not, is there any way to improvise this?

My app is programmatically generating a work contract for construction business owners to automatically email to their potential customer and have a field for customer to digitally sign, save, and return back via email.

Thanks!!!

brianmcguire commented 4 years ago

I used a UIView to capture the onscreen signature and converted that to an image. Then I used the SimplePDF addImage() to add to the generated PDF file. The only challenge I am having is figuring out how to apply the image inline with the Signature field title. For example:

Signature: [my image]