Hi Team,
Is this feature can be achieved, can we get the mouse coordinates on pdf?
Code Snippet:
//Creating PageClicked event to find the coordinate of the mouse click over the page in the PDF document
pdfViewer.PageClicked += pdfViewer_PageClicked;
//PageClicked event
void pdfViewer_PageClicked(object sender, Syncfusion.Windows.PdfViewer.PageClickedEventArgs args)
{
}
Note: PageClickedEventArgs contains following Properties
1. PageIndex : Current index of the page in the PDF document being clicked using Mouse
2. Position : Returns the coordinates (in Pixels) of the mouse click over the page in the PDF document
We can convert the pixel coordinate to the document coordinate (i.e. Point) using PdfUnitConvertor class. |