and if i change
Hi Ric,
Thank you for using syncfusion products,
We follow Cartesian co-ordinate system for adding annotations in the Pdf Loaded document,this will start the elementsrender from bottom left position,so we do not have any plan to change this behavior.
Please let me know if you need any further assistance.
Thanks,
Karthik.
But in your samples, if i change the (line 270 of the attached file) new RectangleF(args.Bounds.Right - 18, args.Bounds.Top + 2, 1, 1), to new RectangleF(0,0, 1, 1), it goes to the top left, why is that? | While creating new documents using PdfDocument instance, we convert the absolute positions (from top left) to Cartesian coordinates internally. But this is not the case for manipulating existing documents. While loading a document using PdfLoadedDocument instance, we return the actual value/bounds that has been encoded in the document. So, the coordinates while be referred from bottom left. This is the default behavior of our library. |
Is there a way to add a annotation to a selected text or to a point where i press or long press the mouse? for example i have a long text in a pdf file and want to add a annotation to a specific word or sentence in the middle of the text. how would i accomplish that? | Currently we don’t have support to find the position of the specific word in the text, hence it is not possible to add annotations to it. Whereas this could be accomplished if there is any interactive form fields in the middle of the text, so that we could get the position of that fields and then add annotations to it. Please let us know if you have any other queries. |