An image as a signature is an alternative way to put any presenting data in a visual form. This electronic signature type allows the creation of custom images with a company logo, sender’s initials, names and so forth.
GroupDocs.SignatureΒ providesΒ the ImageSignOptionsΒ classΒ to specify different settings for image signature such as image content by file or stream, location, colors and advanced effects.
Here are the steps to create an image signature on a document page:
Create a new instance ofΒ the Signature class and pass the source document path as a constructor parameter;
Instantiate theΒ ImageSignOptionsΒ object according to your requirements and specify Image signature options;
This example shows how to sign a PDF document with the image signature.
using(Signaturesignature=newSignature("sample.pdf")){ImageSignOptionsoptions=newImageSignOptions("signature.jpg"){// set signature positionLeft=100,Top=100,//AllPages=true};signature.Sign("SampleSigned.pdf",options);}
Summary
This guide demonstrates how to use GroupDocs.SignatureΒ to add image-based signatures to documents. It covers loading a document, configuring the image signature’s properties (such as size, position, and opacity), and saving the signed document. Advanced customization options, like adjusting image appearance and aligning the signature, are also discussed. For further insights, explore related document signing resources.
Advanced Usage Topics
To learn more about document eSign features, please refer to theΒ advanced usage section.
More resources
GitHub Examples
You may easily run the code above and see the feature in action in ourΒ GitHub examples: