How to get away with error "no lines available in input"?

109 Views Asked by At

I am converting pdf to data frame using extract_table function of tabulizer package but keeps on getting error of no lines available. I ran the code on 3 pdf files. I ran perfectly for first pdf but gave error on remaining 2 files.

agri_table <- extract_tables("kp_2018-19.pdf",
                             output = "data.frame",
                             pages = c(1), 
                             area = list(
                               c(172.1,77.5,693,536)
                             ),
                             guess = FALSE
                             
)

The error occur in first line of code. Please help.

0

There are 0 best solutions below