News for hackers. Stuff that matters.
Re:How fast is PDF.js? by angersock on Thursday May 08, 2014 @12:35PM (#7716172)
Minor performance tip: you can disable the creation of DOM elements backing text and whatnot in PDF.js; this allows for faster rendering on some browsers.

You lose easy search, but it can make your life a lot easier if you don't need them.

Re:How fast is PDF.js? by windsurfer on Thursday May 08, 2014 @01:31PM (#7716459)
You also lose text select (and thus copy+paste)
Re:How fast is PDF.js? by enlashok on Thursday May 08, 2014 @07:31PM (#7718367)
But you can approximately restore that if you use Project Naptha as well... urgh... please nobody do this.
Re:How fast is PDF.js? by bthorben on Thursday May 08, 2014 @03:22PM (#7717122)
We realize that the text layer is sometimes a performance problem. We pushed already a lot of improvements to it and there is more too come.
Re:How fast is PDF.js? by angersock on Thursday May 08, 2014 @05:15PM (#7717755)
Not your all's fault...the nature of the beast is that a PDF, in the pathological case, could result in thousands and thousands of individually-styled DOM elements per page, right?

Not much to be done in that case.

Re:How fast is PDF.js? by sp332 on Thursday May 08, 2014 @01:51PM (#7716595)
Is it easy to do that?
Re:How fast is PDF.js? by async5 on Thursday May 08, 2014 @02:29PM (#7716840)
Yes, you can build you own personalized extension for Firefox, Chrome or Opera from PDF.js source code, which will disable text layer. (see also #textLayer=off feature at https://github.com/mozilla/pdf.js/wiki/Debugging-pdf.js#url-...)
Re:How fast is PDF.js? by angersock on Thursday May 08, 2014 @02:23PM (#7716809)
Memory suggests yes (I think it's just a render param you pass in or something?) but I'll need to check old code tonight to give you a definitive answer.