News for hackers. Stuff that matters.
Re:I ported LaTeX to Javascript by Sephr on Saturday January 19, 2013 @10:57PM (#5085947)
data: URIs are deprecated for generating content. Use object URLs and Blobs (https://developer.mozilla.org/en-US/docs/DOM/Blob). If you want to force saving the file to a disk use <a download="[filename]">
Re:I ported LaTeX to Javascript by gmac on Sunday January 20, 2013 @11:37AM (#5087312)
Although, annoyingly, data: URIs are your only option in Safari (including the latest version), and they also happen to crash the PDF viewer. Safari does have createObjectURL, but then doesn't understand the URL it creates!

Just as annoyingly, IE10 has createObjectURL too, but only allows the created URLs to be used for <img>, <audio> and <video>. To save a blob, you have to use something ms-prefixed instead, and this doesn't allow inline PDF viewing.

Re:I ported LaTeX to Javascript by rb12345 on Monday January 21, 2013 @08:12AM (#5091302)
I suppose that pdf.js could be used for inline PDF viewing, but at the moment the Firefox 18.0 version idles at ~20% CPU.
Re:I ported LaTeX to Javascript by no_more_death on Saturday January 19, 2013 @11:59PM (#5086049)
Yeah. Interestingly I got all the way to the download with Chrome 25 Beta (for Android) but then it couldn't handle the data URI.