how to get your hands on output of cfdocument

240 Views Asked by At

Here is some simple cfdocument code (reppath is set in Application.cfm):

<cfset xx = "let">
<cfdocument format = "pdf" name = "let" filename = "#reppath#/#xx#.pdf"         overwrite = 'true' >
Here is some stuff

</cfdocument>

<cflocation url = '#xx#.pdf'>

Original question (was answered) : Now -- how do I display it and/or store it as a file? I've been all over the internet looking for an answer to this simple question. So far I've found very little -- lots of info on all the ins and outs of cfdocument, but no info on how to pick up the results. The few hints I've found do not work.

Current question: This code now both opens the document and stores it as let.pdf. However, when I attempt to open let.pdf in the document viewer I get this message. I'm using Linux/Ubuntu.

unable to open

It opens fine in Firefox.

0

There are 0 best solutions below