

I have thought about different ways to do that. Both iOS and android have the ability to run scripts upon certain triggers such as joining a certain Wi-Fi network. (On iOS the Shortcuts app can do this). I’ve thought about using that to post to the already running mqtt broker and using that to update my system. Or I’ve thought about just snooping all the nearby Wi-Fi clients to my server, and if it detects my phone, do something similar.
Or I suppose you could turn it around, before the system decides it has an intruder, check to see if your phone is in fact at home via some method. Either scanning for it on Wi-Fi or some other way.


I’ve done It before. It’s just highly dependent on the PDF. What software made the pdf? What format was it in prior to being a PDF? Is it a scanned image of text? Or does it have actual text.
Another option, that might work better, might not, though it would be more work, is use something like Microsoft Word first. Word can open a PDF and “convert” it to Word format. After that, you spend a lot of time fixing all the formatting which will probably be fucked up.
And then, once you have a nice clean Word doc, convert that to epub.