'End the current page, ensuring that any further content is displayed
on a new page.'

def end_page(self):

    if self.current_para.has_text():
        self.current_para.append_to(self.current_block)
        self.current_para = Paragraph()
    if (self.current_block.has_text() or self.current_block.must_append):
        self.current_block.append_to(self.current_page)
        self.current_block = self.book.create_text_block()
    if self.current_page.has_text():
        self.book.append(self.current_page)
        self.current_page = self.book.create_page()
