Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Last active October 9, 2019 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GroupDocsGists/52d64011519d40a6126d55437c49490d to your computer and use it in GitHub Desktop.
Save GroupDocsGists/52d64011519d40a6126d55437c49490d to your computer and use it in GitHub Desktop.
// instantiate the signature object
using (Signature signature = new Signature("Sample.pdf"))
{
// setup options with text of signature
TextSignOptions signOptions = new TextSignOptions("John Smith");
// set Z-Order
signOptions.ZOrder = 10;
// text rectangle size
signOptions.Height = 100;
signOptions.Width = 100;
// if you need to sign all the pages of document
signOptions.AllPages = true;
// sign the document
signature.Sign("signedSample.pdf", signOptions);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment