GroupDocs.Signature for .NET

Seamlessly embed text signatures in PDF

Effortlessly integrate custom text signatures into your business documents using GroupDocs.Signature for .NET. Optimize organizational processes with versatile signature customization capabilities.

How to create and add text signatures to PDF using C#

GroupDocs.Signature facilitates the incorporation of text signatures into PDF files within .NET applications. Enhance your product capabilities swiftly with our comprehensive solutions.

  1. Pass the PDF document as a parameter to the Signature class constructor.
  2. Create TextSignOptions with the necessary signature text.
  3. Define the visual attributes for the signature.
  4. Embed the text signature onto any specified page(s) of the document.
// Initialize the Signature with the document path
using (Signature signature = new Signature("input.pdf"))
{
    // Create an instance of TextSignOptions with the desired signature text
    TextSignOptions options = new TextSignOptions("Approved")
    {
        // Configure the text color and font attributes
        ForeColor = Color.Red,
        Font = new SignatureFont { Size = 12, FamilyName = "Comic Sans MS" }
    };

    // Integrate the text signature into the document
    SignResult result = signature.Sign("output.pdf", options);
}
dotnet add package GroupDocs.Signature
click to copy
copied
More examples Documentation

Comprehensive text signature management

GroupDocs.Signature for .NET empowers your organization by enhancing document workflows through the addition of customizable text signatures across popular file formats. Easily manage the appearance, positioning, and content of these signatures to suit your specific needs.

Explore the Features of GroupDocs.Signature

Versatile document signatures

Apply a diverse range of signatures—including text, images, barcodes, QR codes, and stamps—onto any page of supported documents. Leverage metadata to embed hidden content, while protecting sensitive information through the use of digital certificates.

Signature search and authentication

Ensure the validity and integrity of your signed documents by utilizing our robust signature verification tools. Conduct searches to retrieve a comprehensive list of all signatures within a document for further analysis.

Update or remove signatures

Easily modify the content, visual properties, or positioning of previously embedded signatures. When necessary, remove unwanted signatures to maintain accurate and relevant document content.

Specialized text signatures

Implement document-specific text signatures, such as watermarks for Word documents or stickers for PDFs, to provide an additional layer of customization and control.

Embed text signatures in documents

Discover how to incorporate textual signatures into business documents to streamline processes.

C#

// Select the document to be signed
using (Signature signature = new Signature("input.pdf"))
{
    // Formulate text options with the specified content
    TextSignOptions options = new TextSignOptions("Rescheduled to 03/04/2025")
    {
          // Define the dimensions and position of the signature on the page
          Left = 100,
          Top = 180,
          Width = 230,
          Height = 30,

          // Implement padding from the page edges for signatures
          Margin = new Padding() { Top = 20, Right = 20 },

          // Customize the text color and font style
          ForeColor = Color.OrangeRed,
          Font = new SignatureFont { Size = 12, FamilyName = "Comic Sans MS" },

          // Incorporate a border around the text signature
          Border = new Border()
          {
              Color = Color.OrangeRed,
              DashStyle = DashStyle.Dash,
              Transparency = 0.5,
              Visible = true,
              Weight = 2
          },

          // Apply background customization if necessary
          Background = new Background()
          {
              Color = Color.LightYellow,
              Transparency = 0.8
          },

          // Optionally save the text as an image to ensure compatibility
          SignatureImplementation = TextSignatureImplementation.Image
    };

    // Save the document with the integrated text signature
    SignResult result = signature.Sign("output.pdf", options);
}
dotnet add package GroupDocs.Signature
click to copy
copied
More examples Documentation

Discover the GroupDocs.Signature for .NET solution

GroupDocs.Signature for .NET provides a sophisticated platform for embedding highly customizable text signatures, streamlining your document workflows. Tailor the content and visual attributes of text signatures, applying them seamlessly across pages to elevate document management and enhance operational efficiency.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Signature for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Advanced features and signature options

Our API supports full lifecycle management of seven signature types, offering comprehensive CRUD capabilities for managing, verifying, and customizing your signatures.

Embed text signatures across multiple file formats

With our .NET API, you can embed textual signatures into a wide variety of Office documents. Take full control of your documents’ lifecycle by adding text signatures that enhance both functionality and security.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English