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

Notification

Icon
Error

New Topic Post Reply
Options
Go to last post Go to first unread
msg  
#1 Posted : Monday, October 7, 2019 12:27:38 PM(UTC)
Quote
msg

Rank: Newbie

Groups: Registered
Joined: 5/22/2017(UTC)
Posts: 3

Thanks: 1 times
Hi,
When searching a PDf document using the pdfToolStripSearch component sometime the highlighted results is too close to the top of the page.
Is there a way to scroll the page down a few pixels to make the highlight more visible?

wsdl.png (334kb) downloaded 13 time(s).
Paul Rayman  
#2 Posted : Friday, October 11, 2019 6:59:35 AM(UTC)
Quote
Paul Rayman

Rank: Administration

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

Thanks: 3 times
Was thanked: 110 time(s) in 107 post(s)
Hi,

I see no other way to do this than to change the source code.
The source code is available here:
https://github.com/Patag...rs/PdfToolStripSearch.cs

You need modify ScrollToRecord method

Replace a call of
PdfViewer.ScrollToChar(ft.CharIndex);
with a call to
PdfViewer.ScrollToPoint(...);

Edited by user Friday, October 11, 2019 7:03:36 AM(UTC)  | Reason: Not specified

thanks 1 user thanked Paul Rayman for this useful post.
msg on 10/11/2019(UTC)
Paul Rayman  
#3 Posted : Saturday, October 12, 2019 9:20:52 AM(UTC)
Quote
Paul Rayman

Rank: Administration

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

Thanks: 3 times
Was thanked: 110 time(s) in 107 post(s)
We will change this behavior in the next release.
Paul Rayman  
#4 Posted : Sunday, October 13, 2019 3:53:47 AM(UTC)
Quote
Paul Rayman

Rank: Administration

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

Thanks: 3 times
Was thanked: 110 time(s) in 107 post(s)
Hi,

Please try the updated search tool in the latest version.
https://forum.patagames....n-Oct--13--2019#post1824
Quick Reply Show Quick Reply
Users browsing this topic
New Topic Post Reply
Forum Jump  
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.