You can use
Prince to convert XHTML to PDF. I created a script to convert directly from .epub to .pdf, but it's for linux (it should work with Cygwin, though, look in the ePUB forum). Anyway, all it does is unzip the .epub and pass the files to Prince.