I have a requirement which includes file embedding (text files) into a dynamically generated RTF file.
I’m currently able to generate the RTF without problems but I also need to embed one or multiple txt files into it as well.
I’ve done some research and also looked into rtf spec. Looks like there might be a way to do that with \object tag but as far as I understand \objdata content should be in OLE format. Is this the only way? (I was hoping I could include in byte array format) Or is there any way to convert txt file content into this format so that I can include?
I currently have several microservices written in python and c# (dotnet core) and they are all running on docker containers on linux env. So preferably I need a way that’s suitable with these.
Thank you in advance.
Aspose.Words allows inserting embedded OLE objects into Word documents and it has .NET Standard 2.0 version. https://apireference.aspose.com/net/words/aspose.words.documentbuilder/insertoleobject/methods/2