Moved pdf generation to bean from servlet.
Removed servlets
Fixed verso rotation.