gs: PDF-to-text conversion using Ghostscript

View source: R/gs.r

gsR Documentation

PDF-to-text conversion using Ghostscript

Description

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

Usage

gs(files = NULL, ...)

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 myrmecocystus@gmail.com

Examples

## 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)

sckott/extractr documentation built on May 20, 2022, 1:12 p.m.