alexislucena
11/10/2016 - 10:22 AM

CFML: Setting the download file name of PDF created with cfdocument opened in the browser (tested in Lucee)

CFML: Setting the download file name of PDF created with cfdocument opened in the browser (tested in Lucee)

<cfheader name="Content-disposition" value="inline;filename=Page.pdf"/>

<cfdocument format="PDF">PDF file content</cfdocument>