Skip to content

Instantly share code, notes, and snippets.

View mbgalloway's full-sized avatar

Mitchell Galloway mbgalloway

View GitHub Profile
@mbgalloway
mbgalloway / PDF-2-text-or-CSV.r
Last active November 6, 2017 20:12 — 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
files <- list.files(path = dest, pattern = "pdf", full.names = TRUE)