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

Page dimensions are now correctly calculated.