Need c# code to view selected pdf page as a tooltip in thumbnail view

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
Nisha
User
Posts: 43
Joined: Tue May 22, 2018 9:31 am

Need c# code to view selected pdf page as a tooltip in thumbnail view

Post by Nisha »

Hello Team,

We have developed a c# application in which we have a thumbnail view. In this view we show rows of PDF page as thumbnails (Screenshot shown for your reference). Our requirement is when the user hovers the mouse over a page in thumbnail view we'd like to be able to see a "tooltip" style hover box on the screen with a larger version of that page. Because the thumbnail view is small, it's hard to see the individual pages. Hence is there any code that could detect that the mouse is over a page thumbnail within the PDF-X Change Editor then that code can further be used to export the single page to a TIF of certain size, which can then be displayed in another form window so that the user can see that page in more detail.
Attachments
ThumbnailView.PNG
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Need c# code to view selected pdf page as a tooltip in thumbnail view

Post by Sasha - Tracker Dev Team »

Hello Nisha,

First you will have to implement a custom event target for the Thumbnails View:
https://gist.github.com/Polaringu/f3de7 ... 65695e364c
Then you will have to listen to the mouse move event and do a HitTest to see where the mouse is:
https://sdkhelp.pdf-xchange.com/vi ... st_HitTest

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply