Take a look at TextEdit's MultiplePageView. You can insert a formfeed (\f) character into it and it will cause a page break.