I wouldn't call the third document the "difference" of the first two. I'm not exactly sure how you would display the difference, but that isn't it. It's more like the union of the two documents. So you might want to clarify your requirements before looking for implementations of those requirements.
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