Edit Scanned JPEG – How to Edit Text in a Scanned .jpeg File


I need to upload a scanned image as a PDF document.

After scanning the document, I have a .jpeg with small text that I want to edit before converting to PDF for the upload.

I have never done this before so I'm really stuck. How can I do this?

Best Answer

To make text in a .jpeg editable you need Optical Character Recognition (OCR) software. I use ocrfeeder.

sudo apt-get install ocrfeeder

To open an image file click on the 'plus' (+) sign.
enter image description here After you have opened the image, click on the next icon to the right to run OCR.
enter image description here
After is has finished OCR'ing the image, you can select the text you want on the left, and copy it out on the right.
enter image description here

The easiest way to get the text out is to just copy it over to LibreOffice. With a little editing, my copy looks very similar.

enter image description here

After you make the required changes you can export them as .pdf by clicking 'export as pdf' from the LibreOffice toobar. enter image description here

Ultimately its best to scan to .pdf if you can. If you can't this works very well.

NOTE: OCR is not 100% accurate, you may have to correct errors, and the more formatting your document has, the harder it will be.