Layout enumerator appears to be giving different Y position in different environments

I have code in the zip to detect the X and Y position of bookmarked text (see attached zip). It appears that for certain bookmarks I am getting different Y position results using the LayoutEnumerator on local environment (using Windows10) to Jenkins (in AWS environment). I’m wondering how it is possible for the same code to give different results in different OS/ local remote etc.

2 examples:

LOCAL:

bm_10-286.79998779296875:296.1789855957031
Text = fire, lightning, explosion, aircraft and articles dropped from them, riot,

bm_14-286.79998779296875:414.5589904785156
Text = interest calculated on a day-to-day basis (as well before as after judgment);

JENKINS:

bm_10-286.79998779296875:307.4209899902344

bm_14-286.79998779296875:437.85101318359375

aspose_bug.zip (17.1 KB)

@chrisbeecham2

Please note that Aspose.Words requires true type fonts for correct page layout. You need to install fonts used in your document at the machine where you are getting bookmark’s position.

Please read the following article about integration of Aspose.Words in AWS.

Aspose.Words Integration in AWS Lambda