readPDFXML: Read a PDF or XML version of a PDF

readPDFXMLR Documentation

Read a PDF or XML version of a PDF

Usage

readPDFXML(file, asText = FALSE, ...)

Arguments

file
asText
...

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (file, asText = FALSE, ...) 
{
    if (!asText && grepl("\.pdf$", file)) 
        return(convertPDF2XML(file, ...))
    doc = xmlParse(file, ...)
    class(doc) = c("PDFToXMLDoc", "ConvertedPDFDoc", class(doc))
    doc
  }

dsidavis/ReadPDF documentation built on June 12, 2025, 6:39 a.m.