Search restriction in iframe only

Is there a way to limit the browser CTRL+ Fsearch only inside the content iframe?

The problem here is that I have iframeone that displays a PDF file created by pdfium. Now, when I try to do a search using CTRL+ F, it also highlights content other than the one present inside the PDF. I know this is the expected behavior of the browser, but is there only a way to search iframe? I can develop my own search function, and not use a browser, but it works very well when the content in the iframe is HTML not in case of pdfium (and also pdfjs is not an option for me).

Are there any suggestions to limit the search in iframe or in search through pdfium?

HTML PAGE Example

+4

Source: https://habr.com/ru/post/1695144/


All Articles