本文整理汇总了Python中pdfminer.layout.LAParams.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python LAParams.__init__方法的具体用法?Python LAParams.__init__怎么用?Python LAParams.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pdfminer.layout.LAParams
的用法示例。
在下文中一共展示了LAParams.__init__方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from pdfminer.layout import LAParams [as 别名]
# 或者: from pdfminer.layout.LAParams import __init__ [as 别名]
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
示例2: __init__
# 需要导入模块: from pdfminer.layout import LAParams [as 别名]
# 或者: from pdfminer.layout.LAParams import __init__ [as 别名]
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)