I'm trying to convert a pdf to txt using pdftotxt. Keep getting an error. Would appreciate help:
dest <- getwd()
# make a vector of PDF file names
myfiles <- list.files(path = dest, pattern = "pdf", full.names = TRUE)
lapply(myfiles, function(i) system(paste('"C:/Users/Karan Tibrewal/Downloads/xpdfbin-win-3.04.zip/xpdfbin-win-3.04/bin32/pdftotxt.exe"',
paste0('"', i, '"')), wait = FALSE) )
I get this warning :
Warning message: running command '"C:/Users/Karan Tibrewal/Downloads/xpdfbin-win-3.04.zip/xpdfbin-win-3.04/bin64/pdftotxt.exe" "C:/Users/Karan Tibrewal/Documents/cem/12_13.pdf"' had status 127
I can't find the txt file. Whats wrong?