We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Adlib Moving MS Office Drawings (CTS-4366)

Hi,


While converting attached word documents to PDF the annotation drawings that have been added from within word are being moved and removed, refer to the attached files, the yellow circles are being moved and removed.

Document “FAC112 Coal Drag Chain Dust Coll Maint”, analyze pg 5, in the other document issue can be seen on the only page there.

Thanks,
Rajiv

Hi Rajiv,


Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 16.2.0, we managed to reproduce these issues on our end. We have logged the following issues in our bug tracking system.

WORDSNET-13347: against FAC112 Coal Drag Chain Dust Coll Maint.docx
WORDSNET-13348: against FAC112 cut 3.docx

Your thread has been linked to these issues and you will be notified as soon as they are resolved. Sorry for the inconvenience.

Best regards,

Hi Awais,


What’s the status of both the bugs ? (am strangely unable to click on them and see the status)

Can you pls share the ETA ?

Thanks,
Rajiv
Hi Rajiv,

Thanks for your inquiry. Unfortunately, both issues are not resolved yet and there are no estimates available. Our product team has completed the analysis and the root cause of these issues has been identified. However, because of complexity, the implementation of the fixes of these issues have been postponed till a later date. We will inform you via this thread as soon as these issues are resolved. We apologize for your inconvenience.

Best regards,

When you say any bug has been officially ‘postponed’, that generally means it won’t be fixed in near future, is that so ? Correct me if I am wrong.


- Can you ask Dev to see if they can share any tentative future timeline for implementing this fix ?

- Please share more technical details about the root-cause and how it is complex to fix. We need to share this detail with our customer.

Thanks,
Rajiv

Hi Rajiv,


Thanks for your inquiry.

The issue occurs because Aspose.Words calculates floater vertical position differently from MS Word when floater anchor is wrapped around another floater.

The problematic shapes do not actually disappear; they are positioned behind another shape in the previous table row in your document.

In the attached simplified 13347s.docx, the anchor line of the problematic shapes is moved down because of wrapping around an image. The shapes are positioned relatively to the anchor paragraph. MS Word uses the actual anchor paragraph position after wrapping to calculate shape positions. Aspose.Words uses the previous line bottom which is above the wrapped image. Because of that, the shapes are positioned higher in Aspose.Words layout.

The logic was specially introduced in order to fix some other customers’ issues. The tests for WORDSNET-4883 confirm that behavior.

It seems that MS Word behaves differently in this case because the wrapped image is anchored in the same paragraph as the problematic shapes. If the image is moved to anchor in another paragraph, MS Word positions the shapes the same way as Aspose.Words.

We have made some experiments to confirm the above condition but we quickly came to a document where we could not explain MS Word behavior. In the attached 13347sWeird.docx we introduced another shape anchored in another paragraph below that also moves down the anchor line of the problematic circles. We found that increasing the new shape height moves the circles anchor down, but it does not affect the circles positions. So it is calculated from some intermediate anchor line position which is neither original (before wrapping) nor final. This is bad enough, but there is more. In the same document, if the new shape is moved down, it affects the circles anchor line position in the same way as resizing. However, in this case the circles move down as well. So for the same anchor line position we get different anchored shape positions.

We need to understand the sequence of steps MS Word uses to arrive at the final layout and how to determine which intermediate anchor position should be used for the anchored shape positioning. This seems to be a complex issue.

We are postponing for now in favor of priority issues. You may make the problematic shapes page (cell) relative as a workaround.

Best regards,

Thanks Awais for the detailed explanation !


Regards,
Rajiv