convert_pdf: Get and convert PDFs to text

View source: R/convert_pdf.R

convert_pdfR Documentation

Get and convert PDFs to text

Description

Get and convert PDFs to text

Usage

convert_pdf(path)

Arguments

path

The file(s) path. The path can also be specified to a folder with multiple PDF files, in that case all PDF files in the folder will be converted.

Details

If PDF file is not in "readable" format, function attempts to apply optical character recognition (OCR) to convert these to text.

Value

A list with the converted texts.

Source

https://stackoverflow.com/questions/71064939/how-to-check-if-pdf-is-scanned-image-or-contains-text-in-r

Examples

## Not run: 
convert_pdf(path = getwd())

## End(Not run)

globalgov/qCreate documentation built on April 27, 2023, 3:27 a.m.