eSign document with Stamp signature

What is a Stamp signature?

stamp signature is a special type of electronic signature that have visual appearance of round seal and its visual parameters can be set programmatically. 
Every stamp signature can have multiple “stamp lines” with custom text and different line thickness, color, font weight and size. Here is an example of how stamp signature created with GroupDocs.Siganture may look like: 

GroupDocs.Signature provides StampSignOptions class to specify different options for Stamp signature:

  • Stamp type - Round or Square;
  • Height and width in pixels;
  • Alignment and position within the document page;
  • and many more.

Each Stamp option contains inner and outer lines. Inner lines represent vertical lines inside the stamp, when outer lines represent circles (or rectangles based on stamp type) around stamp with own text, border settings, background etc.

Here are the steps to add Stamp signature into document with GroupDocs.Signature:

  • Create new instance of Signature class and pass source document path as a constructor parameter.

  • Instantiate the StampSignOptions object according to your requirements and specify appropriate options.

  • Call Sign method of Signature class instance and pass StampSignOptions to it.

How to eSign document with Stamp signature 

This example shows how to add Stamp signature to document.

using (Signature signature = new Signature("sample.docx"))
{
    StampSignOptions options = new StampSignOptions()
    {
        // set stamp signature position
        Left = 100,
        Top = 100,
    };
    // setup first external line of Stamp
    StampLine outerLine = new StampLine();
    outerLine.Text = " * European Union * European Union  * European Union  *";
    outerLine.Font.FontSize = 12;
    outerLine.Height = 22;
    outerLine.TextBottomIntent = 6;
    outerLine.TextColor = Color.WhiteSmoke;
    outerLine.BackgroundColor = Color.DarkSlateBlue;
    options.OuterLines.Add(outerLine);
    //Inner square lines - horizontal lines inside the rings
    StampLine innerLine = new StampLine();
    innerLine.Text = "John";
    innerLine.TextColor = Color.MediumVioletRed;
    innerLine.Font.FontSize = 20;
    innerLine.Font.Bold = true;
    innerLine.Height = 40;
    options.InnerLines.Add(innerLine);
   
    signature.Sign("SampleSigned.docx", options);
}

More resources

Advanced Usage Topics

To learn more about document eSign features, please refer to the advanced usage section.

GitHub Examples 

You may easily run the code above and see the feature in action in our GitHub examples:

Free Online App 

Along with full-featured .NET library we provide simple, but powerful free Apps.
You are welcome to eSign PDF, Word, Excel, PowerPoint documents with free to use online GroupDocs Signature App.