ocrFile | R Documentation |
Want to quick OCR a local file and get the results? Use this function.
ocrFile(file_path = "", output_dir = "./", exportFormat = c("txt",
"txtUnstructured", "rtf", "docx", "xlsx", "pptx", "pdfSearchable",
"pdfTextAndImages", "pdfa", "xml", "xmlForCorrectedImage", "alto"),
save_to_file = TRUE)
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 |
path to output file
## Not run:
ocrFile(file_path = "path_to_ocr_file", output_dir = "path_to_output_dir")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.