#NEWLINE# def get_page_count( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . soffice_file = self . to_pdf ( ) #NEWLINE# #UNINDENT# except InvalidOfficeFormat as exception : #NEWLINE# #INDENT# logger . debug ( 'Is not an office format document; %s' , exception )