ocrFile: OCR File

Description Usage Arguments Value Examples

Description

Want to quick OCR a local file and get the results? Use this function.

Usage

1
2
3
4
ocrFile(file_path = "", output_dir = "./", exportFormat = c("txt",
  "txtUnstructured", "rtf", "docx", "xlsx", "pptx", "pdfSearchable",
  "pdfTextAndImages", "pdfa", "xml", "xmlForCorrectedImage", "alto"),
  save_to_file = TRUE)

Arguments

file_path

path to file containing OCR'd text; required

output_dir

path to output directory. file_name will be same as input file name (except for the extension)

exportFormat

optional, default: txt; options: txt, txtUnstructured, rtf, docx, xlsx, pptx, pdfSearchable, pdfTextAndImages, pdfa, xml, xmlForCorrectedImage, alto

save_to_file

Required, Boolean, Default is TRUE, but if not, returns result to memory

Value

path to output file

Examples

1
2
3
4
## Not run: 
ocrFile(file_path = "path_to_ocr_file", output_dir = "path_to_output_dir")

## End(Not run)

abbyyR documentation built on June 25, 2019, 9:02 a.m.