Hey, seeing the lack of response from on this issue from obsidian both here and on discord, (it might be they just have bigger issues they would rather fix), I think the solution is to make a plugin.
Finding pdf.js can only be done by monkey patching/proxying your own javascript into obsidian after it has loaded. But after trying that route for a bit, and finding out they have made everything hard to adjust outside their API (probably due to security), I’ve found that it would take too much time to patch their software and it’s easier to bundle another version of pdf.js myself.
I have already got the bundling to work, but it’s in no way user friendly at this point, but it works as a proof of concept. When I have time (hopefully in the coming weeks), I will make a plugin which allows you to tweak the settings given to pdf.js yourself which then ships with its own version of pdf.js.
I don’t think they are going to fix this issue, even if the fix itself would be very simple for them to make, but hard for others because they minify and bundle everything into their executable. At this point I’ve read a lot of their emitted code, and it looks like it’s just a question of changing some min/max parameters and a resolution estimation function they made which I think lowballs the needed quality.