You might like to look at http://code.google.com/p/wkhtmltopdf/ - it makes nicer PDF files from HTML - it uses a webkit widget so the HTML looks pretty much like chrome/safari, and better than most other similar tools (including the one in CF Server in my opinion).

I just do this in my code:
<cfoutput>
<cfsavecontent variable="pdfhtml">
HTML for the PDF
</cfsavecontent>
</cfoutput>
<cffile action="" nameconflict="overwrite" file="[path]myfile.html" output="#pdfhtml#">
<cfexecute name="[path]\wkhtmltopdf-0.8.3.exe" arguments="""[path]myfile.html"" ""[path]myfile.pdf"""></cfexecute>

If you have ever had problems with your PDF files looking not quite right give this a try - it also copes with standards compliant code so you're not stuck trying to do HTML 4 where you've half forgotten how to make things work (or at least that's what happens to me).


On 13/04/2010 10:44 AM, KNOTT, Brian wrote:

Thanks Guys.  Looks like its PDF then attachment  to an email.

 

Brian

 

From: [email protected] [mailto:[email protected]] On Behalf Of AJ Dyka
Sent: Tuesday, 13 April 2010 10:21 AM
To: [email protected]
Subject: Re: [cfaussie] email attachments

 

Ben Nadle has an example.

 

 

Google is a wonderful thing! ;)

 

A.J.

On 13 April 2010 10:14, KNOTT, Brian <[email protected]> wrote:

Presently there is no file.  I want to do it on the fly with out creating a file.

 

Brian

 

From: [email protected] [mailto:[email protected]] On Behalf Of Kevin Pepperman
Sent: Tuesday, 13 April 2010 10:13 AM
To: [email protected]
Subject: Re: [cfaussie] email attachments

 

Yes, just add cfmailparam between your cfmail tags with a path to the file. It will attach it to the email.

 

<cfmailparam file = "#thisFilePath#" type="text/plain">

 

 

 

On Mon, Apr 12, 2010 at 8:01 PM, KNOTT, Brian <[email protected]> wrote:

attachment




--
/Kevin Pepperman

"They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety." - Benjamin Franklin

--
You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.

 


This e-mail is sent by Suncorp-Metway Limited ABN 66 010 831 722 or one of its related entities "Suncorp".
Suncorp may be contacted at Level 18, 36 Wickham Terrace, Brisbane or on 13 11 55 or at suncorp.com.au.
The content of this e-mail is the view of the sender or stated author and does not necessarily reflect the view of Suncorp. The content, including attachments, is a confidential communication between Suncorp and the intended recipient. If you are not the intended recipient, any use, interference with, disclosure or copying of this e-mail, including attachments, is unauthorised and expressly prohibited. If you have received this e-mail in error please contact the sender immediately and delete the e-mail and any attachments from your system.
If this e-mail constitutes a commercial message of a type that you no longer wish to receive please reply to this e-mail by typing Unsubscribe in the subject line.

--

You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.

 

--
You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.

--
You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.

--
You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.

Reply via email to