Created
March 27, 2024 18:22
-
-
Save bjoerntx/461133ee63fbdb7bf381090290717b6b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
[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