Get coordinates of left bottom corner of an annotation

Is there any way to get the coordinates of left bottom corner of an annotation

i’m currently using this;

  annotManager.addEventListener("annotationChanged", (e, action) => {
    e.forEach(function (el) {
     var { X, Y, Width, Height, PageNumber } = el;         
     var leftBottomX = X;
     var leftBottomY = Y + Height;
    }

}

But this is not correct when document has a document rotation

Is there a proper way to get the coordinates of left bottom corner of an annotation no matter what the document rotation is?

Hi there,

Thank you for reaching out to pdf.js express,

We have a guide on getting PDF coordinates and page coordinates here:

Best Regards,
Kevin Kim