pdf_to_text: Converts a PDF file to text (wraps a call to Poppler's...

Description Usage Arguments Value

Description

Converts a PDF file to text (wraps a call to Poppler's pdftotext function)

Usage

1
2
pdf_to_text(file, new_file = NULL, start_pg = NULL, end_pg = NULL,
  raw = FALSE, return_text = FALSE)

Arguments

file

Path to file

new_file

Path to file where to save converted text (not used if return_text = TRUE)

start_pg

Page where conversion should start (defaults to NULL, equivalent to first page)

end_pg

Page where conversion should end (defaults to NULL, equivalent to last page)

raw

Whether conversion should use Poppler's -raw

return_text

If TRUE this function will return the converted text as a character vector, and if FALSE (the default) it will return the path to a .txt file containing the converted text

Value

A character vector either with the converted text or with the path to the new file


abjur/dje documentation built on May 10, 2019, 4:11 a.m.