We are using AspNetCore 8.0 for an api project. We tried to convert a pdf object to a word object was follows:
Aspose.Pdf.Document doc = // Out db access
System.IO.MemoryStream wordStream = new System.IO.MemoryStream();
doc.Save(wordStream, Aspose.Pdf.SaveFormat.Doc);
This worked fine back in an asp.net library, but in Core, it complains about not being able to loan System.Windows.Forms, which we don’t have access to in Core. How should I convert an Aspsoe PDF to a Word byte array??