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?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
To make text in a
.jpeg editable you need Optical Character Recognition (OCR) software.
sudo apt-get install ocrfeeder
To open an image file click on the 'plus' (+) sign.
After you have opened the image, click on the next icon to the right to run OCR.
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.
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.
After you make the required changes you can export them as
Ultimately its best to scan to
NOTE: OCR is not 100% accurate, you may have to correct errors, and the more formatting your document has, the harder it will be.
You can't edit text in a JPG, but you remove the text and add new text.
For images, try gimp (open source alternative to Photoshop). Open the image with gimp, then use the eraser tool to erase the old text. Then use the text tool to add new text.
Or, use inkscape, which is a vector graphics program (similar to Adobe Illustrator). Create a new SVG file and paste in your JPG. Then, cover up the old text with a new text box.
I would start with gimp but for your image maybe inkscape works better. You can install either code from the software center, or use these lines in a terminal
sudo apt-get install gimp sudo apt-get install inkscape
We can also edit text on top of an image with Libre Office from where we can also easily export this files as PDF.
Open your document to insert the image with Insert -> Picture -> From File....
Then choose "Wrap -> In Background" from the right click context menu on the picture you just inserted.
Write any text above the image (but we will have to place it with newlines, and spaces or tabstops). Any preexisting text needs to be overwritten. In the example below I have done this by choosing a black background and a white font colour.
Finally we can do "File -> Export as PDF...".
You cannot directly edit text in an image file. You can edit the image file using a program such as
gimp and place new text on top of old but that's it. Sorry.
Sometimes I don't want to printscreen a page and convert it. Then I use this little script:
Its the fastest way to convert picture to text for me and it works almost very good.
So my suggestion is, you scan the document and open the picture. At the same time, you open an editor and copy the parts you need to the editor. With easystroke you make a gesture for the script, it is really easy and fast.
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?