I'm working on a set of self-published E-books (<a href="http://justthebestparts.com" rel="nofollow">http://justthebestparts.com</a>).<p>Among my goals was to be able to publish to the Web while writing and have the option for public comments. I also wanted to write the books using Markdown or Textile.<p>I ended up writing some tools to convert the generated (X)HTML to epub and mobi, and the results are pretty good. However, I also want to have a PDF version and I've yet to find an automated tool that does a good job. I'm deeply skeptical that any tool can take HTML and output nicely formated PDF with proper page breaks, image handling, no dangling sentences or paragraphs, no distracting rivers of white-space in the text, etc.<p>I'll give this a shot but I'm not sure if there's a better solution than periodically hand-crafting the PDF.