# Value's not getting proper during co-ordinates calculation

**URL:** <https://pdfjs.community/t/values-not-getting-proper-during-co-ordinates-calculation/107>\
**Category:** Technical Support\
**Created:** [July 2, 2020, 10:44am UTC](https://pdfjs.community/t/values-not-getting-proper-during-co-ordinates-calculation/107 "2020-07-02T10:44:46Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![zzhang](https://avatars.discourse-cdn.com/v4/letter/z/b9e5f3/32.png) [@zzhang](https://pdfjs.community/u/zzhang)\
**Post date:** [July 13, 2020, 5:44pm UTC](https://pdfjs.community/t/values-not-getting-proper-during-co-ordinates-calculation/107/4 "2020-07-13T17:44:26Z")

</div>

Hi,

Sorry for the delay in the reply.

I think I understand what you are trying to achieve and the issue you are facing now.

As I mentioned in the other post, the values you see in the **getPath** are in **pt** , so you would need to do some transformation.

The information you need to do the transformation is contained in **annot.Measure**. For polyline, the transformation would be as the following:

```javascript
adjustContents: function() {
  var perimeter = getPerimeter(annot.getPath());
  var axisNumberFormat = annot['Measure']['axis'][0];
  var distanceNumberFormatArray = annot['Measure']['distance'];
  var convertedPerimeter = perimeter * axisNumberFormat['factor'] * distanceNumberFormatArray[0]['factor'];
  console.log(convertedPerimeter);
},

```

Thanks,  
Zhijie

---

_[View the full topic](https://pdfjs.community/t/values-not-getting-proper-during-co-ordinates-calculation/107)._
