Hi Aspose Support,
I am getting incorrect coordinates for a few paragraphs. This issue is occurring only for a specific doc which is attached herewith.
For example, for the text:
Subject to clause 12©, the Contractor must indemnify the Principal and each Principal Associate from and against: any Claim or Loss brought against, suffered or incurred by the Principal Associate as a result of the Contractor or a Contractor Associate failing to comply the Work Health and Safety Requirements or Environmental Requirements; any Claim or Loss brought against, suffered or incurred by the Principal or a Principal Associate arising out of, or in connection with, a breach by the Contractor of clauses 12.1 to 12.11 (inclusive); and any Claim or Loss brought against, suffered or incurred by the Principal or a Principal Associate arising out of, or in connection with, the Contractor or a Contractor Associate failing to comply with a Legislative Requirement, including any fines or penalties to the extent permitted by law.
which runs through pages 57-58 of the document, we are getting the following sets of coordinates:
[
{
"xstart" : 113.0,
"ystart" : 640.0,
"height" : 116.0,
"width" : 383.0,
"pagewidth" : 595.3,
"pageheight" : 841.900024414062,
"xend" : 496.0,
"yend" : 756.0,
"pageno" : 58
},
{
"xstart" : 155.0,
"ystart" : 116.0,
"height" : 47.0,
"width" : 154.0,
"pagewidth" : 595.3,
"pageheight" : 841.900024414062,
"xend" : 309.0,
"yend" : 163.0,
"pageno" : 59
},
{
"xstart" : 155.0,
"ystart" : 168.0,
"height" : 12.0,
"width" : 274.0,
"pagewidth" : 595.3,
"pageheight" : 841.900024414062,
"xend" : 429.0,
"yend" : 180.0,
"pageno" : 59
}
]
Same code logic is running fine for other documents. Request your help to identify the issue which can cause this behaviour for this particular document.
Aspose_Doc_To_Share.docx (128.0 KB)