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

create pdf and force download it

Guest
Jan 11, 2010 Jan 11, 2010

Copy link to clipboard

Copied

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

Views

4.9K

Translate

Translate

Report

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>

Votes

Translate

Translate
Community Expert ,
Jan 11, 2010 Jan 11, 2010

Copy link to clipboard

Copied

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>

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

It worked! Thank you so much BKBK.

- A

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

OK. Good luck.


Votes

Translate

Translate

Report

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
Documentation