Edit Digital Signatures in a PDF File

C# .NET API to instantly edit electronic signatures in PDF files using popular digital signature types. Manage signature properties and customize signing options within documents and images.


Download Free Trial

About GroupDocs.Signature for .NET API

GroupDocs.Signature for .NET is a native .NET API to digitally sign documents using various signature types such as text, image, barcode, stamp, form-field, QR-code and metadata. Users can easily add, edit, verify, remove and find digital signatures within PDF, Microsoft Word, Excel worksheets, PowerPoint presentations, Adobe Photoshop, metafiles and image file formats with additional support for customizing signature properties as needed.

How to Edit Digital Signatures in PDF

GroupDocs.Signature makes it easy for .NET developers to edit digital signatures from PDF files within their applications by implementing a few easy steps.

  • Create new instance of Signature class and pass source document path as a constructor parameter.
  • Instantiate TextSearchOptions object with desired properties.
  • Call Search method to obtain list of TextSignatures.
  • Select from list TextSignature object(s) that should be updated.
  • Call Signature object Update method & pass one / several signatures to it.

System Requirements

GroupDocs.Signature for .NET APIs are supported on all major platforms and operating systems. Before executing the code below, please make sure that you have the following prerequisites installed on your system.

  • Operating Systems: Microsoft Windows, Linux, MacOS
  • Development Environments: Visual Studio, Xamarin, MonoDevelop
  • Frameworks: .NET Framework, .NET Standard, .NET Core, Mono
  • Download the latest version of GroupDocs.Signature for .NET from NuGet

using (Signature signature = new Signature("sampleSigned.pdf"))
{
    TextSearchOptions options = new TextSearchOptions();
    // search for text signatures in document
    List signatures = signature.Search(options);
    if(signatures.Count > 0)
    {
        TextSignature textSignature = signatures[0];
        // change Text property
        textSignature.Text = "John Walkman";
        // change position
        textSignature.Left = textSignature.Left + 10;
        textSignature.Top = textSignature.Top + 10;
        // change size. Please note not all documents support changing signature size
        textSignature.Width = 200;
        textSignature.Height = 100;
        bool result = signature.Update(textSignature);
        if(result)
        {
            Console.WriteLine($"Signature with Text '{textSignature.Text}' was updated in the document ['{fileName}'].");
        }
        else
        {
            Console.WriteLine($"Signature was not updated in  the document! Signature with Text '{textSignature.Text}' was not found!");
        }
    }
}

Live Demos - Online App to Update Digital Signatures

Edit signatures in PDF files right now by visiting GroupDocs.Signature Live Demos website.
The live demo has the following benefits

No need to download API

No need to write any code

Just upload the source file

Get download link to save the file

About PDF File Format

Portable Document Format (PDF) is a type of document created by Adobe back in 1990s. The purpose of this file format was to introduce a standard for representation of documents and other reference material in a format that is independent of application software, hardware as well as Operating System. PDF files can be opened in Adobe Acrobat Reader/Writer as well in most modern browsers like Chrome, Safari, Firefox via extensions/plug-ins. Most of the commercially available software suites also offer conversion of their documents to PDF file format without the requirement of any additional software component. Thus, PDF file format has full capability to contain information like text, images, hyperlinks, form-fields, rich media, digital signatures, attachments, metadata, Geospatial features and 3D objects in it that can become as part of source document.

Read More About PDF File Format

Editing Signatures From Other Digital Document Formats

Multi format documents and images signatures editing API for .NET. Update signatures from some of the popular file formats as stated below.

Edit e-Signatures from PDF

(Adobe Portable Document Format)

Edit e-Signatures from DOC

(Microsoft Word Document)

Edit e-Signatures from DOCM

(Microsoft Word Macro-Enabled Document)

Edit e-Signatures from DOCX

(Microsoft Word Open XML Document)

Edit e-Signatures from DOT

(Microsoft Word Document Template)

Edit e-Signatures from DOTX

(Word Open XML Document Template)

Edit e-Signatures from DOTM

(Microsoft Word Macro-Enabled Template)

Edit e-Signatures from RTF

(Rich Text Document)

Edit e-Signatures from ODT

(Open Document Text)

Edit e-Signatures from OTT

(OpenDocument Text Template)

Edit e-Signatures from XLS

(Microsoft Excel Binary File Format)

Edit e-Signatures from XLSX

(Microsoft Excel Open XML Spreadsheet)

Edit e-Signatures from XLSM

(Microsoft Excel Macro-Enabled Spreadsheet)

Edit e-Signatures from XLSM

(Microsoft Excel Macro-Enabled Spreadsheet)

Edit e-Signatures from XLSB

(Microsoft Excel Binary Worksheet)

Edit e-Signatures from XLTX

(Microsoft Excel template)

Edit e-Signatures from XLTM

(Microsoft Excel macro-enabled template)

Edit e-Signatures from ODS

(Open Document Spreadsheet)

Edit e-Signatures from OTS

(OpenDocument Spreadsheet Template)

Edit e-Signatures from PPT

(PowerPoint Presentation)

Edit e-Signatures from PPTX

(PowerPoint Open XML Presentation)

Edit e-Signatures from PPS

(Microsoft PowerPoint 97-2003 Slide Show)

Edit e-Signatures from PPSX

(PowerPoint Open XML Slide Show)

Edit e-Signatures from POTM

(Microsoft PowerPoint Macro-Enabled Template)

Edit e-Signatures from POTX

(Microsoft PowerPoint Template)

Edit e-Signatures from PPTM

(Microsoft PowerPoint Presentation)

Edit e-Signatures from ODP

(OpenDocument Presentation)

Edit e-Signatures from OTP

(OpenDocument Presentation Template)

Edit e-Signatures from TIFF

(Tagged Image File Format)

Edit e-Signatures from GIF

(Graphics Interchange Format)

Edit e-Signatures from PNG

(Portable Network Graphic)

Edit e-Signatures from BMP

(Bitmap File Format)

Edit e-Signatures from CDR

(CorelDraw Vector Graphic Drawing)

Edit e-Signatures from SVG

(Scalable Vector Graphics)

Edit e-Signatures from PSD

(Adobe Photoshop Document)

Edit e-Signatures from WMF

(Windows Metafile)

Edit e-Signatures from EMF

(Enhanced Metafile Format)

Edit e-Signatures from CMX

(Corel Metafile eXchange Image)

Edit e-Signatures from PPSM

(Microsoft PowerPoint Macro-Enabled Slide Show)

Edit e-Signatures from DCM

(Digital Imaging and Communications in Medicine)

Back to top
 English