指定区域参数时 tabula tabula-py 出错

Error in tabula tabula-py when specifying area parameter

在以下代码中指定区域时出现错误:

data = tb.read_pdf(pdf_file, guess=False, stream=True, pandas_options ={'header': None}, encoding="utf-8", multiple_tables =False, area = [136,10,10,10], pages ='1', columns = [124,150,355,425,484,543])

这是我得到的错误:

Exception in thread "main" java.lang.UnsupportedOperationException: Can't add an oblique ruling.

如果我不指定区域也能正常工作。

您似乎没有提供正确的区域坐标。该列表应包含坐标 [top,left,bottom,right].

area (list of float, list of list of float, optional): Portion of the page to analyze(top,left,bottom,right). Default is entire page.

例如:

data = tb.read_pdf(pdf_path, area=[126,149,212,462], pages=2)