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(Signaturesignature=newSignature("sample.pdf")){TextSignOptionsoptions=newTextSignOptions("John Smith"){};// sign document to filesignature.Sign("sampleSigned",options);}
More resources
GitHub Examples
You may easily run the code above and see the feature in action in ourΒ GitHub examples: