Just render directly to the output file instead of the complication of renaming from '_tmp.pdf'.
This allows us to specify an output format other than '.pdf', like '.png'.
Allow content disposition (inline or attachment) to be specified with a X-Pdf-Disposition header.