Try wkhtmltopdf - Project Hosting on Google Code . You can use it the easier way i.e system("<command_line>") or link the static library avaliable there and use it.
I assume you want to write a program and want a single binary. Then static linking the library should do it.
Hi Guest we just wanted to alert you to a major change in the forum. We will no longer be allowing the posting of outgoing links. Please use the attachment feature to attach media to your posts.