Jpeg image and output

When you have a jpeg image in the template, the output doesn’t render it properly. I am attaching the source and output files. Here is the code I used.

using(FileStream sourceStream = File.OpenRead(@"C:\RocketMatter\scripts\Logo_Template.docx"))
{
    using(FileStream outputStream = File.Create(@"C:\RocketMatter\scripts\Logo_Template_Output.doc"))
    {
        Document document = new Document(sourceStream);
        document.Save(outputStream, SaveFormat.Doc);
    }
}

Thanks,
Gaurav

Hi
Thanks for your request. I cannot reproduce the problem on my side. I used the latest version of Aspose.Words for testing. You can download the latest version from here:
https://releases.aspose.com/words/net
Best regards,

I updated the library and it solved the issue. It could have been a bug in the old version.

Thanks,
Gaurav