Giorgio Maone wrote:Tom T. wrote:JOC, is it possible to create a JS-based pdf reader for the desktop, in such a fashion as you describe, and would it then be safer than (IIUC) all existing C/C++ readers?
Yes, it's certainly possible by reusing the existend pdf.js rendering code and run it from a single-purpose browser instance, either Gecko or Webkit based.
Ahh, so it can't be a stand-alone. Seems more trouble than it's worth.
Giorgio Maone wrote:Tom T. wrote:Any ways to enhance the safety of of an existing lightweight reader like Foxit, with JS and all other active content already disabled, other than enabling DEP/NoExecute bit (done years ago)?
You could run it inside a sandbox, I guess.
Yes, all Web browsing is sandboxed, and while I don't ordinarily open pdf's from untrusted or unknown sources, Sandboxie can do that, too. I have done that for Word docs from non-tech users, just because they have no idea how many malwares their machine has.
Sounds like I've done the most possible, thanks.
therube wrote:Foxit has long passed the "very lightweight" stage. It is not a pig, like Adobe, but it is no longer that (essentially) single .exe program. (Looks like Foxit 2.2 was 5 MB, & Foxit 4.3 was 11 MB. I believe that was the last of the single .exe versions. Current, v5.1, weighs in around 35 MB, spread over a multiple file/directory tree. I've never used its browser plugin myself.)
I use an
older version, 2.0 that has *no* native JS support. -- the 4 MB one.
When I open a pdf with interactive fields, it says a component is missing (the JS parser, undoubtedly), and should I let it go to the Web and get it? I say no, and the doc opens fine, and the interactive fields still work.
Sorry to see that they've gone the bloatware path, like everything else. (sigh)
What is the alleged "benefit" of the 35-MB one?
I've never needed the browser plugin. I get to a Web pdf, click it, dialog box: Open with Foxit? Save to disk? Cancel?
Opens just fine.
So what's the "advantage" of the browser plug-in?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.28) Gecko/20120306 Firefox/3.6.28