View Single Post
Old 08-20-2004, 04:49 PM   #5
hacker
Technology Mercenary
hacker plays well with othershacker plays well with othershacker plays well with othershacker plays well with othershacker plays well with othershacker plays well with othershacker plays well with othershacker plays well with othershacker plays well with othershacker plays well with othershacker plays well with others
 
hacker's Avatar
 
Posts: 617
Karma: 2561
Join Date: Feb 2003
Location: East Lyme, CT
Device: Direct Neural Implant
I just caught this thread, and wanted to say that I've been happily converting RTF files to Plucker format for about 2 years now, using just Perl. Here's the code that you can use to do the same:

Code:
#!/usr/bin/perl 
use strict;
use XML::GDOME;
use RTF::HTMLConverter;
my $parser = RTF::HTMLConverter->new(
                  in             => 'test.rtf',
                  out            => 'test.html',
                  codepage       => 'iso-8859-1',
                  discard_images => 1,);
                                   
$parser->parse();
I've tested this on some pretty complicated RTF documents, and it clearly outshines the rest. Maybe I should contribute this to the Plucker community. I didn't realize there was an interest in it.

I could probably add this kind of functionality to my PDF to Plucker tool online, if anyone is interested. I've also been converting .doc files as well, but that isn't really as popular, I guess.
hacker is offline   Reply With Quote