Open mfreyrie opened 4 years ago
The example pdf you post works fine for me, I don't get an error:
txt <- pdf_text("~/Downloads/12.pdf")
cat(txt)
Are you sure you aren't accidentally feeding non-pdf files? What does your files
variable contain?
Hi, I've been struggling with the import of multiple pdfs. I need to create a corpus, but for some reason I continue getting the same error while using pdftools as a method to extract the texts using the tm package. It works if I try to import just one pdf however. This is what I do:
This is what I get
My sessioninfo
This is an example of the PDFs I'm using. It's this entire batch that doesn't work, also from different sources. 12.pdf