This is a migrated thread and some comments may be shown as answers.

Get point in current page

4 Answers 82 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 26 Aug 2013, 09:11 PM
OK, I've searched through the objects pretty thoroughly, and can't seem to find a solution to this problem.  I am trying to retrieve the point (X Y coordinates) within the current page where a mouse event fires (in this case, mouse up event)

I can get the screen coordinates, and from that the coordinates within the control, but I'm interested in returning the Point within the actual page being clicked on.  Any hints?

4 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 29 Aug 2013, 10:55 AM
Hello James,

You cannot currently achieve this out of the box. We are however implementing CustomPresenters which will expose such an API and will allow you to implement the wanted behavior. The feature will be ready for Q3 2013 or Q1 2014.

I hope this is helpful. Please, do not hesitate to contact us if you have any other questions.

Regards,
Alexander
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Clément
Top achievements
Rank 1
answered on 24 Jul 2014, 01:46 PM
Hello,
The "CustomPresenters" is available ?

Thanks
0
Veronique
Top achievements
Rank 1
answered on 25 Jul 2014, 01:50 PM
+1
This doesn't seem to be in the latest releases of the control.

Will this be available in a release at some point in the near future?
Thanks for your answer.
0
Deyan
Telerik team
answered on 25 Jul 2014, 03:58 PM
Hello,

Thank you for contacting us.

You can take the mouse click coordinates subscribing for PreviewMouseDown event of the PdfViewer's FixedDocumentPresenter. Then using the presenter's GetLocationFromViewPoint method you can take the clicked page and the corresponding clicked location on this page. For more detailed information on how you can achieve that please follow this link to "Save Click Location and GoToDestination" in Telerik's forum.

If you have further questions do not hesitate to contact us again.

Regards,
Deyan
the Telerik team
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
PDFViewer
Asked by
James
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Clément
Top achievements
Rank 1
Veronique
Top achievements
Rank 1
Deyan
Telerik team
Share this question
or