Invoke pdftotext tool to extract text from a PDF document

pdftotext(x, outfile = NULL, first = NULL, last = NULL,
  layout = FALSE, table = FALSE, raw = FALSE, ...)

Arguments

x

Path to PDF

outfile

Optional output file (defaults to <pdfstem.txt>)

first

Optional page to start conversion

last

Optional page to finish conversion

layout, table, raw

pdftotext options (all default FALSE)

...

additional arguments passed to readLines when outfile=FALSE

Value

the return value of the system call or, if outfile has the signalling value of FALSE, the contents of the text file as a character vector.

Details

Run pdftotext -help for details