PDF letter format and a couple of bugs

* explicitly set PDF to be rendered in the 'letter' format;
* fixed problem with header messing up the styles;
* fixed minor problem with thumbnails starting over the buttom page
edge.