gs: PDF-to-text conversion using Ghostscript

Description Usage Arguments Value Author(s) Examples

View source: R/gs.r

Description

Uses a local tool called xpdf at http://www.ghostscript.com/.

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
## Not run: 
path <- "~/github/sac/scott/pdfs/ChamberlainEtal2013Ecosphere.pdf"
gs(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 <- gs(files=paths)

## End(Not run)

ropensci/extractr documentation built on May 16, 2018, 6:59 a.m.