Hi all,
Im trying to have a certificate generated once a user completes a little quiz on my site but Im having all kinds of issues. This is what Im using:
<cfdocument format="pdf" backgroundVisible="yes" localUrl="yes" >
<div style="background-image:url(certificates/certificatebg.jpg); width:614px; height:893px; margin: 0 auto;">
<div style="width:100%; font-family:Arial, Helvetica, sans-serif; color:#000000; position:absolute; bottom:692px; left:0px; font-size:30px; text-align:center;">Certificate of Achievement </div>
<div style="width:100%; font-family:Arial, Helvetica, sans-serif; color:#000000; position:absolute; bottom:602px; left:0px; font-size:25px; text-align:center;">This is to certify that </div>
<div style="width:100%; font-family:Arial, Helvetica, sans-serif; color:#000000; position:absolute; bottom:512px; left:0px; font-size:25px; text-decoration:underline; text-align:center;"><b><cfoutput>#getUser.user_name#</cfoutput></b> </div>
<div style="width:100%; font-family:Arial, Helvetica, sans-serif; color:#000000; position:absolute; bottom:422px; left:0px; font-size:20px; text-align:center; ">Has successfully completed</div>
<div style="width:100%; font-family:Arial, Helvetica, sans-serif; color:#000000; position:absolute; bottom:332px; left:0px; font-size:25px; text-decoration:underline; text-align:center;"> <b><cfoutput>#displayModule.mod_title#</cfoutput></b></div>
</div>
</cfdocument>
I have cf9 on the server so not sure if there is a better way to do this. As it stands it wont work on a mac - it tries to download a .cfm page. Sometimes it works ok on a winddows machine, but others it is just a blank page.
It seems like what I have is so simple, but its getting really annoying!
Please help
Cheers all