To generate PDF documents, you'll need the following module:
PDF Document Generation
The documentation here also explains how to use the module.