(Issue #3809) Fix margin calculation; only process pages as required
(Issue #3809) clean up code
(Issue #3809) add note to comment
Merge pull request #3809 from sathomas/issue3809

PDF upload preview chops off first page on mobile