xpdf: PDF-to-text conversion using XPDF

Description Usage Arguments Value Author(s) Examples

View source: R/xpdf.r

Description

PDF-to-text conversion using XPDF

Usage

1

Arguments

files

(character) Path to a file, or files on your machine.

...

Further args passed on to the tm package, which does the conversion

Value

A S3 object of class xpdf with slots for meta and data

Author(s)

Scott Chamberlain [email protected]

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
path <- "~/github/sac/scott/pdfs/ChamberlainEtal2013Ecosphere.pdf"
res <- xpdf(files = path)

paths <- c("~/github/sac/scott/pdfs/BarraquandEtal2014peerj.pdf", 
"~/github/sac/scott/pdfs/Chamberlain&Holland2009Ecology.pdf",
"~/github/sac/scott/pdfs/Revell&Chamberlain2014MEE.pdf")
(res <- xpdf(files=paths))
res$data[[3]]

## End(Not run)

ropensci/extractr documentation built on May 27, 2019, 3:32 p.m.