Properly calculate offset when not first page.
Add a secure way to retrieve the typewright xml and text.