Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have scanned about 80 pages into gray scale pdf (image format). The end size of the file is about 70MB, which is very huge.

Now I am looking for a method to convert the grayscale image-based PDF file into a simple black/white text-based PDF file.

I have done many attempts with gs but with no success (only a few percent recovery). If any expert has some idea, kindly let me know.

share|improve this question
1  
If you're interested in keeping the PDF images as-is and adding text to it, have a look at question Adding OCR info to a PDF. –  colan Sep 6 '14 at 13:22
    
If you could post a link to (for example) one-page example we could test solutions... –  Rmano Apr 30 at 8:23
    
It's not an OCR solution but askubuntu.com/a/3387/16395 helps a lot (although 72dpi is a bit on the low side, I have better results with 120). –  Rmano Apr 30 at 8:29

4 Answers 4

I am still thinking about a solution for the command line. But at the moment I can only offer the following:

gImageReader is a simple GTK+ front-end to tesseract-ocr.

sudo apt-get install gimagereader
sudo apt-get install tesseract-ocr

sorry for german text sorry for the german text

share|improve this answer

You need some OCR tool. Look at Tesseract

http://ubuntuforums.org/showthread.php?t=880471

share|improve this answer
4  
While this may answer the question, it would be preferred that you summarize or include key points to the linked page, should it disappear in future. –  Thomas W. Mar 14 '13 at 23:27

I guess you are using ubuntu. Search 'ocr' in ubuntu software center. You will get many image-to-text OCR softwares.

share|improve this answer

In your pdf file, right-click and save each page as image (or find some tool that does all pages automatically)

Open Ubuntu software center. Search for tesseract. This will find YAGF which you should install. In YAGF, click on File -> Open Image and load your image. Then click on File -> Recognize.

I had 100% accuracy in my first test.

share|improve this answer

Your Answer

 
discard

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.