Locating signature in the Word header or footer

A Word document offers a diverse selection of pre-designed headers and footers, providing you with options to enhance the design and layout of your document effortlessly. The header, positioned in the top margin, and the footer, located in the bottom margin, serve as integral sections of the document layout. Typically, headers and footers play host to supplementary details like page numbers, dates, author identification, and footnotes.

GroupDocs.Signature provides ability to locate signature in the footer and header of Word document. Use enumeration ShapePosition contains following valuesks

  • Default - signature will be placed in the docx document body
  • Header - signature will be placed in the word document header
  • Footer - signature will be placed in the word document footer

Here are the steps to set signature mode with adding text into Word document with GroupDocs.Signature:

Locate Signature Area in the Word header/footer

Now, users can easily create and customize text signatures directly within the headers and footers of their Word documents.

    using (Signature signature = new Signature("sample.docx"))
    {
        var listOptions = new List<SignOptions>();

        var headerSign = new TextSignOptions("Hello header!")
        {
            ShapePosition = ShapePosition.Header
        };

        var footerSign = new TextSignOptions("Hello footer!")
        {
            ShapePosition = ShapePosition.Footer
        };

        listOptions.Add(headerSign);
        listOptions.Add(footerSign);

        signature.Sign(outputFilePath, listOptions);
    }

More resources

GitHub Examples

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

Free Online Apps

Along with the full-featured .NET library, we provide simple but powerful free online apps.

To sign PDF, Word, Excel, PowerPoint, and other documents you can use the online apps from the GroupDocs.Signature App Product Family.