tabula.convert_into(filename_final, (filename_zero + '.csv'),
output_format="csv", pages="all")
我该如何将第2页到最后一页进行转换?在第1页到其余页面之间,“区域”会发生变化。
我正在使用Python包装器tabula-py。
提前感谢您!
'2-99999'
的东西。from tabula import convert_into
table_file = r"Table.pdf"
output_csv = r"Op.csv"
#area[] have predefined area for each page from page number 2
for i in range(2, str(len(table_file))):
j = i-2
convert_into(table_file, output_csv, output_format='csv', lattice=False, stream=True, area=area[j], pages=i)