Try PDF.JS
Use JS redirect.