Python UiPath , tabula pdf



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’))
ctypes.windll.user32.MessageBoxW(0, str(filePath), “DATA”, 3)

**df = tb.read_pdf(filePath, pages = [1])**
print (df)

Were you able to run the script individually?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.