Skip to contents

List registered extractors

Usage

gr_extractors()

Value

A data frame with name, extensions, description, needs (the packages the extractor cannot run without, comma-separated, "" for none) and available (whether they are all installed now). OCR packages are not in needs: a PDF with a text layer reads without them.

Examples

gr_extractors()
#>        name                          extensions
#> txt     txt            txt, text, log, csv, tsv
#> md       md              md, markdown, rmd, qmd
#> html   html                    html, htm, xhtml
#> pdf     pdf                                 pdf
#> docx   docx                          docx, dotx
#> image image png, jpg, jpeg, tif, tiff, bmp, gif
#>                                                                       description
#> txt                                         Plain text, including delimited files
#> md                                            Markdown, keeping heading structure
#> html                                     HTML via xml2, keeping heading structure
#> pdf                            PDF with per-page OCR fallback and page provenance
#> docx  Word: headings, tables by row, footnotes and endnotes; OCRs embedded images
#> image                                                                   Image OCR
#>           needs available
#> txt                  TRUE
#> md                   TRUE
#> html       xml2      TRUE
#> pdf    pdftools      TRUE
#> docx       xml2      TRUE
#> image tesseract      TRUE

# What this installation can read right now.
gr_extractors()[, c("name", "needs", "available")]
#>        name     needs available
#> txt     txt                TRUE
#> md       md                TRUE
#> html   html      xml2      TRUE
#> pdf     pdf  pdftools      TRUE
#> docx   docx      xml2      TRUE
#> image image tesseract      TRUE