Comment on The Firefox browser now has a built-in page translator that works even without the Internet
stevedidWHAT@lemmy.world 1 year agoVery interesting points, does OCR work with PDF? Might be a possible temporary work around to run the pdf through ocr and pipe back into Firefox (maybe by running it on a local version of the .html and just directly injecting the pdf back in? Not sure, could be a fun project!
marius851000@lemmy.mariusdavid.fr 1 year ago
Well… I once tried to just copy the pdf into a .txt file that I then opened into firefox, but it seems to not translate .txt, thought it may be cause they are not HTML.
stevedidWHAT@lemmy.world 1 year ago
Yeah sadly PDF content is practically baked in like an image. If you want to learn more you can search for the breakdown of pdf structure at the infosec institute website, remember there being an article that was pretty informative. I’ll see if I can find it later today and update this