Improve Document Print Functionality
It would be nice if the print functionality was improved in the following ways:
- I should be able to print a version of a document instead of (or in addition to) a file.
- Currently, Mayan is converting each page into an image and pasting all the images, one after another, on a HTML page. I think a better user experience would be for Mayan to instead export a PDF for the browser to print. The user could then select the page range they wish to print inside the print dialog.
- Mayan could use a tool such as print.js to automatically open the browser print dialog.
- Permissions should be exposed for printing. Ties back to #138
I think most of the underlying functionality already exists within Mayan, it would just need to be glued together. I'm imagining that printing a version would involve initiating an export in the background, waiting for it to complete, and presenting the print dialog to the user once it is finished.