Skip navigation
Amber_j
Currently Being Moderated

create pdf and force download it

Jan 11, 2010 10:25 PM

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

 
Replies
  • Currently Being Moderated
    Jan 11, 2010 10:39 PM   in reply to Amber_j
    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>

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 13, 2010 1:10 PM   in reply to Amber_j

    OK. Good luck.


     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points