Yomichan for pdf

I wanted to try reading some of the free tadoku graded readers, but apparently yomichan does not work on pdf files for browser security related reasons. I assumed there would be some program with similar functionality for pdf files as they have selectable text, but so far I have not been able to find any. Does anyone know of some way to read pdf files with dictionary popup support like yomichan?

Don’t quote me on this, but you might be able to use the Calibre ebook reader to convert pdfs to epubs

I also converted the pdf to jpeg and then ran Mokuro on it. See this thread for what is Mokuro / how to run it

If you use this method:

Copying the content of the pdf file will appear on web browser, because of the clipboard watcher, then you can check with yomichan

I guess this is the easiest way.