Floating objects are duplicated when anchor is on top of page

Hello,

In the latest release of Aspose.Words, we found that in some cases, floating objects (we have seen the problem with lines and with text boxes) are duplicated when the table of contents are refreshed. The problem occurs only when the anchor of the object is on the top of the page.

By checking previous versions of Aspose.Words, it seems the problem was introduced in version v11.11.0.0, it works in v11.10.0.0.

See attached files for test case, when running the case I have used the application code in the end of this post.

thanks,

Johnny Andersen

namespace AsposeWordsConvert
{
    using System.Diagnostics;
    using System.IO;
<span style="color: blue;">using</span> Aspose.Words;

<span style="color: blue;">class</span> <span style="color: rgb(43, 145, 175);">Program</span>
{
    <span style="color: blue;">static</span> <span style="color: blue;">void</span> Main(<span style="color: blue;">string</span>[] args)
    {
        <span style="color: blue;">if</span> (args.Length < 1)
        {
            <span style="color: rgb(43, 145, 175);">Trace</span>.WriteLine(<span style="color: rgb(163, 21, 21);">"Invalid number of arguments: Expecting AsposeWordsConvert.exe <source>"</span>);
            <span style="color: blue;">return</span>;
        }

        <span style="color: blue;">string</span> l_sourceFile = args[0];

        <span style="color: blue;">if</span> (!<span style="color: rgb(43, 145, 175);">File</span>.Exists(l_sourceFile))
        {
            <span style="color: rgb(43, 145, 175);">Trace</span>.WriteLine(<span style="color: rgb(163, 21, 21);">"Specified source file does not exist: "</span> + l_sourceFile);
            <span style="color: blue;">return</span>;
        }

        <span style="color: blue;">string</span> l_targetFile = l_sourceFile + <span style="color: rgb(163, 21, 21);">".docx"</span>;

        Aspose.Words.<span style="color: rgb(43, 145, 175);">Document</span> l_workbook = <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">Document</span>(l_sourceFile);
        l_workbook.UpdateFields();

        l_workbook.Save(l_targetFile, <span style="color: rgb(43, 145, 175);">SaveFormat</span>.Docx);
    }
}

}

Hi Johnny,

Thanks for your inquiry. I have managed to reproduce the same issue at my side. I have logged this issue as WORDSNET-7881 in our issue tracking system. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

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


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