Click here to Skip to main content
15,071,430 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good Morning Everybody...

Question:How to highlight pdf text when the text box focused?

Description:In VB.Net form I have opened the pdf page through web browser control.The form contains textbox controls which holds the text in pdf.(For Eg,The pdf contains Advertisement means the headline,caption,author will be showned in textboxes respectively.it will be retrieved from the xml content related to pdf.)Now my problem is when i focus Author textbox,the author name will need to be focus in pdf.how can we do it?

Thanks in advance..
Posted

1 solution

At this point, acrobat is showing the pdf and you have no control in code. Even though you have a web browser control, you will find that if you try to parse the DOM, it does not contain the PDF, just a PDF viewer. You need to buy a dedicated PDF control to do this.
   
Comments
jai_mca 25-Aug-12 7:38am
   
dear Graus,
i have seperate textbox control in the form .when i focus the textbox,the content in textbox will need to highlight the content in pdf..than-t's my requirement
Christian Graus 25-Aug-12 7:40am
   
Read my answer again.
jai_mca 25-Aug-12 7:52am
   
k graus...thanks for ur suggesion..but i am not clear about the control.that's y am asking
Christian Graus 25-Aug-12 7:54am
   
A PDF is rendered in your browser by acrobat. The web browser control is essentially IE. It's launching acrobat. Therefore, unless acrobat has javascript scripting, which I doubt, what you want is not possible. It sounds like you're using the web browser control as a window to embed a PDF viewer. You'd need to buy a richer PDF control to get the things you're looking for.
jai_mca 27-Aug-12 0:25am
   
thanks graus..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900