Spire.PDFViewer is a powerful PDF Viewer component for .NET. It allows developers to load PDF document from stream, file and byte array.

Tue Mar 26, 2024 5:16 pm

We have purchased the Spire.PDFViewer and are getting nowhere.
I am trying to perform a search using the PDFViewer (control PdfDocumentViewer).
To do this, I have dragged the PdfDocumentViewer control, a text box and two buttons onto the form. Clicking on Button1 should highlight the text in the PDF AND jump to the page where it was found.
If you click on Button2, the program should jump to the next page with the text found.


vb.net with visual studio 2022, Spire.PDFViewer (7.12)
Private Sub cmdSuche_Click(sender As Object, e As EventArgs) Handles cmdSuche.Click
PdfDocumentViewer1.SearchText(txtSuche.Text, Color.FromArgb(80, Color.Yellow), true)
End Sub

How could this be implemented?

robertloll
 
Posts: 1
Joined: Tue Mar 26, 2024 2:05 pm

Wed Mar 27, 2024 6:40 am

Hello,

Thanks for your inquiry.
Sorry, we currently do not support redirecting to the page where the keyword is located. I have logged your needs to our update list with ticket SPIREPDFVIEWER-589. Our development team will further investigate how to implement them. If there is any progress, I will notify you as soon as possible.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 203
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.PDFViewer