Friday, October 18, 2013

000007

Mozilla Plug-in Updated to the MuPDF 1.3 release

     Once again, I've updated  the code on my 'moz' branch, this time to the 1.3 tagged revision, only this time it means I'm up-to-date with the latest( for now) release, and only behind the most recent commits.This means it's high time I get off my lazy but, and get started on my own improved plug-in.
    As usual, I kept out of this updates improvements to features I don't support, and new features like progressive uploading and cURL support. The former means a total re-write to the plug-in code( and will eventually make it into my own plug-in), and the latter is unneeded, as the NPAPI of the plug-in handles URLs on it's own( though improvements are needed). On the other hand I updated the pug-in related rule in the makefile, so that the plug-in specific code gets built in it's own sub-directory.
     While making this latest update( specifically, while reviewing the exception handling changes commit), I realized that I had done a lousy job of handling password protected encrypted PDF files in my initial commit for the branch. I decided to leave that out of my plug-in update, as this specific update wasn't going t be used in the code as was, and fixing the password handling was separate from the actual plug-in update. I then updated the password handling in a new commit, applying the "exception handling changes" to it. Basically, I made it so that the plug-in returns an error if a password is needed( as the plug-in does not support password protected PDFs). Also, while at it, I made sure the plug-in returned on error( fixing another oversight of my initial commit).
    Code of the latest commit is here.

No comments: