Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created October 18, 2023 10:27
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/21dff9f5f2d7f0f9524c250713d40769 to your computer and use it in GitHub Desktop.
Save bjoerntx/21dff9f5f2d7f0f9524c250713d40769 to your computer and use it in GitHub Desktop.
[HttpPost]
public IActionResult ReceiveDocument(string document)
{
using (TXTextControl.ServerTextControl tx = new TXTextControl.ServerTextControl())
{
tx.Create();
tx.Load(Convert.FromBase64String(document), TXTextControl.BinaryStreamType.InternalUnicodeFormat);
tx.Save("document.pdf", TXTextControl.StreamType.AdobePDF);
}
return Ok();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment