Aspose Java can not find any Bookmarks in my German edition MS-Word file

Now my company is evaluating Aspose Words Java to decide if we should purchase the license.

I have a Word file made with German edition MS Word and the language is German. There are three bookmarks, I should use the given Bookmark name to find the corresponding field, then read the meta-information of the corresponding content, such as page number, x-y position, width and height etc.

Although there are three book marks, however Aspose Evaluation JAR can not find anyone of them.

the result of following code is 0 :

final int bookmarksNum = doc.getRange().getBookmarks().getCount();
System.out.println("Bookmarks number is " + bookmarksNum);

In Attachment you can find the test docx file used in our evaluation.Beispielvertrag.docx (33,9 KB)

Here in this attachment you can find the requirement, the language is in German.

@zwei The problem does not occur in the licensed version of Aspose.Words. The following code returns 4 bookmakrs:

Document doc = new Document("C:\\Temp\\in.docx");
final int bookmarksNum = doc.getRange().getBookmarks().getCount();
System.out.println("Bookmarks number is " + bookmarksNum);
for (Bookmark bk : doc.getRange().getBookmarks())
    System.out.println(bk.getName());

output:

Bookmarks number is 4
_GoBack
SIGN_Personalleitung
SIGN_Personalreferent
SIGN_Mitarbeiter

You can request a free 30-days temporary license to test Aspose.Words on your side without evaluation version limitations.

Thank you for the info, I will try 30-days evaluation license.

1 Like