Generating a Word Document on the fly using .NET Core

Here, we have a web application with a .NET core backend running on Azure. Using Office SDK for this purpose was ruled out for this reason. We needed something free, open-source, and supported on.