You can use the PDF Document Generation module. You can find the documentation on how to install it here.