Hi,
We are using Aspose.Pdf.Kit for reading and manipulating the fields present on the form. I am trying to add a rectangle on top of each controls present on the PDF form so that whenever user clicks on any control a popup window appears. I am achieving this functionality by using the below code.
editor.CreateJavaScriptLink("app.alert('welcome to aspose!"');", rect, 1, color);
The behavior of the rectangle is not same for all the PDF forms. I tried with two PDF forms in one all alignment are correct and in another all the rectangles are misaligned. I have attached the PDFs that I have used. The x and y coordinates are not correct.
Could you please tell me what is the difference between these two PDFs? And also what is the cause for misalignment?
Thanks a lot.