Invoke pdftotext tool to extract text from a PDF document
pdftotext(x, outfile = NULL, first = NULL, last = NULL, layout = FALSE, table = FALSE, raw = FALSE, ...)
| 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 |
| ... | additional arguments passed to |
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.
Run pdftotext -help for details