Boost your document security with GroupDocs.Signature for .NET 24.1 DLLs-only package. This version offers flexible integration options to easily incorporate image, barcode, and stamp signatures into Word document headers and footers.
Insert Image Signatures
Embed custom image signatures within Word document headers or footers to strengthen document authenticity with the newest release of the .NET eSignature API. Please check out the code sample below, which showcases how to insert an image signature into the Word documents in C#.
// Sign document with Image signature.
using (Signature signature = new Signature("sample.docx"))
{
ImageSignOptions options = new ImageSignOptions("signature.jpg")
{
// set signature position
Left = 100,
Top = 100,
AllPages = true,
ShapePosition = ShapePosition.Header
};
signature.Sign("SampleSigned.docx", options);
}
Source*
Implement Barcode/QR Code Signatures in .NET Apps
Supercharge document security by incorporating barcode or QR code signatures into your MS Word files. Please review the following C# code example to learn how to add QR code signatures to the header or footer of a document.
// Sign document with QrCode signature.
using (Signature signature = new Signature("sample.docx"))
{
// create QRCode option with predefined QRCode text
QrCodeSignOptions options = new QrCodeSignOptions("JohnSmith")
{
// setup QRCode encoding type
EncodeType = QrCodeTypes.QR,
// set signature position
Left = 100,
Top = 100,
ShapePosition = ShapePosition.Header
};
signature.Sign("SampleSigned.docx", options);
}
Source*
Customized Stamp Signatures
GroupDocs.Signature for .NET 24.1 allows the insertion of custom stamp signatures to Word documents for professional purposes. This code sample illustrates the feature usage in C#.
// Sign document with Stamp signature.
using (Signature signature = new Signature("sample.docx"))
{
StampSignOptions options = new StampSignOptions()
{
// set stamp signature position
Left = 100,
Top = 100,
ShapePosition = ShapePosition.Header
};
// setup first external line of Stamp
StampLine outerLine = new StampLine();
outerLine.Text = " * European Union * European Union * European Union *";
outerLine.Font = new SignatureFont() { Size = 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;
outerLine.Font = new SignatureFont() { Size = 20, FamilyName = "Arial" };
innerLine.Font.Bold = true;
innerLine.Height = 40;
options.InnerLines.Add(innerLine);
signature.Sign("SampleSigned.docx", options);
}
Source*
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting GroupDocs.Signature for .NET 24.1 Release Notes.