fix #959

Seems that we need to set visible pagecount when really rendering document otherwise it will not take effect. This should fix #959.