persisting document page number