I guess one possible setup would be pdf.js running on server-side and having its output captured. One advantage of this, from what I can see, is that there would probably be fewer external dependencies than this setup.
It would be definitely interesting in that way, but in that case it may not be worth it to rewrite everything in JS.