Learn R Programming

abbyyR (version 0.3)

ocrFile: OCR File

Description

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

Usage

ocrFile(file_path = "", output_dir = "./", exportFormat = "txt",
  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

Run this code
ocrFile(file_path="path_to_ocr_file", output_dir="path_to_output_dir")

Run the code above in your browser using DataLab