Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have just done a search on Google as to how I would convert a scanned document (of a typescript) into a document that would recognize the characters just like any other Word document. But ofcourse I went and forgot that I am using Ubuntu and not Windows. So is it still possible somehow to do the same on Ubuntu is what I am wondering. I would really appreciate any help.

Thank you.

share|improve this question

Tesseract is one option that worked great for me!

I used it as follows:

Install it, if you don't have it with:

 sudo apt-get install tesseract-ocr


  • Convert the .JPG scanned file to .tif (this is the format Tesseract
    requires). This is done with ImageMagick as follows:

    convert foo.JPG foo.tif

  • Now simply let Tesseract do it's magic:

    tesseract foo.tif foo (will save output to foo.txt)

I recently had to convert an old manual with multiple(36) pages to something digital. I whipped up a BASH script to do it.

Code here:

# Turn a set of scanned JPG pages into a single document file.
# Requires the ImageMagick and Tesseract packages.
# Author: Fred Fury 

echo ""
echo "Convert a set of scanned JPG pages into a single document file."
echo "Starting up..."
for i in {01..36}
    echo "converting $i.JPG to $i.tif..."
    bash -c "convert $i.JPG $i.tif"     # Convert the file to tesseract usable format
    bash -c "tesseract $i.tif $i &>-"   # Convert the tif to txt
echo "Merging files into Output.doc"    
bash -c "cat *.txt > Output.doc"        # Merge all the generated txt files into a single file
echo "Done."

Also check out this page for some other solutions: What's the best, simplest OCR solution? This is where I found tesseract.

Hope that helps!

share|improve this answer

I had a similar problem to this a while ago. Try uploading the file to It will take a while, but the webapp can handle just about any format. Good luck!

share|improve this answer
THAT'S AMAZING!!!! Thank you SOOOOOOOOOOOOOO much!!!!!!!!!! MWAH!!!! – Kap Marvin Jul 31 '13 at 13:11
@KapMarvin Please don't shout. – Bharadwaj Raju Apr 19 at 11:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.