Generate HTML pages for PDF-like content

The changed back end for the renewed preview processor which has a pull request in 3akai-ux. The latest commit has a warning to it in its message about incompatibility. At the time I made the commit it was incompatible now how ever it is not.