Skip to content

Instantly share code, notes, and snippets.

@groupdocs-cloud-gists
Created July 31, 2025 02:06
Show Gist options
  • Save groupdocs-cloud-gists/2e16ae36ecd1f729180908ec1b32f422 to your computer and use it in GitHub Desktop.
Save groupdocs-cloud-gists/2e16ae36ecd1f729180908ec1b32f422 to your computer and use it in GitHub Desktop.
Rewrite Word document
AI enabled .NET REST API providing the capabilities to rewrite MS Word documents online.
// For more examples, please visit https://github.com/groupdocs-rewriter-cloud/groupdocs-rewriter-cloud-dotnet/tree/main/GroupDocs.Rewriter.Cloud.SDK.Net.Demo
public FileResponse RewriteDocument(Configuration conf)
{
string name = "test.docx";
string folder = "";
string language = "en";
string format = "docx";
string storage = "First Storage";
string saveFile = "translation.docx";
string savePath = "";
RewriterApi api = new RewriterApi(conf);
RewriteDocumentRequest request = api.CreateDocumentRequest(name, folder, language, format, storage, saveFile, savePath, masters, elements);
FileResponse response = api.RunRewritingTask(request);
return response;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment