Add support for other paper sizes than A4

Add handling of the PageSize option, so other page sizes can be supported.
Currently only tested with Letter, and we already know A4 works.