#NEWLINE# def test( ) : #NEWLINE# #INDENT# doc = Document ( ) #NEWLINE# section = Section ( 'Multirow Test' ) #NEWLINE# figure = Figure ( ) #NEWLINE# image_filename = os . path . join ( os . path . dirname ( __file__ ) , '../examples/kitten.jpg' ) #NEWLINE# figure . add_image ( image_filename ) #NEWLINE# figure . add_caption ( 'Whoooo an imagage of a pdf' ) #NEWLINE# section . append ( figure ) #NEWLINE# doc . append ( figure ) #NEWLINE# doc . generate_pdf ( )