Skip to content

Instantly share code, notes, and snippets.

View withetu's full-sized avatar
🎯
Focusing

Sandip Paul withetu

🎯
Focusing
View GitHub Profile
@withetu
withetu / PDF-2-text-or-CSV.r
Created May 24, 2019 11:01 — forked from benmarwick/PDF-2-text-or-CSV.r
Convert PDFs to text files or CSV files (DfR format) with R
# Here are a few methods for getting text from PDF files. Do read through
# the instructions carefully! NOte that this code is written for Windows 7,
# slight adjustments may be needed for other OSs
# Tell R what folder contains your 1000s of PDFs
dest <- "G:/somehere/with/many/PDFs"
# make a vector of PDF file names
myfiles <- list.files(path = dest, pattern = "pdf", full.names = TRUE)