PdfGenerator: add inline option.

Add an option to inline the PDF instead of sending it as an attachment to the
browser, this fixes #3.