Page dimensions are now correctly calculated.
Merge pull request #7 from antoniofernandez/page-sizing-fix

Page dimensions are now correctly calculated.