> I'm a little too deep with a Perl script that converts .htm > to .rtf on the fly. I would like to handle headers, footers, > page breaks, etc but the script is incomplete (although it > is open source). There's very little time or $ left on the > job so getting into Crystal Reports or the like is not really > an option. I've read many posts re: this subject but I'm > basically looking for a quick and ease fix to the requirements. > > - generate a screen version of a proposal > - push 'save as word (rtf)' button > - note that slippery cffile/cfcontent/cflocation is worked out > - save/open file ... so far so good > > - I must now insert headers/footers/etc, options are... > -- word macro (template file) > -- learn perl & digest rtf spec by next monday ;) > -- find a better .html->rtf conversion tool in the open source / tag > library world > -- beg for help! > > Finally, my (ideal) choice is to handle this server side ... > which will make the end-user's task easier. Any input > appreciated!
It sounds like you're using CF to generate HTML output, then using the Perl script to convert that to RTF. Instead, why not just generate the RTF you want using CF? You can probably do that in less time, although it can get pretty ugly. In the past, when I've needed to generate RTF output, here's what I've done: 1. Create a document template in RTF. For this, I'd recommend WordPerfect, or even WordPad, instead of Microsoft Word - they tend to create much simpler RTF. 2. Open the RTF document in Studio or your ASCII text editor of choice, and place CFML tags in the appropriate places. Obviously, (2) is the hard part, but it's actually not all that hard in most cases. Debugging is kind of painful, though, since you generally don't get useful error messages when you open an RTF file in a word processor. You don't have to memorize the RTF spec to do this, but it's handy to have a copy while you're working. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ______________________________________________________________________ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

