pdftotext: Invoke pdftotext tool to extract text from a PDF document

Description Usage Arguments Details Value

View source: R/pdftotext.R

Description

Invoke pdftotext tool to extract text from a PDF document

Usage

1
2
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

Details

Run pdftotext -help for details

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.


jefferis/paperutils documentation built on Sept. 20, 2019, 10:20 a.m.