Cfdocument will not print PDF (Need Help)
Hello,
Why would this not work. It throws an error "Acrobat could not open xxxxx because it is either not a supported file type or because the file has been damaged"
The records are served on the fly from an xslt generated content. It does not matter really because when I comment out the xsltfile content and enter just a text, it still throws the error.
The code below is in my pdf.cfm file and is an include just to generate the content based on what the report type is
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<cfdocument format="PDF" bookmark="yes" name="pdfreporttype" saveasname="reporttype.pdf">
Hello Help print document in pdf.. <!--- #xsltfile# --->
</cfdocument>
<cfheader name="Content-Disposition" value="Attachment; filename=reporttype.pdf">
<cfcontent type="application/pdf" reset="true">
