I just tested your code and it worked fine for me.
I give you a simpler way that you may like more.
library(pdftools)
PDF <- pdf_text("C:/mydf.pdf")
# first page textcat(PDF[1])
# all page textcat(PDF)
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more