optional: render pdf with mozilla pdf.js or browser/browser-plugin