Added page height detection in rasterizer.