Welcome to the Ranch
That is a common mistake. You are trying to contact something from a static method, possibly the main method. You should consider whether you are right working in a static context in the first place. Then, you need to create an object reference and call methods on that.
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