It means that whatever line the compiler is indicating is not a valid Java statement. You should post your code (use code tags, please), and the full error message you get. We'll be able to help more if you give us more information.
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