How can I download a webpage to a PDF in Terminal?
Check out Wkhtmltopdf.

You can download the binary from that website. Note that you should change the file permissions to +x to make it executable.

For usage, check out http://code.google.com/p/wkhtmltopdf/wiki/Usage or execute:


  wkhtmltopdf-0.9.9-OS-X.i368 --help