Get and convert PDFs to text
Source
https://stackoverflow.com/questions/71064939/how-to-check-if-pdf-is-scanned-image-or-contains-text-in-r
Details
If PDF file is not in "readable" format, function attempts to apply optical character recognition (OCR) to convert these to text.
Examples
if (FALSE) { # \dontrun{
convert_pdf(path = getwd())
} # }