Wow,the whole document‘s bookmarks lost!

When I used aspose.words to open the word document, the bookmarks in the document were empty, all bookmarks were lost,the file type is Microsoft Macintosh Word.

@Anghost

Could you please attach your input Word document here for testing? We will investigate the issue on our side and provide you more information.

static void Main(string[] args)
{
string path = @“E:\不需要调查报告 V2.docx”;
Document doc =new Document(path);
Console.WriteLine(doc.Range.Bookmarks.Count);//why it is zero?
foreach (var bookmark in doc.Range.Bookmarks)
{
Console.WriteLine($“bookamark:{bookmark.Name}\t text:{bookmark.Text}”);
}

    Console.ReadKey();
}

不需要调查报告 V2.zip (699.7 KB)

@Anghost

We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-19438. 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-19438) have been fixed in this Aspose.Words for .NET 19.11 update and this Aspose.Words for Java 19.11 update.

It is now possible to display the count of bookmarks and the name of the bookmark, but the text of the bookmark appears to be an empty string!

@Anghost

We have tested the scenario using the same document and noticed that Bookmark.Text returns incorrect value. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-19547. 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-19547) have been fixed in this Aspose.Words for .NET 19.12 update and this Aspose.Words for Java 19.12 update.