Add missing setters for pageSizeW and pageSizeH

Replacement pull request into develop branch.

Fixes issue #336 with documentation and tests.