Wilson What do you mean by thread safe? The method does not change anything or alter any of the variables involved so it can't be involved in any kind of deadlock situation. All it does is return an int that is represented in the passed in String.
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