@BrendanEich Are y’all still using pdf.js? I realized that the wasm plans for an alternate canvas backend for Pathfinder might go quite well with it…
-
-
Replying to @BrendanEich @fmarier
The idea here is to provide a drop-in replacement for <canvas>, via Pathfinder compiled to wasm, so that you can get better performance.
1 reply 0 retweets 2 likes -
It’s potentially possible to do this with PDFium too, but PDFium may be more tightly coupled to Skia (I’m not sure). pdf.js makes it easy though, because it’s written to the standard canvas interface.
1 reply 0 retweets 0 likes -
I guess the vector renderer reasonably well abstracted in PDFium too: https://github.com/PDFium/PDFium/tree/ee6088e63bfdee81153ef1eeec9b90e42c87064f/core/src/fxge … So yeah, regardless of whether you’re using pdf.js for the long haul or switching to PDFium, it should be possible to use Pathfinder for your PDF rendering.
1 reply 0 retweets 1 like
To answer your question, I think: I would like Pathfinder to be Gecko's canvas implementation, so pdf.js in Gecko would use Pathfinder automatically there. Chromium based browsers would use the wasm version.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.