http://www.perlmonks.org?node_id=323758


in reply to Re: Re: Re: Converting M$ Word --> PDF
in thread Converting M$ Word --> PDF

Hi neuroball,

you can just use the above concept also to covert from HTML to PDF. I have no idea where the limits are though.

Yes, I think I saw a module on Cpan to do it. Now, if there was also a Perl module to do HTML --> Word, that would be great.

Just use Perl to open the HTML file in OpenOffice and then make OpenOffice print it to PDF. I just tried it with a google page, and as long as the images are local, no problems should arise.

Okay, I will try that, seeing I have just d/loaded OpenOffice, all 52 Mb. Hope it handles tables, word templates, images,etc, okay

If you want another way you might try the following:

  • Download HTMLdoc, which is GPL'ed, and install it.
  • Download HTML::HTMLdoc from CPAN and install it.
    1. Do some perl magic to get what you want...
    2. ...Unknown step...
    3. Profit!

Okay, I will try that also. Wow, I sure have enough things to try now, thanks everyone for your help. :)

Peter