logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
lidds  
#1 Posted : Wednesday, August 2, 2017 6:33:18 AM(UTC)
lidds

Rank: Newbie

Groups: Registered
Joined: 8/2/2017(UTC)
Posts: 2
United Kingdom
Location: Reading

Is there a way that I can allow the user to zoom to a region on the PDF by selecting an area on the PDF Viewer?

Thanks in advance

Simon
Paul Rayman  
#2 Posted : Wednesday, August 2, 2017 6:41:30 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
I think so.

1. You can calculate the needed zoom factor, based on a selected area and current viewport size
2. Set this factor to the Zoom property of the PdfViewer ( To take effect the SizeMode property must be setted to Zoom)
3. Call ScrollToPoint(left, top) method, where left and top it is a left corner of selected area.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.