I’m trying to implement a pdf digital signature component for a react-native app.
I am using react-native-pdf
for rendering the pdf on the screen and react-native-draggable
for dragging the signature on top of the pdf view.
With react-native-draggable
I can get the position of the signature on the screen but not related to the position on the pdf document.
Is there a way I can get/calculate the vertical position on the pdf?
I have to take into account different screen sizes, different pdf sizes, and different and variable margins. It looks more or less like this Refer to this image
Any formula/algorithm you can point as help is appreciated.