Created
March 27, 2024 18:26
-
-
Save bjoerntx/bd710fc4c8f0677fd9cf1e935248ddf0 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
[HttpPost] | |
[Route("SaveDocument")] | |
public bool SaveDocument([FromBody] DocumentData documentData) | |
{ | |
using (var tx = new ServerTextControl()) | |
{ | |
tx.Create(); | |
tx.Load(Convert.FromBase64String(documentData.Document), BinaryStreamType.InternalUnicodeFormat); | |
FlattenFormFields(tx); | |
tx.Save("App_Data/results.pdf", StreamType.AdobePDF); | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment