Skip to content

Instantly share code, notes, and snippets.

@alexislucena
Created November 10, 2016 10:22
Show Gist options
  • Save alexislucena/426860ff38567aa45071aef1a6ce4ff0 to your computer and use it in GitHub Desktop.
Save alexislucena/426860ff38567aa45071aef1a6ce4ff0 to your computer and use it in GitHub Desktop.
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>
@alexislucena
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment