Added .pdf to the filename of pdf downloads

The downloaded file thats returned from the downloadInvoice method doesn't include a file extension.
This is causing problems for some of the users I am testing a product with, it would be better if the filename of the downloaded file included the .pdf extension automatically.