library(Rtesseract)
ts = tesseract(system.file("trainingSample", "eng.tables.exp0.png", package = "Rtesseract"))
ReadConfigFile(ts, "pdf", TRUE) # or /usr/local/share/tessdata/configs/pdf
Recognize(ts)
.Call("R_Tesseract_RenderAsPDF", ts, "/tmp/out", "/usr/local/share/tessdata")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.