Highlight and scroll to a text in a pdf file

Discussions about PDF management.
Post Reply
pdftest
Posts: 7
Joined: Wed Apr 24, 2013 6:17 pm

Highlight and scroll to a text in a pdf file

Post by pdftest » Tue May 14, 2013 7:56 pm

We would like to search a text in a page and automatically scroll to the text. Is there a way to do it with through GdViewer for PDF Files? We know that we have the GdViewer1.PdfSearchText(“Text”, 1, FALSE); function and not sure it supports the automatically scrolling functionality to the text we are searching.

Code7
Posts: 2
Joined: Thu Apr 03, 2014 2:50 pm

Re: Highlight and scroll to a text in a pdf file

Post by Code7 » Thu Apr 03, 2014 2:59 pm

Did you ever get a response to your question? If so what was the solution?

Greatly appreciated.

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Highlight and scroll to a text in a pdf file

Post by SamiKharma » Mon Apr 14, 2014 11:54 am

Hi,

No it does not. That being said, there exists an overload of the function that returns the coordinates of the text on the document.
You can use those coordinates, along with the Vertical and Horizontal Scroll Min and Max values, as well as the document width and height to create your own function to do that.
If you would like to see it as an option in the function, you can ask for it as feature request here:
viewforum.php?f=28

Best,
Sami

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest