We’re looking into a feature for our customers involving an integration with OneDrive for the purposes of realtime collaborative editing of newsletters. When a newsletter is checked out, Aspose is used to convert its HTML into a word document, which is then uploaded to OneDrive via the MS Graph API. When changes are done, the file is checked in and converted back from the word document to HTML again.
For the most part, this has been working fine and pretty much all of the layout features OneDrive supports get converted successfully. But we’ve noticed one particular issue in relation to images and their text wrapping option. Whereas Word has a singular textwrap option labeled “Square”, OneDrive has two labeled “Square Left” and “Square Right”:
These options respectively move the image to the top-left and top-right of the paragraph. And Aspose actually seems to handle converting those back and forth from word doc to HTML pretty well. But there’s one particular case where it fails, and that’s when you have an image already set to dock to one side, and you want to change it to the other side (e.g. from “Square Left” to “Square Right”). Aspose seems to not register that change and it keeps it stuck on the original side when you check back in. However, we have found that you can fix it by changing the image to “In Line”, checking that in, checking it back out, and now changing it to the “Square Left/Right” setting you want.
It seems like some sort of information isn’t being updated when switching between the two square settings, but is when switching from a non-square setting. We’re having trouble figuring out how to manually correct this through code, though. Is there a good way to identify and fix this?