#NEWLINE# def receive_layout( self , ltpage ) : #NEWLINE# #INDENT# def render( item ) : #NEWLINE# #INDENT# if isinstance ( item , LTContainer ) : #NEWLINE# #INDENT# for child in item : #NEWLINE# #INDENT# render ( child ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( item , LTText ) : #NEWLINE# #INDENT# self . write_text ( item . get_text ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# if isinstance ( item , LTTextBox ) : #NEWLINE# #INDENT# self . write_text ( '\n' ) #NEWLINE# #UNINDENT# #UNINDENT# if self . showpageno : #NEWLINE# #INDENT# self . write_text ( ( 'Page %s\n' % ltpage . pageid ) ) #NEWLINE# #UNINDENT# render ( ltpage ) #NEWLINE# self . write_text ( '\x0c' ) #NEWLINE# return