pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chitgoks <chitg...@gmail.com>
Subject calculate area of polygon
Date Sun, 15 Oct 2017 13:18:34 GMT
hi all

need input

so i create a measurement area annotation and this is the formula i
followed

http://www.techbluff.com/javascript/function-to-calculate-polygon-area/

however, when the pdf is created and i move the annotation the value is not
the same.

my formula for converting pixel to inches is correct since my measurement
distance annotation computation shows correct value(distance from 1 point
to the end).

i just dont understand why the area calculation is incorrect. am i missing
something else?

please advise

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message