OCR to Add Text to File

It may be related to this:
https://www.mail-archive.com/kde-bugs-dist@kde.org/msg697672.html

That’s ok. It is a bug reported with okular.
Now I have everything working properly.

The only thing I am missing is to make:

permanent. I am trying to find out but couldn’t find how to yet!

If you added

PATH=$PATH:/home/limo/.local/bin/

to your .bashrc it should be permanent.

I found here
Should I add to file “/home/limo/.bash_profile/”

export PATH=$PATH:/home/limo/.local/bin/

I just want to be sure so not to mess up my system. It has got more than enough already!

I can’t find this file/folder.
Should I add to file “/home/limo/.bash_profile/”?
Please help. I don’t want to mess up the system!

It should be in your home directory: ~/.bashrc
If it doesn’t exist, create it.

1 Like

Everything is working now as perfect as I was hoping for.
Million thanks to @dalto
Million thanks to @Kresimir
Million thanks to all.

An amazing community that really adds value to the amazing EOS.
:beers: on me!

Well, just to update you and hopefully this will be of any help for other users.
I created my own command to ocr a PDF.
1- I created a script and called the file ocr.sh

#!/bin/bash
echo $1
ocrmypdf -l ara+eng "$1" "$1"

2- Thanks to this thread The Mighty Terminal
I added

alias ocr="bash /home/limo/MyScripts/ocr.sh"

to “~/.bashrc”

Now I can just

[limo@limo ~]$ ocr aliascommand.pdf

and it is done automagically.
I learnt a lot.
Again thank you all for all you support.

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.