add accessor of page width/height and optimal height

Signed-off-by: wenpin.cui <wenpincui224@gmail.com>
Merge pull request #3 from wenpincui/master

add accessor of page width/height and optimal height