Adding it in the .bashrc should do the trick unless you don't use bash shell at all.
Did you do
from your terminal?
The source command only affects the current terminal where you issued that command and all the new terminal opened that you're going to open later on. The other existing terminals won't be affected by the changes. You need to close them first.
But you can always restart the OS to reflect the changes.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com