rdar://88457582 Right now, find-in-page can only search for the rendered portion. Few notes: - We can register a custom DefaultExternalServices that can update the find count by parent.postMessage(..., "*") - We can use PDFDocument::postMessageToIframe to notify that find state has changed, Firefox does something similar: https://searchfox.org/mozilla-central/rev/43ba67391e71c57a14420e554e9d381543292611/toolkit/components/pdfjs/content/web/viewer.js#14173-14207
(and all the code for find-in-page is in FindController.cpp)