Link to home
Start Free TrialLog in
Avatar of jackassery
jackassery

asked on

Using cfcontent and cfx_pdf tags

Try as I may I cannot for the life of me get my code to work. Whats worse is that I got this to work a few months ago but accidentally deleted the code and now I cant get it to work again. Heres the code

<html>
<head>
<title>page</title>
</head>

<cfoutput>
<cf_pdf file="cert.pdf" allowprinting="true" allowcopy="false" allowmodify="false">
<cf_pdf_page size="LETTER">
<cf_pdf_image x="35" y="690" file="ft-letterhead.jpg">
</cf_pdf_page>
</cf_pdf>
</cfoutput>

<cfcontent type="application/pdf"
deletefile="yes"
file="C:\websites\tx4x4f\database\cert.pdf">


<body>
<a href="cert.pdf">Here</a>1

</body>

</html>

The problem is that the pdf wont open. The pdf generates fine without the use of the cfcontent. I cant see the problem with my use of the tag though.

I have played with every combination of the code and I know that its something thats really simple but I think I've been staring at this page way too long. Maybe a fresh set of eyes can help.

Thanks
-Jamaal
ASKER CERTIFIED SOLUTION
Avatar of mrichmon
mrichmon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial