its not a mandatory rule that a class containing main method should have access modifier as public....the rules are as following:
1. class in a file can have access modifier as either public or default. 2. if there are more than one class in a file one class can be public at max(but public access is not mandatory for any class even now). 3. the file name should match the public class.
i hope you are clear now.
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