Load document from local disk

When document is located on the local disk GroupDocs.Signature enables you to work with document over the fileΒ Signature class constructor.Β SignatureΒ instance will open file for reading only when any method ofΒ SignatureΒ will be called.

Following code snippet shows how to load document from local disk.

using (Signature signature = new Signature("sample.pdf"))
{
    TextSignOptions options = new TextSignOptions("John Smith")
    {
    };
    // sign document to file
    signature.Sign("sampleSigned", options);
}

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.