Hi,
While trying to convert Ms Word Document to HTML, some of the data is misaligned/misplaced.
Source document and screen shots are attached.
Regards,
Syed
Hi Syed,
Thanks for your inquiry. While using the latest version of Aspose.Words i.e. 13.12.0, I managed to reproduce a couple of issues on my side. I have logged the following issue in our bug tracking system.
The ID of the issue you mentioned in “Text+Alignment1.jpg” is WORDSNET-9464
The ID of the issue you mentioned in “3+Page+Label+misaligned.jpg” is WORDSNET-9465
Your request has also been linked to the appropriate issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.
Regarding the problem you mentioned in “4+Logo+misaligned.jpg”, please use the following code to fix it:
Document doc = new Document(@"C:\Temp\GP%2b30-45.doc");
HtmlSaveOptions so = new HtmlSaveOptions(SaveFormat.Html);
so.ExportHeadersFootersMode = ExportHeadersFootersMode.None;
doc.Save(@"C:\Temp\out.html", so);
Moreover, when you convert this document to Html format using Microsoft Word 2013, you’ll observe the logo is being rendered on left side too. So, this is the expected behavior. Also, please read the following article for more details:
https://reference.aspose.com/words/java/com.aspose.words/ExportHeadersFootersMode
Regarding the problem you mentioned in “2+Copyright+misaligned.jpg”, could you please upgrade to the latest version (13.12.0) and let me know if it resolves this problem or not? I am afraid, I could not see any issue with output Html i.e. generated with 13.12.0 on my side, could you please clarify where the issue is?
Best regards,
Hi Awais,
Thanks for the suggestion.
Regarding the issue ‘Logo misaligned’ , After setting the HeadersFooterMode to None, we are not able to reproduce this issue though the Logo is being rendered on left side which is an expected behaviour even in Microsoft Word 2010.
Regarding the issue of ‘Copyright misalignment’, I am still able to reproduce this with the latest Aspose binaries. I have attached the input/output files regarding this issue, which will give you better idea to understand this issue.
Regards,
Syed
Hi Syed,
Thanks for the additional information. Regarding “Copyright misalignment” issue, I have attached two sets of HTML documents here for your reference. You can see that Aspose.Words for Java 13.12.0 mimics the behavior of Microsoft Word 2013. So, this is the expected behavior. Please let me know if I can be of any further assistance.
Best regards,
Hi Awais,
Thanks for the input, As per our discussion on this thread, Below are the issues which we required to be fixed by Aspose.
Issue-1: ‘Text Alignment’ issue with the ID ‘WORDSNET-9464’.
Issue-2: ‘Page Label misaligned’ issue with the ID ‘WORDSNET-9465’.
Thanks a lot for the Assistance.
Regards,
Syed
Hi Syed,
Yes. We will keep you informed of any developments and let you know once these issues are resolved.
Best regards,
The issues you have found earlier (filed as WORDSNET-9464;WORDSNET-9465) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.