xpdf: PDF-to-text conversion using XPDF

View source: R/xpdf.r

xpdfR Documentation

PDF-to-text conversion using XPDF

Description

PDF-to-text conversion using XPDF

Usage

xpdf(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"
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 18, 2022, 9:56 a.m.