Fixed application/pdf content-type on pdf generation