def get_page_count(input_filepath): if office_converter: try: office_converter.convert(input_filepath) if office_converter.exists: input_filepath = office_converter.output_filepath except OfficeConversionError: raise UnknownFileFormat('office converter exception') return backend.get_page_count(input_filepath)
def get_page_count(input_filepath): return backend.get_page_count(input_filepath)