This question is pretty old already, but haven't seen anyone mentioning CutyCapt so I will :)
CutyCapt
CutyCapt is a small cross-platform command-line utility to
capture WebKit's rendering of a web page into a variety of vector and
bitmap formats, including SVG, PDF, PS, PNG, JPEG, TIFF, GIF, and BMP