@staticmethod
    def extract_menu_number(menu_text_line):
        menu_number = 0
        matcher = KultTexTractor.match_menu_line(menu_text_line)
        if matcher:
            menu_number = matcher.group(1)
        return menu_number

    @staticmethod
    def get_next_line(line, text_lines):
        counter = 0
        next_line = ''

        while not next_line:
            counter = counter + 1
            next_line = text_lines[text_lines.index(line) + counter].strip()
            if KultTexTractor.match_menu_line(next_line):
                next_line = ''

            if counter > 2:
                break
        return next_line


# starter method
if __name__ == "__main__":
    import scraper
    pdf = scraper.get_pdf()
    current_menu = KultTexTractor.get_menu_from_pdf(pdf)
    print(current_menu)
def create_menu():
    print("Creating new menu object")
    pdf = scraper.get_pdf()
    global current_menu
    current_menu = KultTexTractor.get_menu_from_pdf(pdf)