There is also a C library, if you're into that kind of thing.
These run entirely 'headless' and do not require a display or display service. Wkhtmltopdf and wkhtmltoimage are open source (LGPLv3) command line tools to render HTML into PDF and various image formats using the Qt WebKit rendering engine.