Added more options depending on which item user has to generate.
New function to render modified HTML into pdf.
If file doesn't exist a 404 error is raised.
Eliminated not used module and added some needed.