0

i have been checking to see if there is a way to convert images of a PDFs to a real text file and i found some ways but i couldn't understand anything ,i am not that technical ,so if you please anyway to convert and i already tried all soft wares so i am not sure there is a free software that would do it but i am willing to try if you guide me to a simple way of doing it manually maybe or through a software .some of the soft wares i tried are OKULAR,GSCAN2PDF,GIMP,IMAGEMAGICK,XPDF maybe those are good ways but i am doing something wrong so a good explanation would be appreciated .

2

First install poppler-utils, this contains Pdfimages. Pdfimages is a tool command line, which allows to extract all images from a PDF file and save them as JPEG files.

Open a terminal,

Press Ctrl+Alt+T

Run it:

sudo -i
apt-get update
apt-get install poppler-utils

The syntax of this tool is:

pdfimages -j file.pdf output_directory

Where file.pdf is the file you want to extract images and output_directory is the directory where you want to save the images.

Images are saved in the following format:

output_directory/output_directory-nnn.jpg

It's funny, but are named with the same name of the directory where you extracted, a consecutive number and extension.

Second just install an application for ocr, for example ocrfeeder:

Open a terminal,

Press Ctrl+Alt+T

Run it:

sudo -i
apt-get update
apt-get install tesseract-ocr ocrfeeder tesseract-ocr-eng gocr cuneiform ocropusocrad

Once the program opens, select the search engine you want to use. Select the Edit menu and select Preferences from the dropdown menu.

A window will open. Once you open the window select the Tools tab. On the Tools tab will see an option that puts favorite engine. In this option, select Tesseract and then will press the OK button.

After completing the settings we can start with the action

To do this we press the + symbol:

Then select the image file you want to open.

If necessary retouch the image, only you have to access the Tools menu. Once inside the Tools menu select the option unpaper. The display will find various options and filters to retouch the image.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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