#NEWLINE# def save( document , file , filename , options = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# app . updateInfo ( inf1 = _ ( 'PDF generation.' ) , inf2 = _ ( 'Start document composing' ) , inf3 = 3 ) #NEWLINE# saver = PDFGenSaver ( file , filename , document , options ) #NEWLINE# saver . Save ( ) #NEWLINE# saver . close ( ) #NEWLINE# app . updateInfo ( inf2 = _ ( 'Document generation is finished' ) , inf3 = 100 )