Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
def get_page_count(input_filepath):
    return backend.get_page_count(input_filepath)