Sam E

Sam E

  • 1.8k
  • 91
  • 873

How to highlighting the multiple words in PDF

Jan 14 2020 4:44 PM
Hello Members,
 
Hope you are doing good today!!
 
We have a preview of PDF document, I want to search some word..
At that time it needs to highlite the words, It should work when we are giving the multiple words also separated by ,
 
<body>
<form id="form1" runat="server">
<iframe id="myFrame" style="display:none" width="600" height="300"></iframe>
<input type="button" value="Submit" onclick = "openPdf()"/>
<script type="text/javascript">
function openPdf()
{
var omyFrame = document.getElementById("myFrame");
omyFrame.style.display="block";
omyFrame.src = "http://www.africau.edu/images/default/sample.pdf";
}
</script>
<div>
<asp:TextBox ID="searchTxt"
runat="server"
Width="300px"
Height="25px"
Font-Size="Medium"></asp:TextBox>
<input type="button" value="Search" onclick="return searchPrompt('search text', 'dvWord', false, true, 'red', 'orange')" />
</div>
</form>
 
 

Answers (1)