At the moment I am converting the data on the page to PDF this way:
<cfdocument format="PDF">
<cfoutput>
#pageContent#
</cfoutput>
</cfdocument>
With #pageContent#
being a variable created using cfsavecontent
The way it works is that I have a 'Export to PDF' link at the bottom of the page which contains a url variable - this link directs to the same page but the variable passed in tells it to output the PDF.
My question is, when the link is clicked to create the PDF, is there a way to upload the PDF to the database at the same time?
I know I have to use cffile action="Upload"
and similar, but I'm not sure how to tell the page when a PDF has been opened.
Hope this makes sense.