Created
January 13, 2023 11:18
-
-
Save bjoerntx/2d3a26a7d2b36f4380484a3e41233b45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var signatureImage = System.Text.Encoding.UTF8.GetString( | |
Convert.FromBase64String(data.SignatureImage)); | |
var stamp = TXTextControl.Esign.SignatureStamp.Create( | |
new Size(600, 250), | |
data.Name, | |
12, | |
signatureImage, | |
data.UniqueId, | |
Color.LightGray, | |
Color.Magenta, | |
80, 12, 10); | |
// create a memory stream from SVG | |
using (MemoryStream ms = new MemoryStream( | |
stamp, 0, stamp.Length, writable: false, publiclyVisible: true)) { | |
foreach (SignatureField field in tx.SignatureFields) { | |
field.Image = new SignatureImage(ms); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment