Aspose.Words.Document changing font / formatting

Saving a document via Aspose.Words.Document.Save changes the font and formatting on a some of our documents. The font on the original document is Arial 10, but after the save, it has changed the font to Times New Roman 12. The page layout is changed too (probably due to the font size change). This does not happen to most of our documents, but only some of them. The docs that it does occur on are similarly formatted (they come from the same source).

I can provide an example doc or I can provide a test solution. I can reproduce the issue every time with my test doc / solution. I have tried in Aspose 6.3, 8.1 and 9.0 and this issue occurs in all versions. I see that issues 5313 and 6016 might be related, but they are supposedly fixed.

Here is my test code:

License l = new License();
l.SetLicense("Aspose.Words.lic");
AsposeDocument asposeDoc = new AsposeDocument("ps.doc");
asposeDoc.Save("asposetest2.doc", SaveFormat.Doc);

Thanks,
Robin Green

Hello

Thanks for your inquiry. Could you please attach your input document here for testing? I will check the problem on my side and provide you more information.
Best regards,

See attachment.

Thanks,
Robin Green

Hello Robin,

Thank you for additional information. I cannot reproduce the problem on my side using the latest version of Aspose.Words (9.0.0). You can download this version from here:
https://releases.aspose.com/words/net
I sent the output document produced on my side to your e-mail.
Best regards,

I have tried 6.3, 8.1, and 9.0. When I view the file you sent in Office 2007, it is fine. When I view it in Office 2003, it is hosed. I deleted my normal.dot, and tried re-opening it, and it is still hosed. Any suggestions?

Thanks,
Robin Green

And by hosed, I mean Times New Roman font size 12 instead of Arial 10 like the original document. Sorry, meant to be more specific.

Thanks
Robin Green

Hello

Thank you for additional information. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is fixed.
Best regards,

Do you have a estimate for a fix for this issue?

Thanks,
Robin

Hello

Thanks for your inquiry. Unfortunately, it is difficult to provide you any reliable estimate regarding this issue at the moment. You will be notified as soon as it is resolved.
Best regards,

Further research has shown that our default font from normal.dot was Times New Roman 12 and the style used on the example document inherited from the normal style. So, it appears that Aspose was applying the default font / style from normal.dot when the document was saved. Our work-around / fix is to set the appropriate font (Arial 10) in normal.dot as the default.

Thanks for your help.
Robin Green

Hello Robin,

Thank you for additional information. We will notify you once the issue is resolved.
Best regards,

The issues you have found earlier (filed as WORDSNET-3448) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.