Well done working it out. When asking for help, it is always worthwhile copying-and-pasting: see this and the other FAQs on that page. Even the tiniest spelling error can cause code to fail, or even worse, to produce incorrect results.
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
subject: Why will not compile? Troublesome....equality operators & floats involved )