Hello,
.
I am receiving error while executing python script from uiPath. this is because of df = tb.read_pdf(filePath, pages = [1]). please find the below sample code.
error is at line df = tb.read_pdf(filePath, pages = [1])
import os
#import re
#import numpy as np
import sys
def get_pdf_table_list(filePath):
df = [*]
#get no of Page from pdf
pdf = pypdf.PdfFileReader(open(filePath,‘rb’))
n=pdf.getNumPages()
ctypes.windll.user32.MessageBoxW(0, str(filePath), “DATA”, 3)
**df = tb.read_pdf(filePath, pages = [1])**
print (df)