I'm using this now for a new application and it's working pretty well.
There's a tag in the Developer's Exchange (HTML2PDF3) that masks a lot
of the complexity and because it includes HTMLDOC in the archive I think
you get the command-line version. The command-line version is free if
you download the source and compile it yourself (as far as I understand)
so I guess you can compile and then distribute the compiled version with
your application.

At any rate, it's pretty quick, you can customize where it saves the
TEMP files and you can pass commands to format the PDF pages landscape,
set font-sizes, etc.

All-in-all I'm thrilled with it. When you consider the commercial
application ActivePDF with the add-on to generate PDF from dynamic web
content is more expensive than ColdFusion Pro it becomes even more
attractive despite it's limited HTML support.

I think from the documentation HTMLDOC is HTML 3.2 compliant and a
4.0/CSS1 version is in the works to be released later this year.

I'm just using it to build reports from dynamic data, so I have the
luxury of being able to make a custom template that's HTML 3.2 compliant
for the PDF generation, but it would (will) be great when it supports
HTML 4.0/CSS1 so I can use one template for HTML and PDF output.

Check out HTML2PDF3 ... It's been a real timesaver for me.

Joshua Miller
[EMAIL PROTECTED]


-----Original Message-----
From: Rick Faircloth [mailto:Rick@;GoLibertyOnline.com] 
Sent: Thursday, November 14, 2002 5:09 PM
To: CF-Talk
Subject: RE: My experiences working with CFMX and HTMLDOC to convert web
pages to pdf


Hi, Dave.

So HTMLDOC is working out for you?
Are you using the free version that doesn't include
the command line processing?
If so, are you getting around not having the command line execution by
using CFEXECUTE?

What about your question concerning CSS...does it support it?

Thanks,

Rick

Rick Faircloth,
Prism Productions

-----Original Message-----
From: David Adams [mailto:dadams@;magma.ca]
Sent: Friday, November 01, 2002 5:14 PM
To: CF-Talk
Subject: My experiences working with CFMX and HTMLDOC to convert web
pages to pdf


Environment:
-CFMX
-Win2k Server
-HTMLDOC verion 1.8.23 (www.easysw.com)

I had a simple form that requested the URL of the target webpage. I
passed this into a CFEXECUTE and HTMLDOC handled it from there.  Here is
my code:


<CFEXECUTE NAME="C:\Program Files\HTMLDOC\gHTMLDOC.exe"
  ARGUMENTS="--webpage -f test6.pdf #Form.Selected_URL#"
  TIMEOUT="30">
</CFEXECUTE>


Experiences:
- It was very slow compared to doing the same process at the cmd prompt
- It stored the newly created pdf document in C:\CFusionMX\runtime\bin


What are your experiences and recommendations?  This holds a lot of
promise because it is effective and free.  Dave Watts once commented
that it does not support CSS. Any other comments?

Dave Adams,
CFUG Ottawa


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to