def __init__(self, line_overlap=0.5, header_perc=7.5, footer_perc=7.5): LAParams.__init__(self, line_overlap=line_overlap, char_margin=line_overlap, line_margin=line_overlap, word_margin=line_overlap, boxes_flow=line_overlap, detect_vertical=False, all_texts=False) self.header_perc = header_perc # Fraction of the header (% of the page) self.footer_perc = footer_perc # Fraction of the footer (% of the page) return
def __init__(self): # 0.25: relative overlap between lines LAParams.__init__(self, line_overlap=0.25, line_margin=0.1, boxes_flow=0, char_margin=2)