Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created March 27, 2024 18:22
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 bjoerntx/461133ee63fbdb7bf381090290717b6b to your computer and use it in GitHub Desktop.
Save bjoerntx/461133ee63fbdb7bf381090290717b6b to your computer and use it in GitHub Desktop.
[HttpPost]
[Route("SaveDocument")]
public bool SaveDocument([FromBody] DocumentData documentData)
{
using (var tx = new ServerTextControl())
{
tx.Create();
tx.Load(Convert.FromBase64String(documentData.Document), BinaryStreamType.InternalUnicodeFormat);
foreach (FormField formField in tx.FormFields)
{
// access the form field data
}
}
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment