I’m using a script to extract tables from pdf to excel:
import tabula.io as tb
import pandas as pd
def toPDFPag2(pathPDF, nPage, pathSalidaXlsx):
table = tb.read_pdf(pathPDF, pages=nPage)
df = pd.concat(table)
df.to_excel(pathSalidaXlsx, sheet_name='Sheet 1')
However, when I try the Invoke Method Activity it gives this error: BC39615 Cannot infer an element type because more than one type is possible.
These are the variables:
I don’t know why it thinks it should be of type IEnumerable Object instead of String, Integer, String.
How do I fix this?