A 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:
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.
This example shows how to add Stamp signature to document.
Signaturesignature=newSignature("sample.docx");StampSignOptionsoptions=newStampSignOptions();// set stamp signature position
options.setLeft(100);options.setTop(100);// setup first external line of Stamp
StampLineouterLine=newStampLine();outerLine.setText(" * European Union * European Union * European Union * European Union * European Union * ");outerLine.getFont().setSize(12);outerLine.setHeight(22);outerLine.setTextBottomIntent(6);outerLine.setTextColor(Color.WHITE);outerLine.setBackgroundColor(Color.BLUE);options.getOuterLines().add(outerLine);//Inner square lines - horizontal lines inside the rings
StampLineinnerLine=newStampLine();innerLine.setText("John");innerLine.setTextColor(Color.RED);SignatureFontsignFont=newSignatureFont();signFont.setSize(20);signFont.setBold(true);innerLine.setFont(signFont);innerLine.setHeight(40);options.getInnerLines().add(innerLine);// sign document to file
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:
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.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.