pypdflite/session.py
def _add_page(self, text):
        """ Helper function for PDFText, to have the document
            add a page, and retry adding a large block of
            text that would otherwise have been to long for the
            page.

        """
        save_cursor = self.parent.document.page.cursor.copy()
        save_cursor.x_reset()
        save_cursor.y_reset()
        self.parent.document.add_page()
        self.parent.document.set_cursor(save_cursor)
        self.parent.document.add_text(text)
def _add_page(self, text):
        save_cursor = self.parent.document.page.cursor.copy()
        save_cursor.x_reset()
        save_cursor.y_reset()
        self.parent.document.add_page()
        self.parent.document.set_cursor(save_cursor)
        self.parent.document.add_text(text)
def _add_page ( self , text ) : save_cursor = self . parent . document . page . cursor . copy ( ) save_cursor . x_reset ( ) save_cursor . y_reset ( ) self . parent . document . add_page ( ) self . parent . document . set_cursor ( save_cursor ) self . parent . document . add_text ( text )
Helper function for PDFText, to have the document
            add a page, and retry adding a large block of
            text that would otherwise have been to long for the
            page.
Helper function for PDFText to have the document add a page and retry adding a large block of text that would otherwise have been to long for the page .