Use proper page sizes

This also has the benefit of working on non-text content models.

Bug: 70919
Change-Id: I43affae2265f37bfc13baa52dca31e64e96b6843