So you would have a template for your invoice. The template then gets data
added to it and rolled into a pdf.

For simplicities sake I'd go for HTML based templates and use something like
http://www.geocities.com/SiliconValley/Lab/5247/ or the ones Toby mentioned.
Probably going to have to use cfexecute to do the conversion.

Very very rough but here is an idea of how you could set it up.


<!--- generate the invoice --->
<cfsavecontent variable="invoice">
<!-- template start-->
<html>
<body>
Date: <cfoutput>#now()#</cfoutput>
Amount: <cfoutput>#amount#</cfoutput>
<!-- etc... -->
</body>
</html>
<!-- template end -->
</cfsavecontent>

<!--- write an html file --->
<cffile action="write" file="C:\path\filename.html" output="#invoice#">

<!--- do the conversion --->
<cfexecute name="commands to execute the html to pdf conversion"
timeout="10">

<!--- provide the user with a link to the new pdf --->
<a href="path_to_pdf">Download invoice</a>

HTH


Cheers

Mark


______________
Mark Stanton
Web Production
Gruden Pty Ltd
Tel: 9956 6388
Mob: 0410 458 201
Fax: 9956 8433
www.gruden.com


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to