for a project I'm working on I have extracted certain sentences from a pdf (uploaded by a user) and I now embedded this pdf inside my page:
<iframe seamless
id="PDFdisplay"
src="pdfURL"
type="application/pdf"
height="1000px"
width="100%"></iframe>
Now when I press CTRL-F and enter one of the sentences I extracted, it does find this sentence back in the pdf (it gets selected) but it does not jump towards this section of the HTML page like it normally does (and like I want it to). I presume it has something to do with the iframe being a different 'window' but unsure. Does anyone know of a way I can search inside the iframe (using js/ts) or to embed the pdf inside the page in a way such that the page will jump to the results of the CTRL-F event (also enabled using js/ts)?
Thanks in advance!