Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

create pdf and force download it

Guest
Jan 11, 2010 Jan 11, 2010

HI:

I create pdf in a realtime using <cfdocument format="pdf"> but when the user click on the link to view it, it open as browser. Can we somehow make this download instead? so we get prompt for "save as" download.

- A

TOPICS
Getting started , Reporting
5.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 11, 2010 Jan 11, 2010
create pdf and force download it

<cfheader name="Content-Disposition" value="attachment; filename=myDoc.pdf">

<cfcontent type="application/pdf">

<cfdocument format="PDF">

Some text.

</cfdocument>

Translate
Community Expert ,
Jan 11, 2010 Jan 11, 2010
create pdf and force download it

<cfheader name="Content-Disposition" value="attachment; filename=myDoc.pdf">

<cfcontent type="application/pdf">

<cfdocument format="PDF">

Some text.

</cfdocument>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 12, 2010 Jan 12, 2010

It worked! Thank you so much BKBK.

- A

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 13, 2010 Jan 13, 2010
LATEST

OK. Good luck.


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources