Skip to contents

Scrape text from PDF file, and manage that file

Methods


Method new()

Open pdf file for parsing

Usage

PDFTool$new(pdf, start, end)

Arguments

pdf

a path to pdf or raw vector containing the pdf of test results

start

a S3 pdf_start object or character for start of result

end

a S3 pdf_end object or character for start of result

Returns

A new PDFTool object


Method getResults()

Vector of results (combined)

Usage

PDFTool$getResults()

Returns

vector of combined results


Method getPDFs()

get specific pdf for a result

Usage

PDFTool$getPDFs(resNum, output)

Arguments

resNum

integer of the result (index of getResult())

output

path to where pdf will be written

Returns

path to pdf


Method clone()

The objects of this class are cloneable with this method.

Usage

PDFTool$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.