add accessor of page width/height and optimal height

Signed-off-by: wenpin.cui <wenpincui224@gmail.com>