jason.drew has asked for the wisdom of the Perl Monks concerning the following question:

Dear Wise Perl Ones

Is there a pure Perl script that will convert an rtf file to a pdf file.

I am looking for a pure Perl script and not one that relies on any other executable because i would like to run it on a PDA.

All suggestions welcome (unless its "By a decent machine").

Thanks

Jason

Replies are listed 'Best First'.
Re: rtf to pdf
by ph713 (Pilgrim) on Oct 07, 2005 at 13:18 UTC
    Search the CPAN (http://search.cpan.org) for rtf and pdf, there's a few interesting looking modules there like PDF::Create and RTF::Parser. Between the various RTF and PDF modules, I'm sure one could string together a converter.
      Thanks for that.

      The reason I am looking for a pure script is because getting modules onto my PDA Perl installation is tricky to say the least.

      I'll continue searching anyway.

      Thanks again

      Jason

        The two I listed (and doubtless most of the rest of the PDF and RTF modules in CPAN) are "pure perl", which is what I thought you meant when I first read it. If you can build a script on your PC that uses them and does the job, then you can certainly also cut+paste the contents of pure perl modules into your scripts (just remember to switch back to package main; after including the modules' source).
        getting modules onto my PDA Perl installation is tricky to say the least.

        If the modules are Pure Perl, all you need to do is unzip lib/* into the perl/site/lib/ directory or in the same directory as the script that uses them. It doesn't get easier than that.

Re: rtf to pdf
by jamiros (Novice) on Oct 07, 2005 at 15:11 UTC