Issue #995 (paging hopefully done)

There's still a slight issue that the initial rows of the document
will be skipped if blank, but it is probably inconsequential.